Configuring Interfaces
Cisco NX-OS supports multiple configuration parameters for each of the interface types supported. Most of these parameters are covered in this guide but some are described in other documents.
For more information, see the Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x.
Configuring an Interface as a Trunk Port and Enabling a List of Allowed VLANs
Configuring an Interface as a Trunk Port and Enabling a List of Allowed VLANs
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"l1PhysIf": {
"attributes": {
"rn": "phys-[eth3/21]",
"id": "eth3/21",
"descr": "MDT test: trunk port",
"layer": "Layer2",
"mode": "trunk",
"mtu": "9216",
"adminSt": "up",
"trunkLog": "enable",
"trunkVlans": "2-150",
"snmpTrapSt": "disable"
}}}}}
The example in this section configures an interface as a trunk port and enables a list of trunk VLANs. When this API call executes, an l1PhysIf object named "phys-[eth3/21]" (/sys/intf/phys-[eth3/21]/) is created in the MO database, as well as several other objects that are required for port channel functionality.
The phys-[eth3/21] object holds the configuration for the interface that is configured as a trunk port.
To verify that the interface configuration was created, issue an HTTP GET request to query the following URI.
http://<IP_Address>/api/mo/sys/intf/phys-[eth3/21].json
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
QUERY PARAMETERS
No query parameters
Querying a Trunk Port Configuration
Querying a Trunk Port Configuration
{
"totalCount": "1",
"imdata": [
{
"l1PhysIf": {
"attributes": {
"accessVlan": "unknown",
"adminSt": "down",
"autoNeg": "on",
"bw": "0",
"childAction": "",
"delay": "1",
"descr": "MDT test: trunk port",
"dn": "sys/intf/phys-[eth3/21]",
"dot1qEtherType": "0x8100",
"duplex": "auto",
"ethpmCfgFailedBmp": "",
"ethpmCfgFailedTs": "00:00:00:00.000",
"ethpmCfgState": "0",
"id": "eth3/21",
"inhBw": "unspecified",
"layer": "Layer3",
"lcOwn": "local",
"linkDebounce": "100",
"linkLog": "default",
"mdix": "auto",
"medium": "broadcast",
"modTs": "2015-07-22T02:12:44.341+00:00",
"mode": "trunk", ================> shows port configured as "trunk"
"monPolDn": "",
"mtu": "9216",
"name": "",
"portT": "unknown",
"routerMac": "not-applicable",
"snmpTrapSt": "disable",
"spanMode": "not-a-span-dest",
"speed": "auto",
"status": "",
"switchingSt": "disabled",
"trunkLog": "enable",
"trunkVlans": "2-150",
"uid": "28530",
"usage": "discovery",
"userCfgdFlags": "0",
"vlanmgrCfgFailedBmp": "",
"vlanmgrCfgFailedTs": "00:00:00:00.000",
"vlanmgrCfgState": "0"
}}}]}
The example in this section queries the trunk port interface configuration that was specified in the previous POST request.
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
HTTP Request
HTTP Request
GET http://IP_Address/api/mo/sys/intf/phys-[eth3/21].json
QUERY PARAMETERS
No query parameters
Configuring an Interface as a Layer 2 Access Port and Enabling an Access VLAN
Configuring an Interface as a Layer 2 Access Port and Enabling an Access VLAN
POST http://<IP_Address>/api/mo/sys.json`
{
"topSystem": {
"children": [
{
"l1PhysIf": {
"attributes": {
"rn": "phys-[eth3/21]",
"id": "eth3/21",
"descr": "MDT test: trunk port",
"layer": "Layer2",
"mode": "access",
"mtu": "9216",
"adminSt": "up",
"trunkLog": "enable",
"accessVlan": "vlan-150",
"snmpTrapSt": "disable"
}}}}}
This example configures an interface as a layer 2 access port and enables an access VLAN.
When the POST request executes, the l1PhysIf object that was created in the previous POST request "phys-[eth3/21]" (/sys/intf/phys-[eth3/21]/) is reconfigured to be a layer 2 access port.
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
Verifying an Interface Configuration was Created
Verifying an Interface Configuration was Created
http://<IP_Address>/api/mo/sys/intf/phys-[eth3/21].json
To verify that the interface configuration was created, issue an HTTP GET request to query the following URI:
QUERY PARAMETERS
No query parameters
Issuing a Shut or No Shut of the Interface
Issuing a Shut or No Shut of the Interface
POST http://<IP_address>//api/mo/sys.json`
{
"l1PhysIf" : {
"attributes" : {
"id" : "eth3/21",
"mtu" : "default"
"speed" : "auto"
"adminSt": "up"
}}}
{
imdata": []
}
The example in this section shows how to issue a shut or no shut for an interface. In this example, the interface that was first configured to be a trunk port and then reconfigured to be a layer 2 access port, as shown in previous sections, is brought up.
If the interface is up and you want to bring it down, change "adminSt": "up" to "adminSt": "down"
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
QUERY PARAMETERS
No query parameters
Verifying the Shut or No Shut of the Interface
Verifying the Shut or No Shut of the Interface
GET http://<IP_address>/api/mo/sys/intf/phys-[eth3/21].json
{
"totalCount": "1",
"imdata": [
{
"l1PhysIf": {
"attributes": {
"accessVlan": "vlan-150",
"adminSt": "up", ---------> indicate that interface is "no shut"
"autoNeg": "on",
"bw": "0",
"childAction": "",
"delay": "1",
}
To verify that the shut or no shut command was successful, perform an HTTP GET operation.
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 IPv4 Address for an Interface
Configuring ACL TCAM Region with e-racl TCAM Carving
POST http://<IP_address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"ipv4Entity": {
"children": [
{
"ipv4Inst": {
"children": [
{
"ipv4Dom": {
"attributes": {
"name": "default"
},
"children": [
{
"ipv4If": {
"attributes": {
"id": "eth1/1"
},
"children": [
{
"ipv4Addr": {
"attributes": {
"addr": "10.0.0.1/10"
}}}]}}]}}]}}]}}]}}
The HTTP request in this example assigns an IPv4 address to an interface.
Note: This example was added in Release 7.0(3)I6(1).
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
QUERY PARAMETERS
No query parameters
Configuring User Flags
Configuring User Flags
POST
http://<IP_Address>172.31.200.141/api/mo/sys/intf/phys-[eth1/2].json
{
"l1PhysIf" : {
"attributes" : {
"id" : "eth1/2",
“layer" : “Layer2”,
"userCfgdFlags" : "admin_layer"
}}}
Configuring User Flags
POST
http://<IP_Address>/api/mo/sys/intf/phys-[eth1/2].json
{
"l1PhysIf" : {
"attributes" : {
"id" : "eth1/2",
"layer" : “Layer3”,
"mtu" : "5000",
"adminSt" : "up",
"userCfgdFlags" : "admin_layer,admin_mtu,admin_state"
}}}
User configured flags (REST property userCfgdFlags in l1PhysIf and pcAggrIf MOs) are used to indicate that a property (layer, admin state, and/or mtu) has been configured by the user.
If these flags are not set, you may experience configuration loss (for layer, admin state, and MTU) on the reload of the system.
Interfaces with the “admin_layer” and/or “admin_state” value set for “userCfgdFlags” will be unaffected by the system default switchport
and system default switchport shutdown
commands (respectively). User configured flags are automatically set correctly when CLI is executed, and only must be manually set for REST.
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 System Default Switchport Settings
Configuring the System Default Switchport
Configuring the System Default Switchport
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
"topSystem": {
"children": [
{
"ethpmEntity": {
"children": [
{
"ethpmInst": {
"attributes": {
"systemDefaultLayer": "Layer2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<ethpm-items>
<inst-items>
<systemDefaultLayer>Layer2</systemDefaultLayer>
</inst-items>
</ethpm-items>
</System>
Note: This example was added in Release 7.0(3)I7(3).
CLI Command
The CLI command below is the equivalent to the payload example 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.
system default switchport
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 the System Default Switchport
Deleting the System Default Switchport
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
"topSystem": {
"children": [
{
"ethpmEntity": {
"children": [
{
"ethpmInst": {
"attributes": {
"systemDefaultLayer": "Layer3"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<ethpm-items>
<inst-items>
<systemDefaultLayer>Layer3</systemDefaultLayer>
</inst-items>
</ethpm-items>
</System>
Note: This example was added in Release 7.0(3)I7(3).
CLI Command
The CLI command below is the equivalent to the payload example 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.
no system default switchport
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 System Default Switchport Admin State (Down)
Configuring the System Default Switchport Admin State
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
"topSystem": {
"children": [
{
"ethpmEntity": {
"children": [
{
"ethpmInst": {
"attributes": {
"systemDefaultAdminSt": "down"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<ethpm-items>
<inst-items>
<systemDefaultAdminSt>down</systemDefaultAdminSt>
</inst-items>
</ethpm-items>
</System>
Note: This example was added in Release 7.0(3)I7(3).
CLI Command
The CLI command below is the equivalent to the payload example 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.
system default switchport shutdown
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 System Default Switchport Admin State (Up)
Configuring the System Default Switchport
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
"topSystem": {
"children": [
{
"ethpmEntity": {
"children": [
{
"ethpmInst": {
"attributes": {
"systemDefaultAdminSt": "up"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<ethpm-items>
<inst-items>
<systemDefaultAdminSt>up</systemDefaultAdminSt>
</inst-items>
</ethpm-items>
</System>
Note: This example was added in Release 7.0(3)I7(3).
CLI Command
The CLI command below is the equivalent to the payload example 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.
no system default switchport down
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 Breakout Profiles
Configuring a Breakout Profile
Configuring a Breakout Profile
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"imEntity": {
"children": [
{
"imInst": {
"attributes": {
"BreakoutProfile": "50g-2x-only"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<im-items>
<inst-items>
<BreakoutProfile>50g-2x-only</BreakoutProfile>
</inst-items>
</im-items>
</System>
Note: This example was added in Release 7.0(3)I7(3).
CLI Command
The CLI command below is the equivalent of the payload example 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 breakout-profile 50g-2x-only
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 Breakout Profile
Deleting a Breakout Profile
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"imEntity": {
"children": [
{
"imInst": {
"attributes": {
"BreakoutProfile": "disabled"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<im-items>
<inst-items>
<BreakoutProfile>disabled</BreakoutProfile>
</inst-items>
</im-items>
</System>
Note: This example was added in Release 7.0(3)I7(3).
CLI Command
The CLI command below is the equivalent of the payload example 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.
no interface breakout-profile 50g-2x-only
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
Creating a Subinterface under a Main Interface
Creating a Subinterface under a Main Interface
POST http://<IP_address>/api/mo/sys/intf.json
{
"l3EncRtdIf" : {
"attributes" : {
"id" : "eth3/27.100"
"descr": "new interface 100"
"encap": "vlan-100",
"adminSt": "up"
"mediumType" : "p2p"
}}}
{
imdata": []
}
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
The example in this section creates a subinterface under a main interface.
QUERY PARAMETERS
No query parameters
Querying the State of a Subinterface
Querying the State of a Subinterface
POST http://<IP_address>/api/mo/sys/intf/encrtd-[eth3/27.100].json
{
"totalCount": "1",
"imdata": [
{
"l3EncRtdIf": {
"attributes": {
"adminSt": "up",
"bw": "0",
"childAction": "",
"delay": "1",
"descr": "",
"dn": "sys/intf/encrtd-[eth3/27.100]",
"encap": "vlan-100",
"ethpmCfgFailedBmp": "",
"ethpmCfgFailedTs": "00:00:00:00.000",
"ethpmCfgState": "0",
"id": "eth3/27.100",
"ifConnDn": "",
"lcOwn": "local",
"linkLogEn": "default",
"mediumType": "broadcast",
"modTs": "2015-07-16T04:21:02.065+00:00",
"monPolDn": "",
"mtu": "1500",
"mtuInherit": "yes",
"name": "",
"routerMac": "00:00:00:00:00:00",
"status": ""
}}}]}
The example in this section queries the state of a specified subinterface.
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
QUERY PARAMETERS
No query parameters
Configuring the DNS Source Interface
Configuring the DNS Source Interface
POST http://<mgmt0_IP>/api/mo/sys/ipSrcIf.json
{
"srcintfEntity": {
"children": [
{
"srcintfDnsSrcIf": {
"attributes": {
"srcIf": "lo111",
"vrf": "default"
}}}]}}
{
imdata:[]
}
<System>
<ipSrcIf-items>
<dns-items>
<DnsSrcIf-list>
<vrf>default</vrf>
<srcIf>lo111</srcIf>
</DnsSrcIf-list>
</dns-items>
</ipSrcIf-items>
</System>
Configures the DNS Source Interface
Note: This example was added in Release 7.0(3)I6(1).
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.
ip dns source-interface loopback 111
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 Source Interface Feature for a TFTP Client
Configuring the Source Interface Feature for a TFTP Client
POST http://<mgmt0_IP>/api/mo/sys/ipSrcIf.json
{
"srcintfEntity": {
"children": [
{
"srcintfTftp": {
"attributes": {
"srcIf": "lo111",
"vrf": "default"
}}}]}}
{
imdata:[]
}
<System>
<ipSrcIf-items>
<tftp-items>
<Tftp-list>
<vrf>default</vrf>
<srcIf>lo111</srcIf>
</Tftp-list>
</tftp-items>
</ipSrcIf-items>
</System>
Note: This example was added in Release 7.0(3)I6(1).
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.
ip tftp source-interface loopback 111
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 Network Address Translation (NAT)
Enable Network Address Translation (NAT)
Network Address Translation (NAT) enables private IP internetworks that use nonregistered IP addresses to connect to the Internet. NAT operates on a device, usually connecting two networks, and translates private (not globally unique) IP addresses in the internal network into legal IP addresses before packets are forwarded to another network.
Before you can use the NX-API REST NAT configuration APIs, you must enable NAT on the switch.
Follow these steps to enable NAT.
Enter global configuration mode:
config t
Enable the NAT feature:
switch(config)# feature nat
NAT configuration mode is now active. You can now issue NX-API REST NAT configuration calls.
Note: This example was added in Release 7.0(3)I6(1).
Configuring tcp-timeout for NAT Translation Table
Configuring tcp-timeout for NAT Translation Table
POST http://<mgmt0_ip>/api/mo/sys/nat.json
{
"natEntity": {
"children": [
{
"natInst": {
"attributes": {
"tcpTimeout": "100"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<tcpTimeout>100</tcpTimeout>
</inst-items>
</nat-items>
</System>
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat translation tcp-timeout 100
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 udp-timeout for NAT Translation Table
Configuring udp-timeout for NAT Translation Table
POST http://<mgmt0_IP>/api/mo/sys/nat.json
{
"natEntity": {
"children": [
{
"natInst": {
"attributes": {
"udpTimeout": "101"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<udpTimeout>101</udpTimeout>
</inst-items>
</nat-items>
</System>
Configures udp-timeout for a NAT translation table.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat translation udp-timeout 101
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 Timeout for NAT Translation Table
Configuring Timeout for NAT Translation Table
POST http://<mgmt0_IP>/api/mo/sys/nat.json
{
"natEntity": {
"children": [
{
"natInst": {
"attributes": {
"timeout": "102"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<timeout>102</timeout>
</inst-items>
</nat-items>
</System>
Configures timeout for NAT translation table.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat translation timeout 102
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 Maximum Size of NAT Table for All Hosts
Configuring Maximum Size of NAT Table for All Hosts
POST http://<mgmt0_IP>/api/mo/sys/nat.json
{
"natEntity": {
"children": [
{
"natInst": {
"attributes": {
"allhost": "103"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<allhost>103</allhost>
</inst-items>
</nat-items>
</System>
Configures the maximum size of NAT the table for all hosts.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat translation max-entries all-host 103
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 Maximum Size of NAT Table
Configuring Maximum Size of NAT Table
POST http://<mgmt0_IP>/api/mo/sys/nat.json
{
"natEntity": {
"children": [
{
"natInst": {
"attributes": {
"maxtranslation": "104"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<maxtranslation>104</maxtranslation>
</inst-items>
</nat-items>
</System>
Configures the maximum size of the NAT table.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat translation max-entries 104
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
Creating a NAT Pool with Network Mask
Creating a NAT Pool with Network Mask
POST http://<mgmt0_IP>/api/mo/sys/nat/inst.json
{
"natInst": {
"children": [
{
"natPool": {
"attributes": {
"mask": "255.0.255.0",
"poolname": "pool5"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list>
<poolname>pool5</poolname>
<mask>255.0.255.0</mask>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Creates a NAT pool with a network mask.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat pool pool5 netmask 255.0.255.0
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 NAT Pool with Network Mask
Deleting a NAT Pool with Network Mask
POST http://<mgmt0_IP>/api/mo/sys/nat/inst.json
{
"natInst": {
"children": [
{
"natPool": {
"attributes": {
"poolname": "pool5",
"status": "deleted"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list xc:operation="delete">
<poolname>pool5</poolname>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Deletes a NAT pool with a network mask.
Note: This example was added in Release 7.0(3)I6(1).
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.
no ip nat pool pool5 netmask 255.0.255.0
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
Creating a NAT Pool with Prefix Length
Creating a NAT Pool with Prefix Length
POST http://<mgmt0_IP>/api/mo/sys/nat/inst.json
{
"natInst": {
"children": [
{
"natPool": {
"attributes": {
"poolname": "pool5",
"prefixlen": "24"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list xc:operation="delete">
<poolname>pool5</poolname>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Creates a NAT pool with a prefix length.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat pool pool5 prefix-length 24
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 NAT Pool with Prefix Length
Deleting a NAT Pool with Prefix Length
POST http://<mgmt0_IP>/api/mo/sys/nat/inst.json
{
"natInst": {
"children": [
{
"natPool": {
"attributes": {
"poolname": "pool5",
"status": "deleted"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list xc:operation="delete">
<poolname>pool5</poolname>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Deletes a NAT pool with a prefix length.
Note: This example was added in Release 7.0(3)I7(3).
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.
no ip nat pool pool5 prefix-length 24
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
Creating a NAT Pool with Network Mask
Creating a NAT Pool with Network Mask
POST http://<mgmt0_IP>/api/mo/sys/nat/inst/pool-pool5.json
{
"natPool": {
"attributes": {
"mask": "255.0.255.0",
"poolname": "pool5"
},
"children": [
{
"natPoolAddress": {
"attributes": {
"endip": "20.1.1.5",
"startip": "20.1.1.1"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list>
<poolname>pool5</poolname>
<mask>255.0.255.0</mask>
<startip-items>
<PoolAddress-list>
<startip>20.1.1.1</startip>
<endip>20.1.1.5</endip>
</PoolAddress-list>
</startip-items>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Creates a NAT pool with a network mask.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat pool pool5 20.1.1.1 20.1.1.5 netmask 255.0.255.0
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 NAT Pool with Network Mask
Deleting a NAT Pool with Network Mask
POST http://<mgmt0_IP>/api/mo/sys/nat/inst/pool-pool5.json
{
"natPool": {
"attributes": {
"poolname": "pool5"
},
"children": [
{
"natPoolAddress": {
"attributes": {
"endip": "20.1.1.5",
"startip": "20.1.1.1",
"status": "deleted"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list>
<poolname>pool5</poolname>
<startip-items>
<PoolAddress-list xc:operation="delete">
<startip>20.1.1.1</startip>
<endip>20.1.1.5</endip>
</PoolAddress-list>
</startip-items>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Deletes a NAT pool with a network mask.
Note: This example was added in Release 7.0(3)I7(3).
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.
no ip nat pool pool5 20.1.1.1 20.1.1.5 netmask 255.0.255.0
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
Creating NAT Pool with Prefix Length
Creating a NAT Pool with Prefix Length
POST http://<mgmt0_IP>/api/mo/sys/nat/inst/pool-pool5.json
{
"natPool": {
"attributes": {
"poolname": "pool5",
"prefixlen": "3"
},
"children": [
{
"natPoolAddress": {
"attributes": {
"endip": "20.1.1.5",
"startip": "20.1.1.1"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list>
<poolname>pool5</poolname>
<prefixlen>3</prefixlen>
<startip-items>
<PoolAddress-list>
<startip>20.1.1.1</startip>
<endip>20.1.1.5</endip>
</PoolAddress-list>
</startip-items>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Creates a NAT pool with a prefix length.
Note: This example was added in Release 7.0(3)I6(1).
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.
ip nat pool pool5 20.1.1.1 20.1.1.5 prefix-length 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
Deleting a NAT Pool with Prefix Length
Deleting a NAT Pool with Prefix Length
POST http://<mgmt0_IP>/api/mo/sys/nat/inst/pool-pool5.json
{
"natPool": {
"attributes": {
"poolname": "pool5"
},
"children": [
{
"natPoolAddress": {
"attributes": {
"endip": "20.1.1.5",
"startip": "20.1.1.1",
"status": "deleted"
}}}]}}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<pool-items>
<Pool-list>
<poolname>pool5</poolname>
<startip-items>
<PoolAddress-list xc:operation="delete">
<startip>20.1.1.1</startip>
<endip>20.1.1.5</endip>
</PoolAddress-list>
</startip-items>
</Pool-list>
</pool-items>
</inst-items>
</nat-items>
</System>
Deletes a NAT pool with a prefix length.
Note: This example was added in Release 7.0(3)I7(3).
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.
no ip nat pool pool5 20.1.1.1 20.1.1.5 prefix-length 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 the Link Mac-Up Timer
Configuring the Link Mac-Up Timer
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"linkMacUpTimer": "100"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<linkMacUpTimer>100</linkMacUpTimer>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 7.0(3)I7(7).
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
link mac-up timer 100
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-[eth1/2] |
l1PhysIf Properties
The following table contains information about the l1PhysIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of show intf brief . Example: Eth1/1 or Vlan100 |
linkMacUpTimer | The timer value | 0-120 (in seconds) |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
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:
Deleting the Link Mac-Up Timer
Deleting the Link Mac-Up Timer
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"linkMacUpTimer": "0"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<linkMacUpTimer>0</linkMacUpTimer>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 7.0(3)I7(7).
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 link mac-up timer
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-{[id]} |
l1PhysIf Properties
The following table contains information about the l1PhysIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of show intf brief . Example: Eth1/1 or Vlan100 |
linkMacUpTimer | The timer value | 0-120 (in seconds) |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
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:
Configuring DFE Adaptive Tuning for an Interface
Configuring DFE Adaptive Tuning for an Interface
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"dfeAdaptiveTuning": "enable",
"id": "eth1/2"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<dfeAdaptiveTuning>enable</dfeAdaptiveTuning>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 7.0(3)I7(7).
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
link dfe adaptive-tuning
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-[eth1/2] |
l1PhysIf Properties
The following table contains information about the l1PhysIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
dfeAdaptiveTuning | enable (default) or disable | ||
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of show intf brief . Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
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:
Disabling DFE Adaptive Tuning for an Interface
Disabling DFE Adaptive Tuning for an Interface
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"dfeAdaptiveTuning": "disable",
"id": "eth1/2"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<dfeAdaptiveTuning>disable</dfeAdaptiveTuning>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 7.0(3)I7(7).
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 link dfe adaptive-tuning
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-{[id]} |
l1PhysIf Properties
The following table contains information about the l1PhysIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
dfeAdaptiveTuning | enable (default) or disable | ||
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of show intf brief . Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
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: