Storm Control REST Configuration
Configures, updates, and deletes storm control REST configuration. The URI to configure data for storm control REST configuration is:
/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/storm_control_config
Supported HTTP Operations
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/storm_control_config
POST method
URL: curl -X PUT https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config -H "Content-Type: application/json" -d @stc.json -u super:sp-admin --insecure
file : stc.json
{
"storm_control_config": {
"broadcast": {
"limit": 8787,
"kbps": true
},
"multicast": {
"limit": 777,
"kbps": true
},
"unknown-unicast": {
"limit": 888,
"kbps": true
}
}
}
URL: curl -X PUT https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/storm_control_config -H "Content-Type: application/json" -d @stc.json -u super:sp-admin --insecure
file : stc.json
{
"storm_control_config": {
"broadcast": {
"limit": 8787,
"kbps": true
},
"multicast": {
"limit": 777,
"kbps": true
},
"unknown-unicast": {
"limit": 888,
"kbps": true
}
}
}
URL: curl -X PATCH https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/storm_control_config -H "Content-Type: application/json" -d @stc_patch.json -u super:sp-admin --insecure
file : stc_patch.json
{
"storm_control_config": {
"broadcast": {
"limit": 111,
"kbps": true
},
"multicast": {
"limit": 222,
"kbps": true
},
"unknown-unicast": {
"limit": 333,
"kbps": true
}
}
}
The following URI deletes the entire storm control configuration (broadcast, unknown-unicast, and multicast):
URL: curl -X DELETE https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/storm_control_config -u super:sp-admin --insecure
The following URI deletes the broadcast storm control configuration:
curl -X DELETE https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/ config/storm_control_config/broadcast -u super:sp-admin --insecure
The following URI deletes the multicast storm control configuration:
curl -X DELETE https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/ config/storm_control_config/multicast -u super:sp-admin --insecure
The following URI deletes the unknown-unicast storm control configuration:
curl -X DELETE https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/ config/storm_control_config/unknown-unicast -u super:sp-admin --insecure