Configuring BFD for PIM

You can configure Bidirectional Forwarding Detection (BFD) for PIM by either VRF or interface.

Configuring BFD for PIM in VRF Mode

Configuring BFD for PIM in VRF Mode
POST http://<IP_Address>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "l3Inst": {
          "attributes": {
            "name": "VRF_1"
 }},{
"pimEntity": {
  "children": [
    {
      "pimInst": {
        "children": [
          {
            "pimDom": {
              "attributes": {
                "bfd": "yes",
                "name": "VRF_1"

}}}]}}]}}]}}
<System>
  <inst-items>
    <Inst-list>
      <name>VRF_1</name>
    </Inst-list>
  </inst-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>VRF_1</name>
          <bfd>true</bfd>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
</System>

This example configures BFD for PIM on the default DOM.


CLI Command

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

interface ethernet 1/2
 vrf context VRF_1
  ip pim bfd

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

Configuring BFD for PIM on an Interface

Configuring BFD for PIM on an Interface
POST http://<IP_Address>/api/node/mo/sys/pim/inst.json
{
  "pimInst": {
    "children": [
      {
        "pimDom": {
          "attributes": {
            "name": "default"
},
"children": [
{
  "pimIf": {
    "attributes": {
      "bfdInst": "enabled",
      "id": "eth1/2"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <bfdInst>enabled</bfdInst>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
</System>

This example configures BFD for PIM on Ethernet interface 1/2.


CLI Commands

The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.

interface eth1/2
 ip pim bfd-instance

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