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.