Configuring BFD

Bidirectional Forwarding Detection (BFD) is a detection protocol designed to provide fast forwarding path failure detection times for all media types, encapsulations, topologies, and routing protocols. In addition to fast forwarding path failure detection, BFD provides a consistent failure detection method for network administrators. Because the network administrator can use BFD to detect forwarding path failures at a uniform rate, rather than the variable rates for different routing protocol hello mechanisms, network profiling and planning will be easier, and reconvergence time will be consistent and predictable.

See the Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide for more information.

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

Enabling BFD

Enabling BFD
POST http://<mgmt0_IP>/api/mo/sys/fm.json
{
  "fmEntity": {
    "children": [
      {
        "fmBfd": {
          "attributes": {
            "adminSt": "enabled"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <fm-items>
    <bfd-items>
      <adminSt>enabled</adminSt>
    </bfd-items>
  </fm-items>
</System>


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.

feature 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

Disabling BFD

Disabling BFD
POST http://<mgmt0_IP>/api/mo/sys/fm.json
{
  "fmEntity": {
    "children": [
      {
        "fmBfd": {
          "attributes": {
            "adminSt": "disabled"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <fm-items>
    <bfd-items>
      <adminSt>disabled</adminSt>
    </bfd-items>
  </fm-items>
</System>


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.

no feature 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 an Interface for BFD Echo Frames

Configuring an Interface for BFD Echo Frames
POST http://<mgmt0_IP>/api/mo/sys/bfd.json
{
  "bfdEntity": {
    "children": [
      {
        "bfdInst": {
          "attributes": {
            "echoIf": "lo123"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <echoIf>lo123</echoIf>
    </inst-items>
  </bfd-items>
</System>


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.

bfd echo-interface loopback 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/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

Deleting a BFD Echo Frames Configuration

Deleting a BFD Echo Frames Configuration
POST http://<mgmt0_IP>/api/mo/sys/bfd.json
{
  "bfdEntity": {
    "children": [
      {
        "bfdInst": {
          "attributes": {
            "echoIf": "null0"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <echoIf>null0</echoIf>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd echo-interface loopback 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/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 the Delayed Startup Timer

Configuring the Delayed Startup Timer
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdEntity": {
    "children": [
      {
        "bfdInst": {
          "attributes": {
            "startupIntvl": "12"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <startupIntvl>12</startupIntvl>
    </inst-items>
  </bfd-items>
</System>


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.

bfd startup-timer 12

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

Disabling a Configured Startup Timer

Disabling a Configured Startup Timer
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdEntity": {
    "children": [
      {
        "bfdInst": {
          "attributes": {
            "startupIntvl": "5"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <startupIntvl>5</startupIntvl>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd startup-timer 12

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

IPv4 Configuration

Configuring the Minimum RX Interval and Multiplier Detection

Configuring the Minimum RX Interval and Multiplier Detection 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv4"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "detectMult": "25",
                  "minRxIntvl": "123",
                  "minTxIntvl": "123"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv4</type>
          <ka-items>
            <detectMult>25</detectMult>
            <minRxIntvl>123</minRxIntvl>
            <minTxIntvl>123</minTxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

bfd ipv4 interval 123 min_rx 123 multiplier 25

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

Disabling the Minimum RX Interval and Multiplier Detection

Disabling the Minimum RX Interval and Multiplier Detection 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv4"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "detectMult": "3",
                  "minRxIntvl": "50",
                  "minTxIntvl": "50"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv4</type>
          <ka-items>
            <detectMult>3</detectMult>
            <minRxIntvl>50</minRxIntvl>
            <minTxIntvl>50</minTxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd ipv4 interval 123 min_rx 123 multiplier 25

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 the Slow Timer

Configuring the Slow Timer 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "slowIntvl": "1123",
            "type": "ipv4"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv4</type>
          <slowIntvl>1123</slowIntvl>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

bfd ipv4 slow-timer 1123

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

Disabling the Slow Timer

Disabling the Slow Timer 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "slowIntvl": "2000",
            "type": "ipv4"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv4</type>
          <slowIntvl>2000</slowIntvl>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd ipv4 slow-timer 1123

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 a BFD Session Echo RX Interval

Configuring a BFD Session Echo RX Interval 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv4"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "echoRxIntvl": "123"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv4</type>
          <ka-items>
            <echoRxIntvl>123</echoRxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

bfd ipv4 echo-rx-interval 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/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

Deleting a BFD Session Echo RX Interval Configuration

Deleting a BFD Session Echo RX Interval Configuration 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv4"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "echoRxIntvl": "0"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv4</type>
          <ka-items>
            <echoRxIntvl>0</echoRxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd ipv4 echo-rx-interval 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/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 Keyed-SHA1 Authentication

Configuring Keyed-SHA1 Authentication 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "type": "ipv4"
                },
                "children": [
                  {
                    "bfdAuthP": {
                      "attributes": {
                        "hexKey": "0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0",
                        "hexKeySize": "0",
                        "key": "Val_1",
                        "keyId": "123",
                        "type": "sha1"
}}}]}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv4</type>
              <auth[met-sha1][sha1][met-sha1]-items>
                <hexKey>0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0</hexKey>
                <hexKeySize>0</hexKeySize>
                <key>Val_1</key>
                <keyId>123</keyId>
                <type>sha1</type>
              </auth[met-sha1][sha1][met-sha1]-items>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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
 bfd ipv4 auth[met-sha1][sha1][met-sha1]entication Keyed-SHA1 key-id 123 key Val_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/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 Meticulous-Keyed-SHA1 Authentication

Configuring Meticulous-Keyed-SHA1 Authentication 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "type": "ipv4"
                },
                "children": [
                  {
                    "bfdAuthP": {
                      "attributes": {
                        "hexKey": "0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0",
                        "hexKeySize": "0",
                        "key": "VAL_1",
                        "keyId": "123",
                        "type": "met-sha1"
}}}]}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv4</type>
              <auth[met-sha1][sha1]-items>
                <hexKey>0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0</hexKey>
                <hexKeySize>0</hexKeySize>
                <key>VAL_1</key>
                <keyId>123</keyId>
                <type>met-sha1</type>
              </auth[met-sha1][sha1]-items>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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
 bfd ipv4 auth[met-sha1][sha1]entication meticulous-Keyed-SHA1 key-id 123 key VAL_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/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 the Echo Function for all Address Families

Configuring the Echo Function for all Address Families 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "echoAdminSt": "enabled",
                  "type": "ipv4"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv4</type>
              <echoAdminSt>enabled</echoAdminSt>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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
 bfd ipv4 echo

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

Disabling the Echo Function for all Address Families

Disabling the Echo Function for all Address Families 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "echoAdminSt": "disabled",
                  "type": "ipv4"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv4</type>
              <echoAdminSt>disabled</echoAdminSt>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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 bfd ipv4 echo

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 Interval

Configuring BFD Interval
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst/if-{[id]}.json
{
  "bfdIf": {
    "attributes": {
      "id": "eth1/1"
    },
    "children": [
      {
        "bfdKaP": {
          "attributes": {
            "detectMult": "3",
            "minRxIntvl": "50",
            "minTxIntvl": "50"
}}}]}}
{
    imdata:[]
}
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/1</id>
          <ka-items>
            <detectMult>3</detectMult>
            <minRxIntvl>50</minRxIntvl>
            <minTxIntvl>50</minTxIntvl>
          </ka-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>

Configures the BFD session parameters for all BFD sessions on the device. This command overrides these values by configuring the BFD session parameters on an interface.


CLI Commands

The CLI commands and options listed below are the 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 or the YANG tab to view the XML payload.

interface ethernet1/1
bfd interval 50 min_rx 50 multiplier 3

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 Sessions on Each Port-Channel Link 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "bfdEntity": {
          "children": [
            {
              "bfdInst": {
                "children": [
                  {
                    "bfdIf": {
                      "attributes": {
                        "id": "po123"
                      },
                      "children": [
                        {
                          "bfdIfAf": {
                            "attributes": {
                              "ctrl": "pc-per-link",
                              "type": "ipv4"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "interfaceEntity": {
          "children": [
            {
              "pcAggrIf": {
                "attributes": {
                  "id": "po123"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>po123</id>
          <af-items>
            <IfAf-list>
              <type>ipv4</type>
              <ctrl>pc-per-link</ctrl>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
  <intf-items>
    <aggr-items>
      <AggrIf-list>
        <id>po123</id>
      </AggrIf-list>
    </aggr-items>
  </intf-items>
</System>


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 port-channel 123
 bfd ipv4 per-link

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

Disabling BFD Sessions on Each Port-Channel Link 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "bfdEntity": {
          "children": [
            {
              "bfdInst": {
                "children": [
                  {
                    "bfdIf": {
                      "attributes": {
                        "id": "po123"
                      },
                      "children": [
                        {
                          "bfdIfAf": {
                            "attributes": {
                              "ctrl": "",
                              "type": "ipv4"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "interfaceEntity": {
          "children": [
            {
              "pcAggrIf": {
                "attributes": {
                  "id": "po123"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>po123</id>
          <af-items>
            <IfAf-list>
              <type>ipv4</type>
              <ctrl></ctrl>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
  <intf-items>
    <aggr-items>
      <AggrIf-list>
        <id>po123</id>
      </AggrIf-list>
    </aggr-items>
  </intf-items>
</System>


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 port-channel 123
 no bfd ipv4 per-link

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

IPv6 Configuration

Configuring the Minimum RX Interval and Multiplier Detection

Configuring the Minimum RX Interval and Multiplier Detection 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv6"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "detectMult": "25",
                  "minRxIntvl": "123",
                  "minTxIntvl": "123"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv6</type>
          <ka-items>
            <detectMult>25</detectMult>
            <minRxIntvl>123</minRxIntvl>
            <minTxIntvl>123</minTxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

bfd ipv6 interval 123 min_rx 123 multiplier 25

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

Disabling the Minimum RX Interval and Multiplier Detection

Disabling the Minimum RX Interval and Multiplier Detection 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv6"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "detectMult": "3",
                  "minRxIntvl": "50",
                  "minTxIntvl": "50"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv6</type>
          <ka-items>
            <detectMult>3</detectMult>
            <minRxIntvl>50</minRxIntvl>
            <minTxIntvl>50</minTxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd ipv6 interval 123 min_rx 123 multiplier 25

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 the Slow Timer

Configuring the Slow Timer 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "slowIntvl": "1123",
            "type": "ipv6"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv6</type>
          <slowIntvl>1123</slowIntvl>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

bfd ipv6 slow-timer 1123

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

Disabling the Slow Timer

Disabling the Slow Timer 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "slowIntvl": "2000",
            "type": "ipv6"
}}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv6</type>
          <slowIntvl>2000</slowIntvl>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd ipv6 slow-timer 1123

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 a BFD Session Echo RX Interval

Configuring a BFD Session Echo RX Interval 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv6"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "echoRxIntvl": "123"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv6</type>
          <ka-items>
            <echoRxIntvl>123</echoRxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

bfd ipv6 echo-rx-interval 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/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

Deleting a BFD Session Echo RX Interval Configuration

Deleting a BFD Session Echo RX Interval Configuration 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdInstAf": {
          "attributes": {
            "type": "ipv6"
          },
          "children": [
            {
              "bfdKaP": {
                "attributes": {
                  "echoRxIntvl": "0"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <af-items>
        <InstAf-list>
          <type>ipv6</type>
          <ka-items>
            <echoRxIntvl>0</echoRxIntvl>
          </ka-items>
        </InstAf-list>
      </af-items>
    </inst-items>
  </bfd-items>
</System>


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.

no bfd ipv6 echo-rx-interval 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/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 Keyed-SHA1 Authentication

Configuring Keyed-SHA1 Authentication 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "type": "ipv6"
                },
                "children": [
                  {
                    "bfdAuthP": {
                      "attributes": {
                        "hexKey": "0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0",
                        "hexKeySize": "0",
                        "key": "Val_",
                        "keyId": "123",
                        "type": "sha1"
}}}]}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv6</type>
              <auth[met-sha1]-items>
                <hexKey>0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0</hexKey>
                <hexKeySize>0</hexKeySize>
                <key>Val_</key>
                <keyId>123</keyId>
                <type>sha1</type>
              </auth[met-sha1]-items>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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
 bfd ipv6 auth[met-sha1]entication Keyed-SHA1 key-id 123 key Val_

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 Meticulous-Keyed-SHA1 Authentication

Configuring Meticulous-Keyed-SHA1 Authentication 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "type": "ipv6"
                },
                "children": [
                  {
                    "bfdAuthP": {
                      "attributes": {
                        "hexKey": "0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0",
                        "hexKeySize": "0",
                        "key": "VAL_1",
                        "keyId": "123",
                        "type": "met-sha1"
}}}]}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv6</type>
              <auth-items>
                <hexKey>0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0</hexKey>
                <hexKeySize>0</hexKeySize>
                <key>VAL_1</key>
                <keyId>123</keyId>
                <type>met-sha1</type>
              </auth-items>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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
 bfd ipv6 authentication meticulous-Keyed-SHA1 key-id 123 key VAL_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/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 the Echo Function for all Address Families

Configuring the Echo Function for all Address Families 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "echoAdminSt": "enabled",
                  "type": "ipv6"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv6</type>
              <echoAdminSt>enabled</echoAdminSt>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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
 bfd ipv6 echo

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

Disabling the Echo Function for all Address Families

Disabling the Echo Function for all Address Families 
POST http://<mgmt0_IP>/api/mo/sys/bfd/inst.json
{
  "bfdInst": {
    "children": [
      {
        "bfdIf": {
          "attributes": {
            "id": "eth1/2"
          },
          "children": [
            {
              "bfdIfAf": {
                "attributes": {
                  "echoAdminSt": "disabled",
                  "type": "ipv6"
}}}]}}]}}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>eth1/2</id>
          <af-items>
            <IfAf-list>
              <type>ipv6</type>
              <echoAdminSt>disabled</echoAdminSt>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
</System>


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 bfd ipv6 echo

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 Sessions on Each Port-Channel Link 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "bfdEntity": {
          "children": [
            {
              "bfdInst": {
                "children": [
                  {
                    "bfdIf": {
                      "attributes": {
                        "id": "po123"
                      },
                      "children": [
                        {
                          "bfdIfAf": {
                            "attributes": {
                              "ctrl": "pc-per-link",
                              "type": "ipv6"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "interfaceEntity": {
          "children": [
            {
              "pcAggrIf": {
                "attributes": {
                  "id": "po123"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>po123</id>
          <af-items>
            <IfAf-list>
              <type>ipv6</type>
              <ctrl>pc-per-link</ctrl>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
  <intf-items>
    <aggr-items>
      <AggrIf-list>
        <id>po123</id>
      </AggrIf-list>
    </aggr-items>
  </intf-items>
</System>


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 port-channel 123
 bfd ipv6 per-link

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

Disabling BFD Sessions on Each Port-Channel Link 
POST http://<mgmt0_IP>/api/mo/sys.json
{
  "topSystem": {
    "children": [
      {
        "bfdEntity": {
          "children": [
            {
              "bfdInst": {
                "children": [
                  {
                    "bfdIf": {
                      "attributes": {
                        "id": "po123"
                      },
                      "children": [
                        {
                          "bfdIfAf": {
                            "attributes": {
                              "ctrl": "",
                              "type": "ipv6"
                            }
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "interfaceEntity": {
          "children": [
            {
              "pcAggrIf": {
                "attributes": {
                  "id": "po123"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
POST:  http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System>
  <bfd-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>po123</id>
          <af-items>
            <IfAf-list>
              <type>ipv6</type>
              <ctrl></ctrl>
            </IfAf-list>
          </af-items>
        </If-list>
      </if-items>
    </inst-items>
  </bfd-items>
  <intf-items>
    <aggr-items>
      <AggrIf-list>
        <id>po123</id>
      </AggrIf-list>
    </aggr-items>
  </intf-items>
</System>


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 port-channel 123
 no bfd ipv6 per-link

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