Page MenuHomePhabricator

Add switch interface and cable support to decom and offline scripts
Closed, ResolvedPublic


Goes in pair with T265339.

We need the decommission cookbook to:

  1. For all revenue interfaces on a given decommissioning device
    1. Check if a cable is connected
    2. Set the remote side of the cable (switch interface) to disabled
    3. Remove any vlan configuration
  2. Run Homer

It should also stop deleting the interfaces so the cables don't get deleted automatically, to match the onsite reality and instead delete the IPs attached to the interfaces only.

Then later on, the offline script needs to:

  1. Delete all interfaces and connected cables.

Event Timeline

Change 633723 had a related patch set uploaded (by Ayounsi; owner: Ayounsi):
[operations/cookbooks@master] Add switch interface support to decom script

The offline script already deleted all interfaces:

About the decom cookbook, the above CR should do the job.

The run Homer step can be manual for now, but ideally automated. see T265342.

Change 633723 merged by jenkins-bot:
[operations/cookbooks@master] Add switch interface support to decom script

ayounsi claimed this task.