Configuring an Ethernet Interface
Ethernet interfaces include routed ports.
For more information about Ethernet interfaces, see the Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide:
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://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"mode": "trunk",
"trunkVlans": "15-20"
}
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<mode>trunk</mode>
<trunkVlans>15-20</trunkVlans>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
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-[eth1/2]" (/sys/intf/phys-[eth1/2]/) is created in the MO database, as well as several other objects that are required for port-channel functionality.
The phys-[eth1/2] 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.
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
switchport mode trunk
switchport trunk allowed vlan 15-20
Note: The property information for this example was added in Release 9.3(3).
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 |
mode | l1:Mode (scalar:Enum8) | Administrative port mode | SELECTION: 1 - access 2 - trunk 3 - fex-fabric 4 - dot1q-tunnel 5 - promiscuous 6 - host 7 - trunk_secondary 8 - trunk_promiscuous 9 - vntag DEFAULT: access |
trunkVlans | l1:l1IfTrunkVlans (l2:VlanBitmap) | Configed Trunk Vlans | DEFAULT: 1-4094 |
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:
Querying a Trunk Port Configuration
Querying a Trunk Port Configuration
GET http://<mgmt0_IP>/api/mo/sys/intf/phys-[eth1/2].json
{
"totalCount": "1",
"imdata": [
{
"l1PhysIf": {
"attributes": {
"FECMode": "auto",
"accessVlan": "vlan-1",
"adminSt": "up",
"autoNeg": "on",
"beacon": "off",
"bw": "default",
"childAction": "",
"controllerId": "",
"delay": "1",
"descr": "",
"dfeTuningDelay": "100",
"dn": "sys/intf/phys-[eth1/2]",
"dot1qEtherType": "33024",
"duplex": "auto",
"ethpmCfgFailedBmp": "",
"ethpmCfgFailedTs": "0",
"ethpmCfgState": "0",
"id": "eth1/2",
"inhBw": "4294967295",
"layer": "Layer2",
"linkDebounce": "100",
"linkDebounceLinkUp": "0",
"linkLog": "default",
"linkTransmitReset": "enable",
"mdix": "auto",
"medium": "broadcast",
"modTs": "2019-03-05T15:44:29.284+00:00",
"mode": "trunk",
"mtu": "1500",
"name": "",
"nativeVlan": "vlan-1",
"packetTimestampEgressSourceId": "0",
"packetTimestampIngressSourceId": "0",
"packetTimestampState": "disable",
"persistentOnReload": "true",
"portT": "leaf",
"routerMac": "not-applicable",
"snmpTrapSt": "enable",
"spanMode": "not-a-span-dest",
"speed": "auto",
"speedGroup": "auto",
"status": "",
"switchingSt": "disabled",
"trunkLog": "default",
"trunkVlans": "15-20",
"usage": "discovery",
"userCfgdFlags": "admin_layer",
"vlanmgrCfgFailedBmp": "",
"vlanmgrCfgFailedTs": "0",
"vlanmgrCfgState": "0",
"voicePortCos": "none",
"voicePortTrust": "disable",
"voiceVlanId": "none",
"voiceVlanType": "none"
}
}
}
]
}
The example in this section queries the trunk port interface configuration that was specified in the previous POST request.
Note: The property information for this example was added in Release 9.3(3).
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 |
---|---|
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 |
---|---|---|---|
FECMode | l1:FECMode (scalar:Enum8) | FEC Mode | SELECTION: 1 - fc-fec 2 - rs-fec 3 - fec-off 4 - auto 5 - rs-ieee 6 - rs-cons16 7 - kp-fec DEFAULT: auto |
accessVlan | l1:l1IfAccessVlan (base:Encap) | Configured Access Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
adminSt | l1:AdminSt (scalar:Enum8) | Administrative port state | SELECTION: 1 - down 2 - up DEFAULT: up |
autoNeg | l1:AutoNeg (scalar:Enum8) | Administrative port auto-negotiation | SELECTION: 1 - on 2 - off 3 - 25G DEFAULT: on |
beacon | l1:Beacon (scalar:Enum8) | Beacon State | SELECTION: 1 - on 2 - off DEFAULT: off |
bw | l1:Bw (scalar:Uint32) | The bandwidth parameter for a routed interface, port channel, or subinterface. | RANGE: [0 , 3200000000] DEFAULT: 0 |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
controllerId | aggregate:ControllerIdBitmap (base:BitArray) | Controller ID | ARRAY SIZE: 256 |
delay | l1:Delay (scalar:Uint32) | The administrative port delay time. | RANGE: [1 , 16777215] DEFAULT: 1 |
descr | naming:Descr1024 (string:Basic) | descr | MAX SIZE: 254 |
dfeTuningDelay | l1:DfeTuningDelay (scalar:Uint16) | DFE (Decision Feedback Equalizer) Tuning Delay | RANGE: [100 , 10000] DEFAULT: 100 |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
dot1qEtherType | l1:DDot1qEtherType (scalar:Uint32) | The administrative port Dot1q ether-type. Dot1q Ether Type configures the TPID value in the VLAN tag field for packets received and sent by the interface. | RANGE: [1536 , 65535] DEFAULT: 0x8100 |
duplex | l1:Duplex (scalar:Enum8) | Duplex | SELECTION: 1 - auto 2 - full 3 - half DEFAULT: auto |
ethpmCfgFailedBmp | scalar:Bitmask64 | SELECTION:
| |
ethpmCfgFailedTs | scalar:Uint64 | ||
ethpmCfgState | scalar:UByte | ||
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
inhBw | l1:InheritBw (scalar:Uint32) | Administrative port inherit bandwidth | RANGE: [0 , 4294967295] DEFAULT: 4294967295 |
layer | l1:Layer (scalar:Enum8) | Administrative port layer | SELECTION: 1 - Layer2 2 - Layer3 DEFAULT: Layer2 |
linkDebounce | l1:LinkDebounce (scalar:Uint16) | Administrative port link debounce interval | RANGE: [0 , 20000] DEFAULT: 100 |
linkDebounceLinkUp | l1:LinkDebounceLinkUp (scalar:Uint16) | Link Debounce Interval - LinkUp Event | RANGE: [0 , 10000] DEFAULT: 0 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
linkTransmitReset | l1:LinkTransmitReset (scalar:Enum8) | Link Transmit Reset | SELECTION: 0 - disable 1 - enable DEFAULT: enable |
mdix | l1:Mdix (scalar:Enum8) | The administrative Mdix mode. The Medium-dependant interface crossover (Mdix) is when the interface automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately. | SELECTION: 1 - auto 2 - mdi 3 - mdi-x DEFAULT: auto |
medium | l1:Medium (scalar:Enum8) | The administrative port medium type. | SELECTION: 1 - broadcast 2 - p2p DEFAULT: broadcast |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
mode | l1:Mode (scalar:Enum8) | Administrative port mode | SELECTION: 1 - access 2 - trunk 3 - fex-fabric 4 - dot1q-tunnel 5 - promiscuous 6 - host 7 - trunk_secondary 8 - trunk_promiscuous 9 - vntag DEFAULT: access |
mtu | l1:Mtu (scalar:Uint32) | Administrative port mtu | RANGE: [576 , 9216] DEFAULT: 1500 |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
nativeVlan | l1:l1IfNativeVlan (base:Encap) | Configured Native Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
packetTimestampEgressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Egress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampIngressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Ingress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
portT | eqpt:PortT (scalar:Enum16) | Type of the port: Fabric vs Leaf | SELECTION: 0 - unknown 1 - eobc 2 - mgmt 3 - fab 4 - leaf 5 - extchhp 6 - extchfp DEFAULT: unknown |
routerMac | address:MAC | The administrative router MAC address. | Value must match MM:MM:MM:SS:SS:SS format DEFAULT: not-applicable |
snmpTrapSt | l1:SnmpTrapSt (scalar:Enum8) | Administrative port snmp trap state | SELECTION: 1 - enable 2 - disable DEFAULT: enable |
spanMode | l1:SpanMode (scalar:Enum8) | Administrative port span mode | SELECTION: 1 - not-a-span-dest 2 - span-dest 3 - span-dest-fwd 4 - span-dest-fwd-learn DEFAULT: not-a-span-dest |
speed | l1:Speed (scalar:Enum8) | Administrative port speed | SELECTION: 0 - unknown 2 - 100M 3 - 1G 4 - 10G 5 - 40G 6 - auto 7 - auto 100M 8 - auto 100M 1G 9 - 100G 10 - 25G 11 - 10M 12 - 50G 13 - 200G 14 - 400G 15 - 2.5G 16 - 5G 17 - auto 2.5G 5G 10G 18 - auto 100M 1G 2.5G 5G DEFAULT: auto |
speedGroup | l1:SpeedGroup (scalar:Enum8) | Speed Group | SELECTION: 0 - unknown 3 - 1000 4 - 10000 5 - 40000 6 - auto 10 - 25000 DEFAULT: auto |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
switchingSt | l1:SwitchingSt (scalar:Enum8) | Switching state | SELECTION: 0 - disabled 1 - enabled DEFAULT: disabled |
trunkLog | l1:TrunkLog (scalar:Enum8) | Administrative trunk logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
trunkVlans | l1:l1IfTrunkVlans (l2:VlanBitmap) | Configed Trunk Vlans | DEFAULT: 1-4094 |
usage | l1:PortUsage (scalar:Bitmask8) | The port usage type. | SELECTION: 1 - discovery 2 - epg 4 - fabric 8 - infra 16 - controller 32 - blacklist DEFAULT: discovery |
userCfgdFlags | l1:userCfgdFlags (scalar:Bitmask8) | Port User Config Flags | SELECTION: 0 - none 1 - admin_state 2 - admin_layer 4 - admin_router_mac 8 - admin_dce_mode 16 - admin_mtu DEFAULT: none |
vlanmgrCfgFailedBmp | scalar:Bitmask64 | The configuration attribute that encountered faults (failures) while configuring. | SELECTION:
|
vlanmgrCfgFailedTs | scalar:Uint64 | The timestamp of the last fault | |
vlanmgrCfgState | scalar:UByte | The state of a visualizer fault. The state can be creation failure, modification failure, or no failure. | |
voicePortCos | l1:VoicePortCos (scalar:SByte) | Voice Port Cos | RANGE: [-1 , 7] DEFAULT: none |
voicePortTrust | l1:VoicePortTrust (scalar:SByte) | Voice Port Trust | SELECTION: -1 - disable 8 - enable DEFAULT: disable |
voiceVlanId | l1:VoiceVlanId (scalar:Uint16) | Voice VLAN ID | RANGE: [0 , 4092] DEFAULT: none |
voiceVlanType | l1:VoiceVlanType (scalar:Enum8) | Voice vlan type | SELECTION: 0 - none 1 - tagged 2 - dot1p 3 - untagged DEFAULT: none |
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 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://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"accessVlan": "vlan-150",
"id": "eth1/2",
"mode": "access"
}
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<accessVlan>vlan-150</accessVlan>
<mode>access</mode>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
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-[eth1/2]" (/sys/intf/phys-[eth1/2]/) is reconfigured to be a layer 2 access port.
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
switchport mode access
switchport access vlan 150
Note: The property information for this example was added in Release 9.3(3).
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 |
---|---|---|---|
accessVlan | l1:l1IfAccessVlan (base:Encap) | Configured Access Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
mode | l1:Mode (scalar:Enum8) | Administrative port mode | SELECTION: 1 - access 2 - trunk 3 - fex-fabric 4 - dot1q-tunnel 5 - promiscuous 6 - host 7 - trunk_secondary 8 - trunk_promiscuous 9 - vntag DEFAULT: access |
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:
Querying an Access Port Configuration
Querying an Access Port Configuration
GET http://<mgmt0_IP>/api/mo/sys/intf/phys-[eth1/2].json
{
"totalCount": "1",
"imdata": [
{
"l1PhysIf": {
"attributes": {
"FECMode": "auto",
"accessVlan": "vlan-150",
"adminSt": "up",
"autoNeg": "on",
"beacon": "off",
"bw": "default",
"childAction": "",
"controllerId": "",
"delay": "1",
"descr": "",
"dfeTuningDelay": "100",
"dn": "sys/intf/phys-[eth1/2]",
"dot1qEtherType": "33024",
"duplex": "auto",
"ethpmCfgFailedBmp": "",
"ethpmCfgFailedTs": "0",
"ethpmCfgState": "0",
"id": "eth1/2",
"inhBw": "4294967295",
"layer": "Layer2",
"linkDebounce": "100",
"linkDebounceLinkUp": "0",
"linkLog": "default",
"linkTransmitReset": "enable",
"mdix": "auto",
"medium": "broadcast",
"modTs": "2019-03-05T16:17:06.171+00:00",
"mode": "access",
"mtu": "1500",
"name": "",
"nativeVlan": "vlan-1",
"packetTimestampEgressSourceId": "0",
"packetTimestampIngressSourceId": "0",
"packetTimestampState": "disable",
"persistentOnReload": "true",
"portT": "leaf",
"routerMac": "not-applicable",
"snmpTrapSt": "enable",
"spanMode": "not-a-span-dest",
"speed": "auto",
"speedGroup": "auto",
"status": "",
"switchingSt": "disabled",
"trunkLog": "default",
"trunkVlans": "15-20",
"usage": "discovery",
"userCfgdFlags": "admin_layer",
"vlanmgrCfgFailedBmp": "",
"vlanmgrCfgFailedTs": "0",
"vlanmgrCfgState": "0",
"voicePortCos": "none",
"voicePortTrust": "disable",
"voiceVlanId": "none",
"voiceVlanType": "none"
}
}
}
]
}
The example in this section queries the access port interface configuration that was specified in the previous POST request.
Note: The property information for this example was added in Release 9.3(3).
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 |
---|---|
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 |
---|---|---|---|
FECMode | l1:FECMode (scalar:Enum8) | FEC Mode | SELECTION: 1 - fc-fec 2 - rs-fec 3 - fec-off 4 - auto 5 - rs-ieee 6 - rs-cons16 7 - kp-fec DEFAULT: auto |
accessVlan | l1:l1IfAccessVlan (base:Encap) | Configured Access Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
adminSt | l1:AdminSt (scalar:Enum8) | Administrative port state | SELECTION: 1 - down 2 - up DEFAULT: up |
autoNeg | l1:AutoNeg (scalar:Enum8) | Administrative port auto-negotiation | SELECTION: 1 - on 2 - off 3 - 25G DEFAULT: on |
beacon | l1:Beacon (scalar:Enum8) | Beacon State | SELECTION: 1 - on 2 - off DEFAULT: off |
bw | l1:Bw (scalar:Uint32) | The bandwidth parameter for a routed interface, port channel, or subinterface. | RANGE: [0 , 3200000000] DEFAULT: 0 |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
controllerId | aggregate:ControllerIdBitmap (base:BitArray) | Controller ID | ARRAY SIZE: 256 |
delay | l1:Delay (scalar:Uint32) | The administrative port delay time. | RANGE: [1 , 16777215] DEFAULT: 1 |
descr | naming:Descr1024 (string:Basic) | descr | MAX SIZE: 254 |
dfeTuningDelay | l1:DfeTuningDelay (scalar:Uint16) | DFE (Decision Feedback Equalizer) Tuning Delay | RANGE: [100 , 10000] DEFAULT: 100 |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
dot1qEtherType | l1:DDot1qEtherType (scalar:Uint32) | The administrative port Dot1q ether-type. Dot1q Ether Type configures the TPID value in the VLAN tag field for packets received and sent by the interface. | RANGE: [1536 , 65535] DEFAULT: 0x8100 |
duplex | l1:Duplex (scalar:Enum8) | Duplex | SELECTION: 1 - auto 2 - full 3 - half DEFAULT: auto |
ethpmCfgFailedBmp | scalar:Bitmask64 | SELECTION:
| |
ethpmCfgFailedTs | scalar:Uint64 | ||
ethpmCfgState | scalar:UByte | ||
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
inhBw | l1:InheritBw (scalar:Uint32) | Administrative port inherit bandwidth | RANGE: [0 , 4294967295] DEFAULT: 4294967295 |
layer | l1:Layer (scalar:Enum8) | Administrative port layer | SELECTION: 1 - Layer2 2 - Layer3 DEFAULT: Layer2 |
linkDebounce | l1:LinkDebounce (scalar:Uint16) | Administrative port link debounce interval | RANGE: [0 , 20000] DEFAULT: 100 |
linkDebounceLinkUp | l1:LinkDebounceLinkUp (scalar:Uint16) | Link Debounce Interval - LinkUp Event | RANGE: [0 , 10000] DEFAULT: 0 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
linkTransmitReset | l1:LinkTransmitReset (scalar:Enum8) | Link Transmit Reset | SELECTION: 0 - disable 1 - enable DEFAULT: enable |
mdix | l1:Mdix (scalar:Enum8) | The administrative Mdix mode. The Medium-dependant interface crossover (Mdix) is when the interface automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately. | SELECTION: 1 - auto 2 - mdi 3 - mdi-x DEFAULT: auto |
medium | l1:Medium (scalar:Enum8) | The administrative port medium type. | SELECTION: 1 - broadcast 2 - p2p DEFAULT: broadcast |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
mode | l1:Mode (scalar:Enum8) | Administrative port mode | SELECTION: 1 - access 2 - trunk 3 - fex-fabric 4 - dot1q-tunnel 5 - promiscuous 6 - host 7 - trunk_secondary 8 - trunk_promiscuous 9 - vntag DEFAULT: access |
mtu | l1:Mtu (scalar:Uint32) | Administrative port mtu | RANGE: [576 , 9216] DEFAULT: 1500 |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
nativeVlan | l1:l1IfNativeVlan (base:Encap) | Configured Native Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
packetTimestampEgressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Egress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampIngressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Ingress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
portT | eqpt:PortT (scalar:Enum16) | Type of the port: Fabric vs Leaf | SELECTION: 0 - unknown 1 - eobc 2 - mgmt 3 - fab 4 - leaf 5 - extchhp 6 - extchfp DEFAULT: unknown |
routerMac | address:MAC | The administrative router MAC address. | Value must match MM:MM:MM:SS:SS:SS format DEFAULT: not-applicable |
snmpTrapSt | l1:SnmpTrapSt (scalar:Enum8) | Administrative port snmp trap state | SELECTION: 1 - enable 2 - disable DEFAULT: enable |
spanMode | l1:SpanMode (scalar:Enum8) | Administrative port span mode | SELECTION: 1 - not-a-span-dest 2 - span-dest 3 - span-dest-fwd 4 - span-dest-fwd-learn DEFAULT: not-a-span-dest |
speed | l1:Speed (scalar:Enum8) | Administrative port speed | SELECTION: 0 - unknown 2 - 100M 3 - 1G 4 - 10G 5 - 40G 6 - auto 7 - auto 100M 8 - auto 100M 1G 9 - 100G 10 - 25G 11 - 10M 12 - 50G 13 - 200G 14 - 400G 15 - 2.5G 16 - 5G 17 - auto 2.5G 5G 10G 18 - auto 100M 1G 2.5G 5G DEFAULT: auto |
speedGroup | l1:SpeedGroup (scalar:Enum8) | Speed Group | SELECTION: 0 - unknown 3 - 1000 4 - 10000 5 - 40000 6 - auto 10 - 25000 DEFAULT: auto |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
switchingSt | l1:SwitchingSt (scalar:Enum8) | Switching state | SELECTION: 0 - disabled 1 - enabled DEFAULT: disabled |
trunkLog | l1:TrunkLog (scalar:Enum8) | Administrative trunk logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
trunkVlans | l1:l1IfTrunkVlans (l2:VlanBitmap) | Configed Trunk Vlans | DEFAULT: 1-4094 |
usage | l1:PortUsage (scalar:Bitmask8) | The port usage type. | SELECTION: 1 - discovery 2 - epg 4 - fabric 8 - infra 16 - controller 32 - blacklist DEFAULT: discovery |
userCfgdFlags | l1:userCfgdFlags (scalar:Bitmask8) | Port User Config Flags | SELECTION: 0 - none 1 - admin_state 2 - admin_layer 4 - admin_router_mac 8 - admin_dce_mode 16 - admin_mtu DEFAULT: none |
vlanmgrCfgFailedBmp | scalar:Bitmask64 | The configuration attribute that encountered faults (failures) while configuring. | SELECTION:
|
vlanmgrCfgFailedTs | scalar:Uint64 | The timestamp of the last fault | |
vlanmgrCfgState | scalar:UByte | The state of a visualizer fault. The state can be creation failure, modification failure, or no failure. | |
voicePortCos | l1:VoicePortCos (scalar:SByte) | Voice Port Cos | RANGE: [-1 , 7] DEFAULT: none |
voicePortTrust | l1:VoicePortTrust (scalar:SByte) | Voice Port Trust | SELECTION: -1 - disable 8 - enable DEFAULT: disable |
voiceVlanId | l1:VoiceVlanId (scalar:Uint16) | Voice VLAN ID | RANGE: [0 , 4092] DEFAULT: none |
voiceVlanType | l1:VoiceVlanType (scalar:Enum8) | Voice vlan type | SELECTION: 0 - none 1 - tagged 2 - dot1p 3 - untagged DEFAULT: none |
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:
Issuing a Shut or No Shut of the Interface
Issuing a Shut or No Shut of the Interface
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"adminSt": "down"
"userCfgdFlags" : "admin_layer"
}
}
}
]
}
}
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 down.
If the interface is up and you want to bring it down, change "adminSt": "up" to "adminSt": "down"
Note: The property information for this example was added in Release 9.3(3).
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 |
adminSt | l1:AdminSt (scalar:Enum8) | Administrative port state | SELECTION: 1 - down 2 - up DEFAULT: up |
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:
Verifying the Shut or No Shut of an Interface
Verifying the Shut or No Shut of an Interface
GET http://<mgmt0_IP>/api/mo/sys/intf/phys-[eth1/2].json
{
"totalCount": "1",
"imdata": [
{
"l1PhysIf": {
"attributes": {
"FECMode": "auto",
"accessVlan": "vlan-150",
"adminSt": "down",
"autoNeg": "on",
"beacon": "off",
"bw": "default",
"childAction": "",
"controllerId": "",
"delay": "1",
"descr": "",
"dfeTuningDelay": "100",
"dn": "sys/intf/phys-[eth1/2]",
"dot1qEtherType": "33024",
"duplex": "auto",
"ethpmCfgFailedBmp": "",
"ethpmCfgFailedTs": "0",
"ethpmCfgState": "0",
"id": "eth1/2",
"inhBw": "4294967295",
"layer": "Layer2",
"linkDebounce": "100",
"linkDebounceLinkUp": "0",
"linkLog": "default",
"linkTransmitReset": "enable",
"mdix": "auto",
"medium": "broadcast",
"modTs": "2019-03-05T16:26:46.062+00:00",
"mode": "access",
"mtu": "1500",
"name": "",
"nativeVlan": "vlan-1",
"packetTimestampEgressSourceId": "0",
"packetTimestampIngressSourceId": "0",
"packetTimestampState": "disable",
"persistentOnReload": "true",
"portT": "leaf",
"routerMac": "not-applicable",
"snmpTrapSt": "enable",
"spanMode": "not-a-span-dest",
"speed": "auto",
"speedGroup": "auto",
"status": "",
"switchingSt": "disabled",
"trunkLog": "default",
"trunkVlans": "15-20",
"usage": "discovery",
"userCfgdFlags": "admin_layer",
"vlanmgrCfgFailedBmp": "",
"vlanmgrCfgFailedTs": "0",
"vlanmgrCfgState": "0",
"voicePortCos": "none",
"voicePortTrust": "disable",
"voiceVlanId": "none",
"voiceVlanType": "none"
}
}
}
]
}
The example in this section queries the trunk port interface configuration that was specified in the previous POST request.
Note: The property information for this example was added in Release 9.3(3).
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 |
---|---|
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 |
---|---|---|---|
FECMode | l1:FECMode (scalar:Enum8) | FEC Mode | SELECTION: 1 - fc-fec 2 - rs-fec 3 - fec-off 4 - auto 5 - rs-ieee 6 - rs-cons16 7 - kp-fec DEFAULT: auto |
accessVlan | l1:l1IfAccessVlan (base:Encap) | Configured Access Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
adminSt | l1:AdminSt (scalar:Enum8) | Administrative port state | SELECTION: 1 - down 2 - up DEFAULT: up |
autoNeg | l1:AutoNeg (scalar:Enum8) | Administrative port auto-negotiation | SELECTION: 1 - on 2 - off 3 - 25G DEFAULT: on |
beacon | l1:Beacon (scalar:Enum8) | Beacon State | SELECTION: 1 - on 2 - off DEFAULT: off |
bw | l1:Bw (scalar:Uint32) | The bandwidth parameter for a routed interface, port channel, or subinterface. | RANGE: [0 , 3200000000] DEFAULT: 0 |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
controllerId | aggregate:ControllerIdBitmap (base:BitArray) | Controller ID | ARRAY SIZE: 256 |
delay | l1:Delay (scalar:Uint32) | The administrative port delay time. | RANGE: [1 , 16777215] DEFAULT: 1 |
descr | naming:Descr1024 (string:Basic) | descr | MAX SIZE: 254 |
dfeTuningDelay | l1:DfeTuningDelay (scalar:Uint16) | DFE (Decision Feedback Equalizer) Tuning Delay | RANGE: [100 , 10000] DEFAULT: 100 |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
dot1qEtherType | l1:DDot1qEtherType (scalar:Uint32) | The administrative port Dot1q ether-type. Dot1q Ether Type configures the TPID value in the VLAN tag field for packets received and sent by the interface. | RANGE: [1536 , 65535] DEFAULT: 0x8100 |
duplex | l1:Duplex (scalar:Enum8) | Duplex | SELECTION: 1 - auto 2 - full 3 - half DEFAULT: auto |
ethpmCfgFailedBmp | scalar:Bitmask64 | SELECTION:
| |
ethpmCfgFailedTs | scalar:Uint64 | ||
ethpmCfgState | scalar:UByte | ||
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
inhBw | l1:InheritBw (scalar:Uint32) | Administrative port inherit bandwidth | RANGE: [0 , 4294967295] DEFAULT: 4294967295 |
layer | l1:Layer (scalar:Enum8) | Administrative port layer | SELECTION: 1 - Layer2 2 - Layer3 DEFAULT: Layer2 |
linkDebounce | l1:LinkDebounce (scalar:Uint16) | Administrative port link debounce interval | RANGE: [0 , 20000] DEFAULT: 100 |
linkDebounceLinkUp | l1:LinkDebounceLinkUp (scalar:Uint16) | Link Debounce Interval - LinkUp Event | RANGE: [0 , 10000] DEFAULT: 0 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
linkTransmitReset | l1:LinkTransmitReset (scalar:Enum8) | Link Transmit Reset | SELECTION: 0 - disable 1 - enable DEFAULT: enable |
mdix | l1:Mdix (scalar:Enum8) | The administrative Mdix mode. The Medium-dependant interface crossover (Mdix) is when the interface automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately. | SELECTION: 1 - auto 2 - mdi 3 - mdi-x DEFAULT: auto |
medium | l1:Medium (scalar:Enum8) | The administrative port medium type. | SELECTION: 1 - broadcast 2 - p2p DEFAULT: broadcast |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
mode | l1:Mode (scalar:Enum8) | Administrative port mode | SELECTION: 1 - access 2 - trunk 3 - fex-fabric 4 - dot1q-tunnel 5 - promiscuous 6 - host 7 - trunk_secondary 8 - trunk_promiscuous 9 - vntag DEFAULT: access |
mtu | l1:Mtu (scalar:Uint32) | Administrative port mtu | RANGE: [576 , 9216] DEFAULT: 1500 |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
nativeVlan | l1:l1IfNativeVlan (base:Encap) | Configured Native Vlan | SELECTION: unknown, vlan-%d or vxlan-%d DEFAULT: vlan-1 |
packetTimestampEgressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Egress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampIngressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Ingress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
portT | eqpt:PortT (scalar:Enum16) | Type of the port: Fabric vs Leaf | SELECTION: 0 - unknown 1 - eobc 2 - mgmt 3 - fab 4 - leaf 5 - extchhp 6 - extchfp DEFAULT: unknown |
routerMac | address:MAC | The administrative router MAC address. | Value must match MM:MM:MM:SS:SS:SS format DEFAULT: not-applicable |
snmpTrapSt | l1:SnmpTrapSt (scalar:Enum8) | Administrative port snmp trap state | SELECTION: 1 - enable 2 - disable DEFAULT: enable |
spanMode | l1:SpanMode (scalar:Enum8) | Administrative port span mode | SELECTION: 1 - not-a-span-dest 2 - span-dest 3 - span-dest-fwd 4 - span-dest-fwd-learn DEFAULT: not-a-span-dest |
speed | l1:Speed (scalar:Enum8) | Administrative port speed | SELECTION: 0 - unknown 2 - 100M 3 - 1G 4 - 10G 5 - 40G 6 - auto 7 - auto 100M 8 - auto 100M 1G 9 - 100G 10 - 25G 11 - 10M 12 - 50G 13 - 200G 14 - 400G 15 - 2.5G 16 - 5G 17 - auto 2.5G 5G 10G 18 - auto 100M 1G 2.5G 5G DEFAULT: auto |
speedGroup | l1:SpeedGroup (scalar:Enum8) | Speed Group | SELECTION: 0 - unknown 3 - 1000 4 - 10000 5 - 40000 6 - auto 10 - 25000 DEFAULT: auto |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
switchingSt | l1:SwitchingSt (scalar:Enum8) | Switching state | SELECTION: 0 - disabled 1 - enabled DEFAULT: disabled |
trunkLog | l1:TrunkLog (scalar:Enum8) | Administrative trunk logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
trunkVlans | l1:l1IfTrunkVlans (l2:VlanBitmap) | Configed Trunk Vlans | DEFAULT: 1-4094 |
usage | l1:PortUsage (scalar:Bitmask8) | The port usage type. | SELECTION: 1 - discovery 2 - epg 4 - fabric 8 - infra 16 - controller 32 - blacklist DEFAULT: discovery |
userCfgdFlags | l1:userCfgdFlags (scalar:Bitmask8) | Port User Config Flags | SELECTION: 0 - none 1 - admin_state 2 - admin_layer 4 - admin_router_mac 8 - admin_dce_mode 16 - admin_mtu DEFAULT: none |
vlanmgrCfgFailedBmp | scalar:Bitmask64 | The configuration attribute that encountered faults (failures) while configuring. | SELECTION:
|
vlanmgrCfgFailedTs | scalar:Uint64 | The timestamp of the last fault | |
vlanmgrCfgState | scalar:UByte | The state of a visualizer fault. The state can be creation failure, modification failure, or no failure. | |
voicePortCos | l1:VoicePortCos (scalar:SByte) | Voice Port Cos | RANGE: [-1 , 7] DEFAULT: none |
voicePortTrust | l1:VoicePortTrust (scalar:SByte) | Voice Port Trust | SELECTION: -1 - disable 8 - enable DEFAULT: disable |
voiceVlanId | l1:VoiceVlanId (scalar:Uint16) | Voice VLAN ID | RANGE: [0 , 4092] DEFAULT: none |
voiceVlanType | l1:VoiceVlanType (scalar:Enum8) | Voice vlan type | SELECTION: 0 - none 1 - tagged 2 - dot1p 3 - untagged DEFAULT: none |
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 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: The property information for this example was added in Release 9.3(3).
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 |
---|---|
topSystem | sys |
ipv4Entity | sys/ipv4 |
ipv4Inst | sys/ipv4/inst |
ipv4Dom | sys/ipv4/inst/dom-{name} |
ipv4If | sys/ipv4/inst/dom-{name}/if-{[id]} |
ipv4Addr | sys/ipv4/inst/dom-{name}/if-{[id]}/addr-{[addr]} |
ipv4Dom Properties
The following table contains information about the ipv4Dom 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 |
---|---|---|---|
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
ipv4If Properties
The following table contains information about the ipv4If 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 |
ipv4Addr Properties
The following table contains information about the ipv4Addr 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 |
---|---|---|---|
addr | address:Ip | Address | Value must match ipv4 or ipv6 known format |
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 User Flags (Layer)
Configuring User Flags (Layer)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"layer": "Layer2",
"userCfgdFlags": "admin_layer"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<layer>Layer2</layer>
<userCfgdFlags>admin_layer</userCfgdFlags>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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 e1/2
switchport
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 |
layer | l1:Layer (scalar:Enum8) | Administrative port layer | SELECTION: 1 - Layer2 2 - Layer3 DEFAULT: Layer2 |
userCfgdFlags | l1:userCfgdFlags (scalar:Bitmask8) | Port User Config Flags | SELECTION: 0 - none 1 - admin_state 2 - admin_layer 4 - admin_router_mac 8 - admin_dce_mode 16 - admin_mtu DEFAULT: none |
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 User Flags (Admin State)
Configuring User Flags (Admin State)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"adminSt": "up",
"id": "eth1/2",
"userCfgdFlags": "admin_state"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<adminSt>up</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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 e1/2
no shutdown
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 |
---|---|---|---|
adminSt | l1:AdminSt (scalar:Enum8) | Administrative port state | SELECTION: 1 - down 2 - up DEFAULT: up |
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
userCfgdFlags | l1:userCfgdFlags (scalar:Bitmask8) | Port User Config Flags | SELECTION: 0 - none 1 - admin_state 2 - admin_layer 4 - admin_router_mac 8 - admin_dce_mode 16 - admin_mtu DEFAULT: none |
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 User Flags (MTU)
Configuring User Flags (MTU)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"mtu": "9000",
"userCfgdFlags": "admin_mtu"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<mtu>9000</mtu>
<userCfgdFlags>admin_mtu</userCfgdFlags>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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 e1/2
mtu 9000
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 |
mtu | l1:Mtu (scalar:Uint32) | Administrative port mtu | RANGE: [576 , 9216] DEFAULT: 1500 |
userCfgdFlags | l1:userCfgdFlags (scalar:Bitmask8) | Port User Config Flags | SELECTION: 0 - none 1 - admin_state 2 - admin_layer 4 - admin_router_mac 8 - admin_dce_mode 16 - admin_mtu DEFAULT: none |
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 the Layer, Admin State, and MTU in the Same Payload (One-Shot)
Configuring the Layer, Admin State, and MTU in the Same Payload (One-Shot)
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
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": []
}
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:
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.
Note: The property information for this example was added in Release 9.3(3).
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 |
---|---|
l3EncRtdIf | sys/intf/encrtd-{[id]} |
l3EncRtdIf Properties
The following table contains information about the l3EncRtdIf 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 |
---|---|---|---|
adminSt | l1:AdminSt (scalar:Enum8) | Administrative state | SELECTION: 1 - down 2 - up DEFAULT: down |
bw | l1:Bw (scalar:Uint32) | The encapsulated routed interface bandwidth. | RANGE: [0 , 3200000000] DEFAULT: 0 |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
delay | l1:Delay (scalar:Uint32) | The encapsulation routed interface delay. | RANGE: [1 , 16777215] DEFAULT: 1 |
descr | naming:Descr1024 (string:Basic) | Description | MAX SIZE: 254 |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
encap | base:Encap | The routed interface encapsulation VLAN. | SELECTION: unknown, vlan-%d or vxlan-%d |
ethpmCfgFailedBmp | scalar:Bitmask64 | SELECTION:
| |
ethpmCfgFailedTs | scalar:Uint64 | ||
ethpmCfgState | scalar:UByte | ||
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
ifConnDn | reference:BinRef | Interface Connectivity Dn | |
lcOwn | NA | NA | NA |
linkLogEn | l1:LinkLog scalar:Enum8 | A property to indicate if the encapsulation routed interface link logging is enabled. | SELECTION:
|
mediumType | l1:Medium (scalar:Enum8) | Interface Medium Type | SELECTION: 1 - broadcast 2 - p2p DEFAULT: broadcast |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
monPolDn | reference:BinRef | The monitoring policy for the encapsulation routed interface object. | |
mtu | l1:Mtu (scalar:Uint32) | The encapsulation routed interface MTU. | RANGE: [576 , 9216] DEFAULT: 1500 |
mtuInherit | scalar:Bool | The encapsulation routed interfac3 inherit MTU from global policy. | SELECTION: true or false DEFAULT: true |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
routerMac | address:MAC | The encapsulation routed interface MAC router. | Value must match MM:MM:MM:SS:SS:SS format DEFAULT: not-applicable |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
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 a Fabric-Facing Port on an Ethernet Interface
Configuring a Fabric-Facing Port on an Ethernet Interface
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/1"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"portTypeFabric": "yes"
}}}]}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/1</id>
<physExtd-items>
<portTypeFabric>yes</portTypeFabric>
</physExtd-items>
</PhysIf-list>
</phys-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 ethernet 1/1
port-type fabric
Note: The property information for this example was added in Release 9.3(3).
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]} |
l1PhysIfExtended | sys/intf/phys-{[id]}/physExtd |
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 |
l1PhysIfExtended Properties
The following table contains information about the l1PhysIfExtended 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 |
---|---|---|---|
portTypeFabric | l1:PortTypeFabric (scalar:Enum8) | Identifies if or not the port is a fabric-facing port | SELECTION: 0 - no 1 - yes DEFAULT: no |
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 a Fabric-Facing Port configured on an Ethernet Interface
Deleting a Fabric-Facing Port configured on an Ethernet Interface
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/1"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"portTypeFabric": "no"
}}}]}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/1</id>
<physExtd-items>
<portTypeFabric>no</portTypeFabric>
</physExtd-items>
</PhysIf-list>
</phys-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 ethernet 1/1
no port-type fabric
Note: The property information for this example was added in Release 9.3(3).
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]} |
l1PhysIfExtended | sys/intf/phys-{[id]}/physExtd |
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 |
l1PhysIfExtended Properties
The following table contains information about the l1PhysIfExtended 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 |
---|---|---|---|
portTypeFabric | l1:PortTypeFabric (scalar:Enum8) | Identifies if or not the port is a fabric-facing port | SELECTION: 0 - no 1 - yes DEFAULT: no |
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 Packet Timestamping (Egress Direction)
Configuring Packet Timestamping (Egress Direction)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3",
"packetTimestampEgressSourceId": "123",
"packetTimestampState": "enable-egress"
}
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<packetTimestampEgressSourceId>123</packetTimestampEgressSourceId>
<packetTimestampState>enable-egress</packetTimestampState>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.2(2).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
timestamp egress id 123
Note: The property information for this example was added in Release 9.3(3).
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 |
packetTimestampEgressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Egress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
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 Packet Timestamping (Ingress Direction)
Configuring Packet Timestamping (Ingress Direction)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3",
"packetTimestampIngressSourceId": "123",
"packetTimestampState": "enable-ingress"
}
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<packetTimestampIngressSourceId>123</packetTimestampIngressSourceId>
<packetTimestampState>enable-ingress</packetTimestampState>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.2(2).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
timestamp ingress id 123
Note: The property information for this example was added in Release 9.3(3).
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 |
packetTimestampIngressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Ingress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
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 Packet Timestamping (Ingress and Egress Directions)
Configuring Packet Timestamping (Ingress and Egress Directions)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3",
"packetTimestampEgressSourceId": "123",
"packetTimestampIngressSourceId": "123",
"packetTimestampState": "enable-both"
}
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<packetTimestampEgressSourceId>123</packetTimestampEgressSourceId>
<packetTimestampIngressSourceId>123</packetTimestampIngressSourceId>
<packetTimestampState>enable-both</packetTimestampState>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.2(2).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
timestamp ingress id 123 egress id 123
Note: The property information for this example was added in Release 9.3(3).
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 |
packetTimestampEgressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Egress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampIngressSourceId | l1:PacketTimestampSourceId (scalar:Uint32) | Ingress timestamp Source Id | RANGE: [0 , 8388606] DEFAULT: 0 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
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 a Packet Timestamp Configuration
Deleting a Packet Timestamp Configuration
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3",
"packetTimestampState": "disable"
}
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<packetTimestampState>disable</packetTimestampState>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.2(2).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
no timestamp
Note: The property information for this example was added in Release 9.3(3).
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 |
packetTimestampState | l1:PacketTimestampState (scalar:Enum8) | packet timestamp feature state | SELECTION: 0 - disable 1 - enable-ingress 2 - enable-egress 3 - enable-both DEFAULT: disable |
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 Tuning Delay
Configuring DFE Tuning Delay
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"dfeTuningDelay": "7375",
"id": "eth1/3"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<dfeTuningDelay>7375</dfeTuningDelay>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
dfe-tuning-delay 7375
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/3] |
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 |
---|---|---|---|
dfeTuningDelay | l1:DfeTuningDelay (scalar:Uint16) | DFE (Decision Feedback Equalizer) Tuning Delay | RANGE: [100 , 10000] DEFAULT: 100 |
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:
Deleting DFE Tuning Delay
Deleting DFE Tuning Delay
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"dfeTuningDelay": "100",
"id": "eth1/3"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<dfeTuningDelay>100</dfeTuningDelay>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
no dfe-tuning-delay 7375
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/3] |
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 |
---|---|---|---|
dfeTuningDelay | l1:DfeTuningDelay (scalar:Uint16) | DFE (Decision Feedback Equalizer) Tuning Delay | RANGE: [100 , 10000] DEFAULT: 100 |
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:
Configuring Audo MDIX Mode
Configuring Audo MDIX Mode
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3",
"mdix": "auto"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<mdix>auto</mdix>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
mdix auto
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/3] |
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 |
mdix | l1:Mdix (scalar:Enum8) | The administrative Mdix mode. The Medium-dependant interface crossover (Mdix) is when the interface automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately. | SELECTION: 1 - auto 2 - mdi 3 - mdi-x DEFAULT: auto |
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 Audo MDIX Mode
Deleting Audo MDIX Mode
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3",
"mdix": "mdi"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<mdix>mdi</mdix>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
no mdix auto
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/3] |
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 |
mdix | l1:Mdix (scalar:Enum8) | The administrative Mdix mode. The Medium-dependant interface crossover (Mdix) is when the interface automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately. | SELECTION: 1 - auto 2 - mdi 3 - mdi-x DEFAULT: auto |
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 a Description
Configuring a Description
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"descr": "SampleString_123",
"id": "eth1/3"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<descr>SampleString_123</descr>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
description SampleString_123
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/3] |
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 |
---|---|---|---|
descr | naming:Descr1024 string:Basic | Additional descriptive information about the object. | RANGE: Min: "0" Max: "254" |
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:
Deleting a Description
Deleting a Description
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"descr": "",
"id": "eth1/3"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<descr></descr>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/3
no description SampleString_123
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/3] |
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 |
---|---|---|---|
descr | naming:Descr1024 string:Basic | Additional descriptive information about the object. | RANGE: Min: "0" Max: "254" |
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:
Configuring Outside Nat Interface
Configuring Outside Nat Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"natEntity": {
"children": [
{
"natInst": {
"children": [
{
"natDom": {
"attributes": {
"name": "default"
},
"children": [
{
"natIf": {
"attributes": {
"id": "eth1/2",
"natIf": "ip-nat-outside"
}
}
}
]
}
}
]
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<dom-items>
<Dom-list>
<name>default</name>
<if-items>
<If-list>
<id>eth1/2</id>
<natIf>ip-nat-outside</natIf>
</If-list>
</if-items>
</Dom-list>
</dom-items>
</inst-items>
</nat-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/2
ip nat outside
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] |
natDom | sys/nat/inst/dom-default |
natEntity | sys/nat |
natInst | sys/nat/inst |
natDom Properties
The following table contains information about the natDom 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 |
---|---|---|---|
name | naming:Name256 string:Basic | The name of the object. | RANGE: Min: "1" Max: "128" |
natIf Properties
The following table contains information about the natIf 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 |
natIf | nat:NatTrafficDir (scalar:Enum8) | NAT interface config inside/outside | SELECTION: 0 - ip-nat-invalid 1 - ip-nat-inside 2 - ip-nat-outside |
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 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Deleting Outside Nat Interface
Deleting Outside Nat Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"natEntity": {
"children": [
{
"natInst": {
"children": [
{
"natDom": {
"attributes": {
"name": "default"
},
"children": [
{
"natIf": {
"attributes": {
"id": "eth1/2",
"status": "deleted"
}
}
}
]
}
}
]
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<dom-items>
<Dom-list>
<name>default</name>
<if-items>
<If-list xc:operation="delete">
<id>eth1/2</id>
</If-list>
</if-items>
</Dom-list>
</dom-items>
</inst-items>
</nat-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/2
no ip nat outside
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] |
natDom | sys/nat/inst/dom-default |
natEntity | sys/nat |
natIf | sys/nat/inst/dom-default/if-[eth1/2] |
natIf | sys/nat/inst/dom-default/if-[po123] |
natIf | sys/nat/inst/dom-default/if-[vlan1] |
natInst | sys/nat/inst |
natDom Properties
The following table contains information about the natDom 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 |
---|---|---|---|
name | naming:Name256 string:Basic | The name of the object. | RANGE: Min: "1" Max: "128" |
natIf Properties
The following table contains information about the natIf 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 |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
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 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Configuring Inside Nat Interface
Configuring Inside Nat Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"natEntity": {
"children": [
{
"natInst": {
"children": [
{
"natDom": {
"attributes": {
"name": "default"
},
"children": [
{
"natIf": {
"attributes": {
"id": "eth1/2",
"natIf": "ip-nat-inside"
}
}
}
]
}
}
]
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<dom-items>
<Dom-list>
<name>default</name>
<if-items>
<If-list>
<id>eth1/2</id>
<natIf>ip-nat-inside</natIf>
</If-list>
</if-items>
</Dom-list>
</dom-items>
</inst-items>
</nat-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/2
ip nat inside
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] |
natDom | sys/nat/inst/dom-default |
natEntity | sys/nat |
natInst | sys/nat/inst |
natDom Properties
The following table contains information about the natDom 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 |
---|---|---|---|
name | naming:Name256 string:Basic | The name of the object. | RANGE: Min: "1" Max: "128" |
natIf Properties
The following table contains information about the natIf 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 |
natIf | nat:NatTrafficDir (scalar:Enum8) | NAT interface config inside/outside | SELECTION: 0 - ip-nat-invalid 1 - ip-nat-inside 2 - ip-nat-outside |
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 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Deleting Inside Nat Interface
Deleting Inside Nat Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"natEntity": {
"children": [
{
"natInst": {
"children": [
{
"natDom": {
"attributes": {
"name": "default"
},
"children": [
{
"natIf": {
"attributes": {
"id": "eth1/2",
"status": "deleted"
}
}
}
]
}
}
]
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<nat-items>
<inst-items>
<dom-items>
<Dom-list>
<name>default</name>
<if-items>
<If-list xc:operation="delete">
<id>eth1/2</id>
</If-list>
</if-items>
</Dom-list>
</dom-items>
</inst-items>
</nat-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/2
no ip nat inside
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] |
natDom | sys/nat/inst/dom-default |
natEntity | sys/nat |
natIf | sys/nat/inst/dom-default/if-[eth1/2] |
natIf | sys/nat/inst/dom-default/if-[po123] |
natIf | sys/nat/inst/dom-default/if-[vlan1] |
natInst | sys/nat/inst |
natDom Properties
The following table contains information about the natDom 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 |
---|---|---|---|
name | naming:Name256 string:Basic | The name of the object. | RANGE: Min: "1" Max: "128" |
natIf Properties
The following table contains information about the natIf 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 |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
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 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Configuring IPv6 Stateless Address Autoconfig (For SLAAC)
Configuring IPv6 Stateless Address Autoconfig (For SLAAC)
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"ipv6Entity": {
"children": [
{
"ipv6Inst": {
"children": [
{
"ipv6Dom": {
"attributes": {
"name": "default"
},
"children": [
{
"ipv6If": {
"attributes": {
"autoconfig": "enabled",
"defaultRoute": "enabled",
"id": "eth1/2",
"useLinkLocalAddr": "disabled"
}
}
}
]
}
}
]
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<ipv6-items>
<inst-items>
<dom-items>
<Dom-list>
<name>default</name>
<if-items>
<If-list>
<id>eth1/2</id>
<autoconfig>enabled</autoconfig>
<defaultRoute>enabled</defaultRoute>
<useLinkLocalAddr>disabled</useLinkLocalAddr>
</If-list>
</if-items>
</Dom-list>
</dom-items>
</inst-items>
</ipv6-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/2
ipv6 address autoconfig default
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 |
---|---|
topSystem | sys |
ipv6Entity | sys/ipv6 |
ipv6Inst | sys/ipv6/inst |
ipv6Dom | sys/ipv6/inst/dom-default |
ipv6If | sys/ipv6/inst/dom-default/if-[eth1/2] |
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-[eth1/2] |
ipv6Dom Properties
The following table contains information about the ipv6Dom 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 |
---|---|---|---|
name | naming:Name256 string:Basic | The name of the object. | RANGE: Min: "1" Max: "128" |
ipv6If Properties
The following table contains information about the ipv6If 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 |
---|---|---|---|
autoconfig | nw:AdminSt (scalar:Enum8) | IPv6 Stateless address autoconfig | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
defaultRoute | nw:AdminSt (scalar:Enum8) | Default Route Addition with Nexthop as RA Source Address | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
useLinkLocalAddr | nw:AdminSt (scalar:Enum8) | IPv6 Address Use Link Local Address | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
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 |
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 IPv6 Stateless Address Autoconfig (For SLAAC)
Deleting IPv6 Stateless Address Autoconfig (For SLAAC)
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"ipv6Entity": {
"children": [
{
"ipv6Inst": {
"children": [
{
"ipv6Dom": {
"attributes": {
"name": "default"
},
"children": [
{
"ipv6If": {
"attributes": {
"autoconfig": "disabled",
"id": "eth1/2",
"useLinkLocalAddr": "disabled"
}
}
}
]
}
}
]
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<ipv6-items>
<inst-items>
<dom-items>
<Dom-list>
<name>default</name>
<if-items>
<If-list>
<id>eth1/2</id>
<autoconfig>disabled</autoconfig>
<useLinkLocalAddr>disabled</useLinkLocalAddr>
</If-list>
</if-items>
</Dom-list>
</dom-items>
</inst-items>
</ipv6-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface ethernet 1/2
no ipv6 address autoconfig default
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 |
---|---|
topSystem | sys |
ipv6Entity | sys/ipv6 |
ipv6Inst | sys/ipv6/inst |
ipv6Dom | sys/ipv6/inst/dom-default |
ipv6If | sys/ipv6/inst/dom-default/if-[eth1/2] |
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-[eth1/2] |
ipv6Dom Properties
The following table contains information about the ipv6Dom 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 |
---|---|---|---|
name | naming:Name256 string:Basic | The name of the object. | RANGE: Min: "1" Max: "128" |
ipv6If Properties
The following table contains information about the ipv6If 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 |
---|---|---|---|
autoconfig | nw:AdminSt (scalar:Enum8) | IPv6 Stateless address autoconfig | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
useLinkLocalAddr | nw:AdminSt (scalar:Enum8) | IPv6 Address Use Link Local Address | SELECTION: 1 - enabled 2 - disabled DEFAULT: disabled |
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 |
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 Shutdown for All LAN VLANs on an Interface
Configuring Shutdown for All LAN VLANs on an Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"shutDownLan": "enable"
}
}
}
]
}
},
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"shutDownLan": "enable"
}
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<physExtd-items>
<shutDownLan>enable</shutDownLan>
</physExtd-items>
</PhysIf-list>
<PhysIf-list>
<id>eth1/2</id>
<physExtd-items>
<shutDownLan>enable</shutDownLan>
</physExtd-items>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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-3
shutdown lan
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 |
---|---|
topSystem | sys |
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-[eth1/3] |
l1PhysIfExtended | sys/intf/phys-[eth1/3]/physExtd |
l1PhysIf | sys/intf/phys-[eth1/2] |
l1PhysIfExtended | sys/intf/phys-[eth1/2]/physExtd |
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 |
l1PhysIfExtended Properties
The following table contains information about the l1PhysIfExtended 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 |
---|---|---|---|
shutDownLan | scalar:Enum8 | Shut/Unshut all LAN VLANs on interface | DEFAULT: disable |
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 |
l1PhysIfExtended Properties
The following table contains information about the l1PhysIfExtended 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 |
---|---|---|---|
shutDownLan | scalar:Enum8 | Shut/Unshut all LAN VLANs on interface | DEFAULT: disable |
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 Shutdown for All LAN VLANs on an Interface
Deleting Shutdown for All LAN VLANs on an Interface
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/3"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"shutDownLan": "disable"
}
}
}
]
}
},
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"shutDownLan": "disable"
}
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/3</id>
<physExtd-items>
<shutDownLan>disable</shutDownLan>
</physExtd-items>
</PhysIf-list>
<PhysIf-list>
<id>eth1/2</id>
<physExtd-items>
<shutDownLan>disable</shutDownLan>
</physExtd-items>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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-3
no shutdown lan
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 |
---|---|
topSystem | sys |
interfaceEntity | sys/intf |
l1PhysIf | sys/intf/phys-[eth1/3] |
l1PhysIfExtended | sys/intf/phys-[eth1/3]/physExtd |
l1PhysIf | sys/intf/phys-[eth1/2] |
l1PhysIfExtended | sys/intf/phys-[eth1/2]/physExtd |
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 |
l1PhysIfExtended Properties
The following table contains information about the l1PhysIfExtended 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 |
---|---|---|---|
shutDownLan | scalar:Enum8 | Shut/Unshut all LAN VLANs on interface | DEFAULT: disable |
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 |
l1PhysIfExtended Properties
The following table contains information about the l1PhysIfExtended 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 |
---|---|---|---|
shutDownLan | scalar:Enum8 | Shut/Unshut all LAN VLANs on interface | DEFAULT: disable |
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 UPDOWN and CHANGE Messages
Configuring UPDOWN and CHANGE Messages
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"linkLog": "enable"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<linkLog>enable</linkLog>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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
logging event port link-status
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 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
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 UPDOWN and CHANGE Messages
Deleting UPDOWN and CHANGE Messages
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"linkLog": "disable"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<linkLog>disable</linkLog>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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 logging event port link-status
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 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
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 UPDOWN and CHANGE Messages (Using the Default Value)
Configuring UPDOWN and CHANGE Messages (Using the Default Value)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"linkLog": "default"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<linkLog>default</linkLog>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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
logging event port link-status default
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 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
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 UPDOWN and CHANGE Messages (Using the Default Value)
Deleting UPDOWN and CHANGE Messages (Using the Default Value)
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"linkLog": "disable"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<linkLog>disable</linkLog>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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 logging event port link-status default
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 |
linkLog | l1:LinkLog (scalar:Enum8) | Administrative link logging enable | SELECTION: 1 - default 2 - enable 3 - disable DEFAULT: default |
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 SNMP LINKUP and LINKDOWN Traps
Configuring SNMP LINKUP and LINKDOWN Traps
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"snmpTrapSt": "enable"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<snmpTrapSt>enable</snmpTrapSt>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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
snmp trap link-status
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 |
snmpTrapSt | l1:SnmpTrapSt (scalar:Enum8) | Administrative port snmp trap state | SELECTION: 1 - enable 2 - disable DEFAULT: enable |
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 SNMP LINKUP and LINKDOWN Traps
Deleting SNMP LINKUP and LINKDOWN Traps
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"snmpTrapSt": "disable"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<snmpTrapSt>disable</snmpTrapSt>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(3).
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 snmp trap link-status
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 |
snmpTrapSt | l1:SnmpTrapSt (scalar:Enum8) | Administrative port snmp trap state | SELECTION: 1 - enable 2 - disable DEFAULT: enable |
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: