ZTP - ganeshahv/Contrail_SRE GitHub Wiki
Prerequisites
1]. Before ZTP ensure there are no stale fabric entries in command and also no conf files and sh files inside the dnsmasq docker
[root@contrail-controller2 dnsmasq]# cd /etc/dnsmasq
[root@contrail-controller2 dnsmasq]# ls
base.conf  <<<< Only this file should be present
root@contrail-controller2 /]# cd /etc/tftp/
<<<< No files should be present
Note: The controller should have a IP in the ZTP Management network and the Gateway should point to it.
2]. Zeroize all the devices in the fabric
root@LEAF2> request system zeroize
3]. Prepare the ztp file as shown here:
https://github.com/ganeshahv/Contrail_SRE/blob/master/Fabric/ztp.yaml
NOTE: Do not have any lldp config in the day_0 config
4]. On the command window, start a new fabric with the correct parameters specified.
5]. For devices which have et interfaces, it is advisable to have the following config in the day_0 config file:
set interfaces et-x/x/x unit 0
Otherwise, LLDP will not come up between the boxes.