Configuring Hostname Loopback

This section contains payload examples to demonstrate how to use the NX-API REST API to configure hostname lookup on the Cisco Nexus 3000 and 9000 Series switches.

Configuring Loopback: sys/intf/lb-[lo30]

Payload to configure loopback: sys/intf/lb-[lo30]
{
  "l3LbRtdIf" : {
    "attributes" : {
      "descr": "New Loopback"
    }
  }
}
{
    imdata": []
}

This example demonstrates the payload for configuring loopback

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