Hello,
FYI, I found the issue that was in closeDefinition.yaml where the dhcp range I configured was bigger than the number of devices
was from 192.168.117.71 to 192.168.117.83
whereas only 4 devices are currently involved.
The DHCP server had provided (I do not know why) IP addresses for leaves that were not following the first and second provided to spine:
spine-01: 192.168.117.71/24
spine-02: 192.168.117.72/24
leaf-01: 192.168.117.77/24
leaf-02: 192.168.117.78/24
I have modified the DHCP range to : from 192.168.117.71 to 192.168.117.74
The DHCP server assigned .73 to leaf-01 and .74 to leaf-02 and when the ztp second stage happened, openclos did teh mapping between the source IP address of snmp traps received and teh IP addresses expected for leaves (.73 and .74).
This should mean that there is no automatic link between IP addresses assigned by DHCP server and IP addresses expected to be source IP of snmp traps received...
Anyway the second ztp stage has now completed for all 4 devices, E-BGP is working between spine and leaf devices.