Configuring a Port-Channel Interface Range
Disabling a Port-Channel Range
Disabling a Port-Channel Range
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"pcAggrIf": {
"attributes": {
"adminSt": "down",
"id": "po11",
"userCfgdFlags": "admin_state"
}}},{
"pcAggrIf": {
"attributes": {
"adminSt": "down",
"id": "po10",
"userCfgdFlags": "admin_state"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<aggr-items>
<AggrIf-list>
<id>po11</id>
<adminSt>down</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
<AggrIf-list>
<id>po10</id>
<adminSt>down</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
</aggr-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 port-channel 10-11
shutdown
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:
Forcefully Disable a Port-Channel Range
Forcefully Disable a Port-Channel Range
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"pcAggrIf": {
"attributes": {
"adminSt": "down",
"id": "po11",
"userCfgdFlags": "admin_state"
}}},{
"pcAggrIf": {
"attributes": {
"adminSt": "down",
"id": "po10",
"userCfgdFlags": "admin_state"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<aggr-items>
<AggrIf-list>
<id>po11</id>
<adminSt>down</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
<AggrIf-list>
<id>po10</id>
<adminSt>down</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
</aggr-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 port-channel 10-11
shutdown force
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:
Restarting a Disabled Port-Channel Range
Restarting a Disabled Port-Channel Range
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"pcAggrIf": {
"attributes": {
"adminSt": "up",
"id": "po11",
"userCfgdFlags": "admin_state"
}}},{
"pcAggrIf": {
"attributes": {
"adminSt": "up",
"id": "po10",
"userCfgdFlags": "admin_state"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<aggr-items>
<AggrIf-list>
<id>po11</id>
<adminSt>up</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
<AggrIf-list>
<id>po10</id>
<adminSt>up</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
</aggr-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 port-channel 10-11
no shutdown
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:
Restarting a Forcefully Disabled Port-Channel Range
Restarting a Forcefully Disabled Port-Channel Range
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{
"interfaceEntity": {
"children": [
{
"pcAggrIf": {
"attributes": {
"adminSt": "up",
"id": "po11",
"userCfgdFlags": "admin_state"
}}},{
"pcAggrIf": {
"attributes": {
"adminSt": "up",
"id": "po10",
"userCfgdFlags": "admin_state"
}}}]}}
{
imdata:[]
}
<System>
<intf-items>
<aggr-items>
<AggrIf-list>
<id>po11</id>
<adminSt>up</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
<AggrIf-list>
<id>po10</id>
<adminSt>up</adminSt>
<userCfgdFlags>admin_state</userCfgdFlags>
</AggrIf-list>
</aggr-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 port-channel 10-11
no shutdown force
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: