DX NetOps VNA integration does not automatically synchronize Maintenance Mode status from vCenter to DX NetOps Spectrum. When vCenter VMs are placed into Maintenance Mode, the corresponding models in Spectrum remain in their current state. To achieve automated maintenance state management, the vCenter automation team must push the state change to Spectrum using the REST API. This article outlines the procedure for automating this workflow.
Product Limitation: VNA does not currently support the automatic synchronization of Maintenance Mode status from vCenter to Spectrum SDN_VM models.
To automate the maintenance mode transition, integrate the following REST API call into your vCenter orchestration or bridge script:
To place a model into Maintenance Mode: Send a PUT request to the following endpoint:
PUT http://<OC_HOST>:<PORT>/spectrum/restful/model/<MODEL_HANDLE>?attr=0x1295d&val=0
To remove a model from Maintenance Mode: Send a PUT request to the following endpoint:
PUT http://<OC_HOST>:<PORT>/spectrum/restful/model/<MODEL_HANDLE>?attr=0x1295d&val=1
Note: Replace <OC_HOST>, <PORT>, and <MODEL_HANDLE> with the specific values for your environment.
For additional information, please see the following KB article Using the REST API to put models into Maintenance mode in CA Spectrum