In order to orchestrate a custom Maintenance Mode unit in EOS (another unit than System
), we need to create custom actions in CloudVision.
This repository provides 2 custom actions:
- enter-mm.py which places into maintenance a custom unit
- exit-mm.py which puts out of maintenance a custom unit
- Go to
Provisioning -> Actions -> New Action
. - Give a name (e.g.
Enter Maintenance Mode
). Action Type isChange Control
. - Copy and paste the script enter-mm.py. Go to
Manage Arguments
and create the built-in dynamic arguementDeviceID
and another dynamic argument namedmaintenanceUnit
. Both are required. - Save and repeat the operation for the
Exit Maintenance Mode
custom action.
Here is an example of automation workflow to upgrade an EOS leaf with mono attached hosts:
The custom actions in this workflow can be implemented using the script in this repository.