Configuring PIM6 on an Ethernet Interface

Configuring the Interface to be a Boundary of a PIM6 Domain

Configuring the Interface to be a Boundary of a PIM6 Domain
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "border": "yes",
                              "id": "eth1/2"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <border>true</border>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  ipv6 pim border

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/media/dme/index.html

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

Deleting the Interface to be a Boundary of a PIM6 Domain

Deleting the Interface to be a Boundary of a PIM6 Domain
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "border": "no",
                              "id": "eth1/2"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <border>false</border>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  no ipv6 pim border

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/media/dme/index.html

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 Sparse Mode

Configuring Sparse Mode
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode

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/media/dme/index.html

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

Deleting Sparse Mode

Deleting Sparse Mode
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "no"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>false</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  no ip pim sparse-mode

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/media/dme/index.html

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

Adding AH Header Options to Hellos Using MD5 HMAC

 Adding AH Header Options to Hellos Using MD5 HMAC
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2"
                            },
                            "children": [
                              {
                                "pim6HelloTrP": {
                                  "attributes": {
                                    "authKey": "3 0beaba85fb05a994007a87a73cee8a62",
                                    "authT": "ah-md5"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <hello-items>
                <authKey>3 0beaba85fb05a994007a87a73cee8a62</authKey>
                <authT>ah-md5</authT>
              </hello-items>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  ipv6 pim hello-authentication ah-md5 <auth-key>

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/media/dme/index.html

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

Deleting AH Header Options to Hellos Using MD5 HMAC

Deleting AH Header Options to Hellos Using MD5 HMAC
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2"
                            },
                            "children": [
                              {
                                "pim6HelloTrP": {
                                  "attributes": {
                                    "authKey": "",
                                    "authT": "none"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <hello-items>
                <authKey></authKey>
                <authT>none</authT>
              </hello-items>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  no ipv6 pim hello-authentication ah-md5 <auth-key>

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/media/dme/index.html

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 a Neighbor Policy for Filtering Adjacencies

Configuring a Neighbor Policy for Filtering Adjacencies 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2",
                              "neighRtMap": "RtMap_1",
                              "neighpfxList": ""
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <neighRtMap>RtMap_1</neighRtMap>
              <neighpfxList></neighpfxList>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  ipv6 pim neighbor-policy RtMap_1

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/media/dme/index.html

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

Deleting a Neighbor Policy for Filtering Adjacencies

Deleting a Neighbor Policy for Filtering Adjacencies 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2",
                              "neighRtMap": "",
                              "neighpfxList": ""
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <neighRtMap></neighRtMap>
              <neighpfxList></neighpfxList>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  no ipv6 pim neighbor-policy RtMap_1

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/media/dme/index.html

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 the Priority for PIM6 DR Election on Interface

Configuring the Priority for PIM6 DR Election on Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "drPrio": "123",
                              "id": "eth1/2"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <drPrio>123</drPrio>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  ipv6 pim dr-priority 123

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/media/dme/index.html

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

Deleting the Priority for PIM6 DR Election on Interface

Deleting the Priority for PIM6 DR Election on Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "drPrio": "1",
                              "id": "eth1/2"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <drPrio>1</drPrio>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  no ipv6 pim dr-priority 123

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/media/dme/index.html

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 the Policy for Receiving Join-Prune Messages

Configuring the Policy for Receiving Join-Prune Messages
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2"
                            },
                            "children": [
                              {
                                "pim6JpTrP": {
                                  "attributes": {
                                    "RtMap": "RtMap_1",
                                    "pfxList": "",
                                    "policyDir": "none"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <jp-items>
                <JpTrP-list>
                  <policyDir>none</policyDir>
                  <RtMap>RtMap_1</RtMap>
                  <pfxList></pfxList>
                </JpTrP-list>
              </jp-items>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  ipv6 pim jp-policy RtMap_1

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/media/dme/index.html

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

Deleting the Policy for Receiving Join-Prune Messages

Deleting the Policy for Receiving Join-Prune Messages
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pimEntity": {
          "children": [
            {
              "pimInst": {
                "children": [
                  {
                    "pimDom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pimIf": {
                            "attributes": {
                              "id": "eth1/2",
                              "pimSparseMode": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2"
                            },
                            "children": [
                              {
                                "pim6JpTrP": {
                                  "attributes": {
                                    "RtMap": "",
                                    "pfxList": "",
                                    "policyDir": "none"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <pimSparseMode>true</pimSparseMode>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <jp-items>
                <JpTrP-list>
                  <policyDir>none</policyDir>
                  <RtMap></RtMap>
                  <pfxList></pfxList>
                </JpTrP-list>
              </jp-items>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no switchport
  ip pim sparse-mode
  no ipv6 pim jp-policy RtMap_1

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/media/dme/index.html

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 the Hello-Event Interval

Configuring the Hello-Event Interval
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/1",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/1",
                              "pimSparseMode": "yes"
                            },
                            "children": [
                              {
                                "pim6HelloTrP": {
                                  "attributes": {
                                    "helloItvl": "1001"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/1</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/1</id>
              <pimSparseMode>true</pimSparseMode>
              <hello-items>
                <helloItvl>1001</helloItvl>
              </hello-items>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/3
 no switchport
  ip pim sparse-mode
  ipv6 pim hello-interval 1001

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/media/dme/index.html

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

Deleting the Hello-Event Interval

Deleting the Hello-Event Interval
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/1",
                  "layer": "Layer3",
                  "userCfgdFlags": "admin_layer"
                }
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/1",
                              "pimSparseMode": "yes"
                            },
                            "children": [
                              {
                                "pim6HelloTrP": {
                                  "attributes": {
                                    "helloItvl": "30000"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/1</id>
        <layer>Layer3</layer>
        <userCfgdFlags>admin_layer</userCfgdFlags>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/1</id>
              <pimSparseMode>true</pimSparseMode>
              <hello-items>
                <helloItvl>30000</helloItvl>
              </hello-items>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/3
 no switchport
  ip pim sparse-mode
  no ipv6 pim hello-interval 1001

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/media/dme/index.html

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 the Interface in Passive Mode

Configuring the Interface in Passive Mode
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2"
                }
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2",
                              "passive": "yes"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <passive>true</passive>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(2).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 ipv6 pim passive

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

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
https://developer.cisco.com/media/dme/index.html

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

Deleting the Interface in Passive Mode

Deleting the Interface in Passive Mode
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "interfaceEntity": {
          "children": [
            {
              "l1PhysIf": {
                "attributes": {
                  "id": "eth1/2"
                }
              }
            }
          ]
        }
      },
      {
        "pim6Entity": {
          "children": [
            {
              "pim6Inst": {
                "children": [
                  {
                    "pim6Dom": {
                      "attributes": {
                        "name": "default"
                      },
                      "children": [
                        {
                          "pim6If": {
                            "attributes": {
                              "id": "eth1/2",
                              "passive": "no"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <intf-items>
    <phys-items>
      <PhysIf-list>
        <id>eth1/2</id>
      </PhysIf-list>
    </phys-items>
  </intf-items>
  <pim6-items>
    <inst-items>
      <dom-items>
        <Dom-list>
          <name>default</name>
          <if-items>
            <If-list>
              <id>eth1/2</id>
              <passive>false</passive>
            </If-list>
          </if-items>
        </Dom-list>
      </dom-items>
    </inst-items>
  </pim6-items>
</System>

Note: This example was added in Release 9.2(2).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface ethernet 1/2
 no ipv6 pim passive

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

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
https://developer.cisco.com/media/dme/index.html

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