DX NetOps

 View Only
  • 1.  Rest API CAPM Port speed reset

    Posted May 27, 2020 01:30 PM

    I trying to figure out how to clear / reset the port speed on interfaces using the rest API.  I have the code to set the speed but I now need the XML to clear the existing override.

    Using the following to set the speed.

    my ($data) = '<?xml version="1.0" encoding="UTF-8"?>
    <Port version="1.0.0">
    <SpeedOutOverride>' . $speed[2] . '</SpeedOutOverride>
    <SpeedInOverride>' . $speed[1] . '</SpeedInOverride>
    </Port>';

    $client->PUT('/rest/ports/' . $line[0] . '/', $data,
    {'Authorization' => "Basic $encode_auth",
    'Content-Type' => 'application/xml',
    'Accept' => 'application/xml'});

    Now I need the second part to remove the override.



  • 2.  RE: Rest API CAPM Port speed reset
    Best Answer

    Broadcom Employee
    Posted May 27, 2020 02:55 PM
    Resolved with REST PUT using the body detailed in the following KB article. https://knowledge.broadcom.com/external/article?articleId=191667

    ------------------------------
    Technical Support Engineer IV
    Broadcom
    ------------------------------