Flushing All Routes

Flushing All Routes
POST http://<IP_Address>/api/node/mo/sys/pim/inst/dom-default.json
{
  "pimDom": {
    "attributes": {
      "flushRoutes": "yes",
      "name": "default"
    }
  }
}
{
    imdata:[]
}
<System>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <flushRoutes>true</flushRoutes>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
</System>

When routes are flushed, they are removed from the Multicast Routing Information Base (MRIB) and the Multicast Forwarding Information Base (MFIB).

This example flushes existing routes. Routes are removed when the PIM process is restarted. By default, routes are not flushed.

For more information about configuring PIM, see the Cisco Nexus 9000 Series NX-OS Multicast Routing Configuration Guide, Release 7.x.

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-installation-and-configuration-guides-list.html/


CLI Command

The CLI command below is the equivalent to the payload example displayed in the pane on the right.

ip pim flush-routes

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload: https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html