Storm‑Suppress
This chapter provides examples on how to use Netconf to manage Storm Suppress configurations on AsterNOS devices.
Create Storm Suppress
Section titled “Create Storm Suppress”Request example to create storm suppress via edit-config.
<config><top xmlns="http://asterfusion.com/yang/asternos-storm-suppress"> <storm-suppress-policies> <storm-suppress-policy operation="create"> <name>Ethernet1</name> <pkt-type>broadcast</pkt-type> <meter-type>bytes</meter-type> <meter-rate>7812</meter-rate> </storm-suppress-policy> </storm-suppress-policies></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:5d15f1d9-2f13-41aa-891e-73fadcc3595b"> <ok/></rpc-reply>Delete Storm Suppress
Section titled “Delete Storm Suppress”Request example to delete storm suppress via edit-config.
<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><top xmlns="http://asterfusion.com/yang/asternos-storm-suppress"> <storm-suppress-policies> <storm-suppress-policy operation="delete"> <name>Ethernet1</name> <pkt-type>broadcast</pkt-type> </storm-suppress-policy> </storm-suppress-policies></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:7c2d7301-d118-40cd-85e3-68ab9449c993"> <ok/></rpc-reply>Get Storm Suppress Configuration
Section titled “Get Storm Suppress Configuration”Request example to get storm suppress via get-config.
<filter type="subtree"> <top xmlns="http://asterfusion.com/yang/asternos-storm-suppress"> <storm-suppress-policies> <storm-suppress-policy> <name>Ethernet1</name> <pkt-type>broadcast</pkt-type> </storm-suppress-policy> </storm-suppress-policies> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:070579b8-a48c-470d-80b0-720946612eb1"> <data> <top> <storm-suppress-policies xmlns="http://asterfusion.com/yang/asternos-storm-suppress"> <storm-suppress-policy> <name>Ethernet1</name> <pkt-type>broadcast</pkt-type> <meter-type>bytes</meter-type> <meter-rate>7812</meter-rate> </storm-suppress-policy> </storm-suppress-policies> </top> </data></rpc-reply>Show All Storm Suppress Counters
Section titled “Show All Storm Suppress Counters”Request example to show all storm suppress counters via rpc show-storm-suppress-counters.
<show-storm-suppress-counters/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:4819151d-55be-4cb0-a8a5-2a50d04ab3dd"> <data xmlns="http://asterfusion.com/yang/asternos-storm-suppress"> IFACE Broadcast_Fwd Broadcast_Drop Multicast_Fwd Multicast_Drop Unknown_Fwd Unknown_Drop --------- --------------- ---------------- --------------- ---------------- ------------- -------------- Ethernet1 0 0 0 0 0 0 </data></rpc-reply>