Configuring an Ethernet Point-to-Point Interface
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.json
{
"topSystem": {
"children": [
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/2",
"layer": "Layer3",
"medium": "p2p",
"userCfgdFlags": "admin_layer"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"portTypeFabric": "yes"
}
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<layer>Layer3</layer>
<medium>p2p</medium>
<userCfgdFlags>admin_layer</userCfgdFlags>
<physExtd-items>
<portTypeFabric>yes</portTypeFabric>
</physExtd-items>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.2(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 switchport
medium p2p
port-type fabric
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
https://developer.cisco.com/media/dme/index.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting 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/2",
"layer": "Layer3",
"medium": "p2p",
"userCfgdFlags": "admin_layer"
},
"children": [
{
"l1PhysIfExtended": {
"attributes": {
"portTypeFabric": "no"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<System>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/2</id>
<layer>Layer3</layer>
<medium>p2p</medium>
<userCfgdFlags>admin_layer</userCfgdFlags>
<physExtd-items>
<portTypeFabric>no</portTypeFabric>
</physExtd-items>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Note: This example was added in Release 9.2(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 switchport
medium p2p
no port-type fabric
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: