...
- Save any special interface configs:
curl -ks -H "Authorization: Bearer $JWT_AUTH_TOKEN" ${CNAASURL}/api/v1.0/device/
eosaccesscurrentswitch/interfaces > migrate-received.json
- Remove device from databaseNMS (use factory default if the switch is still online to clear the config)
- ZTP new switch (with same name)
- Re-apply any interface configs ( , download migrate-interfaces.py ( compatible with nms v1.x to convert output json to input json , then curl ks )
python3 migrate-interfaces.py < migrate-received.json > migrate-send.json
curl ks -H "Authorization: Bearer $JWT_AUTH_TOKEN" ${CNAASURL}/api/v1.0/device/
newswitch/interfaces -X PUT -d
migrate-send.
json -H "Content-Type: application/json"
- Sync config to switch
- Update serial etc in NI?
- Update monitoring etc if management IP changed
...