Versions Compared

Key

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

...

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

  1. Update mgmtdomain so it does not reference the switch you want to replace, instead set both device_a_id and device_b_id to the id of the device in the pair that you are not going to replace: curl ks -H "Authorization: Bearer $JWT_AUTH_TOKEN" ${CNAASURL}/api/v1.0/mgmtdomain/1 -X PUT -d '{"device_b_id": 8}'
  2. Delete the switch you want to replace with the API, factory_reset: false since it's not supported on DIST devices.
  3. Re-sync all core switches so they remove linknet config and add ZTP vlans
  4. Physically replace the switch and wait for the new switch to show up in DISCOVERED state
  5. Init the switch with the exact same hostname (so that git settings will be applied)
  6. Update the mgmtdomain so it references both switches in the pair again (revert of step 1)
  7. Update serial etc in NI?
  8. Update monitoring etc if management IP changed

Replace switch via console-paste:

  1. Power on replacement-switch in lab-rack or similar with console access
  2. Copy configuration from old switch from NMS WebUI Devices → Click on device → Actions menu → Copy generated config
  3. Paste config to replacement switch (paste with delay between lines or paste in chunks if configuration is not applied correctly)
  4. wr config
  5. Physically replace switch
  6. Update facts from NMS WebUI, update serial in NI etc