Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Save any special interface configs: curl -ks -H "Authorization: Bearer $JWT_AUTH_TOKEN" ${CNAASURL}/api/v1.0/device/currentswitch/interfaces > migrate-received.json
  2. Remove device from NMS (use factory default if the switch is still online to clear the config)
  3. ZTP new switch (with same name)
  4. Re-apply any interface configs, download migrate-interfaces.py ( compatible with nms v1.x to convert output json to input json )
    1. python3 migrate-interfaces.py < migrate-received.json > migrate-send.json
    2. 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"
  5. Sync config to switch
  6. Update serial etc in NI?
  7. Update monitoring etc if management IP changed

Replace access switch that is part of MLAG pair:

  1. Same as access, save interface configs and remove device.
  2. To be able to ZTP new device: set downlink on connected dist to redundant_link: false and sync it, shut down MLAG peer interfaces on the working switch, then do ZTP of new switch with same name as replaced switch
  3. Import interfaces from step 1 (same as access switch)
  4. Manually add back linknets between existing MLAG switch and new MLAG switch via API POST to /linknets with JSON payload: {"device_a": "a3", "device_b": "a4", "device_a_port": "Ethernet25", "device_b_port": "Ethernet51"}
  5. Sync the working MLAG peer switch, it should re-enable MLAG peer interfaces that was shutdown previously
  6. Sync the newly provisioned MLAG switch, it should add the mlag configuration
  7. Remove redundant_link: false from connected dist switch again (from step 2)
  8. Sync uplink dist switches

Replace dist switch (in core/dist configuration) via ZTP:

...