How to remove or clear an interface speed override in Performance Management

book

Article ID: 191667

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

An interface Speed Override was set via REST. It now needs to be removed. How can it be removed?

Error is seen trying to reset or blank out an interface Speed Override via REST.

Running a PUT against the following in a REST API client.

URL: http://DAHOST:8581/rest/ports/PORTID 
Header: Content-Type: application/xml 
Body:
<Port version="1.0.0">
     <SpeedInOverride></SpeedInOverride>
     <SpeedOutOverride></SpeedOutOverride> 
</Port>

That returns a 400 Bad Request error to the client. The error details state:

<WebServiceException>
<LocalizedMessage>
The web service request failed because the XML provided in the request’s body did not conform to the defined schema (see the documentation at ‘ports/documentation’ for access to the schema definitions).The specific error was: "Error on line 2: cvc-datatype-valid.1.2.1: '' is not a valid value for 'double'.".
</LocalizedMessage>
</WebServiceException>

Cause

Updating with blank values isn't permitted.

Environment

All supported Performance Management releases

Resolution

To reset or clear an interface to a state where it has no Speed Override values set complete the following against the ID for the target port via a REST client.

Method: PUT
URL: http://daHostname:8581/rest/ports/portID
Body content type: application/xml
Body:
<Port version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SpeedInOverride xsi:nil="true"></SpeedInOverride>
  <SpeedOutOverride xsi:nil="true"></SpeedOutOverride>
</Port>

Once removed or cleared out, the interface will revert to using it's discovered speed values.

This process is not available via the Web UI. To achieve the same net result via the web UI set the Speed Override values to match the discovered value.

Additional Information

Enhancement Requests are submitted via the Ideation site found here:

https://community.broadcom.com/ideation/allideas