Configuring System Default Switchport

Configuring the System Default Switchport

Configuring the System Default Switchport
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
  "topSystem": {
    "children": [
      {
        "ethpmEntity": {
          "children": [
            {
              "ethpmInst": {
                "attributes": {
                  "systemDefaultLayer": "Layer2"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <ethpm-items>
    <inst-items>
      <systemDefaultLayer>Layer2</systemDefaultLayer>
    </inst-items>
  </ethpm-items>
</System>


CLI Command

The CLI command below is the equivalent to the payload example displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload or the YANG tab to view the XML payload.

system default switchport

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

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

Deleting the System Default Switchport

Deleting the System Default Switchport
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
  "topSystem": {
    "children": [
      {
        "ethpmEntity": {
          "children": [
            {
              "ethpmInst": {
                "attributes": {
                  "systemDefaultLayer": "Layer3"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <ethpm-items>
    <inst-items>
      <systemDefaultLayer>Layer3</systemDefaultLayer>
    </inst-items>
  </ethpm-items>
</System>


CLI Command

The CLI command below is the equivalent to the payload example displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload or the YANG tab to view the XML payload.

no system default switchport

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

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

Configuring the System Default Switchport Admin State (Down)

Configuring the System Default Switchport Admin State
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
  "topSystem": {
    "children": [
      {
        "ethpmEntity": {
          "children": [
            {
              "ethpmInst": {
                "attributes": {
                  "systemDefaultAdminSt": "down"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <ethpm-items>
    <inst-items>
      <systemDefaultAdminSt>down</systemDefaultAdminSt>
    </inst-items>
  </ethpm-items>
</System>


CLI Command

The CLI command below is the equivalent to the payload example displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload or the YANG tab to view the XML payload.

system default switchport shutdown

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

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

Configuring the System Default Switchport Admin State (Up)

Configuring the System Default Switchport
POST http://<mgmt0_IP>/api/node/mo/sys/pltfm/tcamRegion.json
{
  "topSystem": {
    "children": [
      {
        "ethpmEntity": {
          "children": [
            {
              "ethpmInst": {
                "attributes": {
                  "systemDefaultAdminSt": "up"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
{
    imdata:[]
}
<System>
  <ethpm-items>
    <inst-items>
      <systemDefaultAdminSt>up</systemDefaultAdminSt>
    </inst-items>
  </ethpm-items>
</System>


CLI Command

The CLI command below is the equivalent to the payload example displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload or the YANG tab to view the XML payload.

no system default switchport down

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

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