Configuring Static MPLS and Segment Routing
Enabling Static MPLS
Enabling Static MPLS
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsStatic": {
"attributes": {
"adminSt": "enabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplsstatic-items>
<adminSt>enabled</adminSt>
</mplsstatic-items>
</fm-items>
</System>
This example enables static MPLS.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
feature mpls static
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
Disabling Static MPLS
Disabling Static MPLS
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsStatic": {
"attributes": {
"adminSt": "disabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplsstatic-items>
<adminSt>disabled</adminSt>
</mplsstatic-items>
</fm-items>
</System>
This example disables static MPLS.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
no feature mpls static
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
Enabling MPLS EVPN
Enabling MPLS EVPN
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsEvpn": {
"attributes": {
"adminSt": "enabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplsevpn-items>
<adminSt>enabled</adminSt>
</mplsevpn-items>
</fm-items>
</System>
CLI Commands
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
feature mpls evpn
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
Disabling MPLS EVPN
Disabling MPLS EVPN
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsEvpn": {
"attributes": {
"adminSt": "disabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplsevpn-items>
<adminSt>disabled</adminSt>
</mplsevpn-items>
</fm-items>
</System>
CLI Commands
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
no feature mpls evpn
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
Enabling MPLS OAM
Enabling MPLS OAM
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsOam": {
"attributes": {
"adminSt": "enabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplsoam-items>
<adminSt>enabled</adminSt>
</mplsoam-items>
</fm-items>
</System>
CLI Commands
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
feature mpls oam
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
Disabling MPLS OAM
Disabling MPLS OAM
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsOam": {
"attributes": {
"adminSt": "disabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplsoam-items>
<adminSt>disabled</adminSt>
</mplsoam-items>
</fm-items>
</System>
CLI Commands
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
no feature mpls oam
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
Enabling MPLS Segment Routing
Enabling MPLS Segment Routing
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsSgmntRtg": {
"attributes": {
"adminSt": "enabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplssgmntrtg-items>
<adminSt>enabled</adminSt>
</mplssgmntrtg-items>
</fm-items>
</System>
CLI Commands
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
feature mpls segment-routing
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
Disabling MPLS Segment Routing
Disabling MPLS Segment Routing
POST http://<IP_Address>/api/mo/sys/fm.json
{
"fmEntity": {
"children": [
{
"fmMplsSgmntRtg": {
"attributes": {
"adminSt": "disabled"
}}}]}}
{
imdata:[]
}
<System>
<fm-items>
<mplssgmntrtg-items>
<adminSt>disabled</adminSt>
</mplssgmntrtg-items>
</fm-items>
</System>
CLI Commands
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
no feature mpls segment-routing
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
Enabling MPLS on an Interface
Enabling MPLS on an Interface
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"mplsEntity": {
"children": [
{
"mplsIf": {
"attributes": {
"id": "eth1/5"
}}}]}},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/5",
"layer": "Layer3",
"userCfgdFlags": "admin_layer"
}}}]}}]}}
{
imdata:[]
}
<System>
<mpls-items>
<If-items>
<If-list>
<id>eth1/5</id>
</If-list>
</If-items>
</mpls-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/5</id>
<layer>Layer3</layer>
<userCfgdFlags>admin_layer</userCfgdFlags>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Enables MPLS forwarding on Ethernet interface 1/5.
Creating an instance of this MO enables MPLS on the specified interface. Deleting an instance of this MO disables MPLS on the specified interface.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
int eth1/5
no switchport
mpls ip forwarding
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
Disabling MPLS on an Interface
Disabling MPLS on an Interface
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"mplsEntity": {
"children": [
{
"mplsIf": {
"attributes": {
"id": "eth1/5"
}}}]}},
{
"interfaceEntity": {
"children": [
{
"l1PhysIf": {
"attributes": {
"id": "eth1/5",
"layer": "Layer3",
"userCfgdFlags": "admin_layer"
}}}]}}]}}
{
imdata:[]
}
<System>
<mpls-items>
<If-items>
<If-list>
<id>eth1/5</id>
</If-list>
</If-items>
</mpls-items>
<intf-items>
<phys-items>
<PhysIf-list>
<id>eth1/5</id>
<layer>Layer3</layer>
<userCfgdFlags>admin_layer</userCfgdFlags>
</PhysIf-list>
</phys-items>
</intf-items>
</System>
Disables MPLS forwarding on Ethernet interface 1/5.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
int eth1/5
no switchport
no mpls ip forwarding
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
Reserving Labels for Static Assignment
Reserving Labels for Static Assignment
POST http://<IP_Address>/api/mo/sys/labeltable.json
{
"ulibLabelTable": {
"children": [
{
"ulibLblRange": {
"attributes": {
"dynLblMax": "99",
"dynLblMin": "17",
"staticLblMax": "1000",
"staticLblMin": "100"
}}}]}}
<System>
<labeltable-items>
<lblrange-items>
<dynLblMax>99</dynLblMax>
<dynLblMin>17</dynLblMin>
<staticLblMax>1000</staticLblMax>
<staticLblMin>100</staticLblMin>
</lblrange-items>
</labeltable-items>
</System>
There are three partitions (ranges) in ULIB: the dynamic label range, the static label range, and the segment routing global block (SRGB) range. The dynamic and static label ranges must be non-overlapping, while the SRGB range must be a contiguous subset of the dynamic range.
This example configures labels for static assignment.
CLI Commands
The CLI commands and options listed below are used to create the payload example displayed in the pane on the right.
mpls label range 17 99 static 100 1000
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 Shutdown Segment Routing
Configuring Shutdown Segment Routing
POST http://<mgmt0_IP>/api/mo/sys/segrt.json
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"attributes": {
"adminSt": "disabled"
},
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<adminSt>disabled</adminSt>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
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/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 Configured Shutdown Segment Routing
Deleting A Configured Shutdown Segment Routing
POST http://<mgmt0_IP>/api/mo/sys/segrt.json
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"attributes": {
"adminSt": "enabled"
},
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<adminSt>enabled</adminSt>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
no 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/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
Configuring The Global Block Range For Segment Routing Bindings
Configuring The Global Block Range For Segment Routing Bindings
POST http://<mgmt0_IP>/api/mo/sys/segrt/inst/srgb.json
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1",
"srLblMax": "470000",
"srLblMin": "16000"
}}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
<srLblMax>470000</srLblMax>
<srLblMin>16000</srLblMin>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
global-block 16000 470000
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/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 The Global Block Range For Segment Routing Bindings
Deleting The Global Block Range For Segment Routing Bindings
POST http://<mgmt0_IP>/api/mo/sys/segrt/inst/srgb.json
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1",
"srLblMax": "23999",
"srLblMin": "16000"
}}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
<srLblMax>23999</srLblMax>
<srLblMin>16000</srLblMin>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
no global-block
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/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
Configuring The Interval For Which SR Will Wait For SRGB Cleanup ACK From Clients
Configuring The Interval For Which SR Will Wait For SRGB Cleanup ACK From Clients
POST http://<mgmt0_IP>/api/mo/sys/segrt.json
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"attributes": {
"srgbCleanupIntvl": "12"
},
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgbCleanupIntvl>12</srgbCleanupIntvl>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
timers srgb cleanup 12
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/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 The Interval For Which SR Will Wait For SRGB Cleanup ACK From Clients
Deleting The Interval For Which SR Will Wait For SRGB Cleanup ACK From Clients
POST http://<mgmt0_IP>/api/mo/sys/segrt.json
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"attributes": {
"srgbCleanupIntvl": "60"
},
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgbCleanupIntvl>60</srgbCleanupIntvl>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
no timers srgb cleanup 12
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/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
Configuring The Interval For Which SR Will Retry SRGB Allocation With ULIB
Configuring The Interval For Which SR Will Retry SRGB Allocation With ULIB
POST http://<mgmt0_IP>/api/mo/sys/segrt.json
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"attributes": {
"srgbAllocRetryIntvl": "12"
},
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgbAllocRetryIntvl>12</srgbAllocRetryIntvl>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
timers srgb retry 12
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/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 The Interval For Which SR Will Retry SRGB Allocation With ULIB
Deleting The Interval For Which SR Will Retry SRGB Allocation With ULIB
POST http://<mgmt0_IP>/api/mo/sys/segrt.json
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"attributes": {
"srgbAllocRetryIntvl": "180"
},
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgbAllocRetryIntvl>180</srgbAllocRetryIntvl>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
no timers srgb retry 12
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/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
Specifying a Global Block Range for Segment Routing Bindings
Specifying a Global Block Range for Segment Routing Bindings
POST http://<IP_Address>/api/mo/sys/labeltable.json
{
"ulibLabelTable": {
"children": [
{
"ulibLblRange": {
"attributes": {
"srLblMax": "19",
"srLblMin": "17"
}}}]}}
<System>
<labeltable-items>
<lblrange-items>
<srLblMax>19</srLblMax>
<srLblMin>17</srLblMin>
</lblrange-items>
</labeltable-items>
</System>
There are three partitions (ranges) in ULIB: the dynamic label range, the static label range, and the segment routing global block (SRGB) range. The dynamic and static label ranges must be non-overlapping, while the SRGB range must be a contiguous subset of the dynamic range.
CLI Commands
The CLI commands and options listed below are used to create the payload example displayed in the pane on the right.
segment-routing mpls
global-block 17 19
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload: https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting a Global Block Range for Segment Routing Bindings
Deleting a Global Block Range for Segment Routing Bindings
POST http://<IP_Address>/api/mo/sys/labeltable.json
{
"ulibLabelTable": {
"children": [
{
"ulibLblRange": {
"attributes": {
"srLblMax": "23999",
"srLblMin": "16000"
}}}]}}
<System>
<labeltable-items>
<lblrange-items>
<srLblMax>23999</srLblMax>
<srLblMin>16000</srLblMin>
</lblrange-items>
</labeltable-items>
</System>
There are three partitions (ranges) in ULIB: the dynamic label range, the static label range, and the segment routing global block (SRGB) range. The dynamic and static label ranges must be non-overlapping, while the SRGB range must be a contiguous subset of the dynamic range.
CLI Commands
The CLI commands and options listed below are used to create the payload example displayed in the pane on the right.
segment-routing mpls
no global-block 17 19
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 Static Label and Prefix Binding
Configuring Static Label and Prefix Binding
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"mplsEntity": {
"children": [
{
"mplsIf": {
"attributes": {
"id": "eth2/2"
}}}]}},{
"mplsstaticEntity": {
"attributes": {
"adminSt": "enabled"
},
"children": [
{
"mplsstaticAf": {
"attributes": {
"type": "ipv4-ucast"
},
"children": [
{
"mplsstaticPfxLclLbl": {
"attributes": {
"label": "2000",
"pfx": "1.255.200.0/32"
}}}]}}]}}]}}
<System>
<mpls-items>
<If-items>
<If-list>
<id>eth2/2</id>
</If-list>
</If-items>
</mpls-items>
<mplsstatic-items>
<adminSt>enabled</adminSt>
<af-items>
<Af-list>
<type>ipv4-ucast</type>
<pfxlabel-items>
<PfxLclLbl-list>
<label>2000</label>
<pfx>1.255.200.0/32</pfx>
</PfxLclLbl-list>
</pfxlabel-items>
</Af-list>
</af-items>
</mplsstatic-items>
</System>
This example specifies static binding of incoming labels to IPv4 prefixes.
CLI Commands
The CLI commands listed below are used to create the payload example displayed in the pane on the right.
interface ethernet 2/2
mpls ip forwarding
mpls static configuration
address-family ipv4 unicast
local-label 2000 prefix 1.255.200.0/32
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 Next Hop
Configuring the Next Hop
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"mplsEntity": {
"children": [
{
"mplsIf": {
"attributes": {
"id": "eth2/2"
}}}]}},{
"mplsstaticEntity": {
"attributes": {
"adminSt": "enabled"
},
"children": [
{
"mplsstaticAf": {
"attributes": {
"type": "ipv4-ucast"
},
"children": [
{
"mplsstaticPfxLclLbl": {
"attributes": {
"label": "2000",
"pfx": "1.255.200.0/32"
},
"children": [
{
"mplsstaticNh": {
"attributes": {
"nhAddr": "1.31.1.1",
"outLbl": "2000"
}}}]}}]}}]}}]}}
<System>
<mpls-items>
<If-items>
<If-list>
<id>eth2/2</id>
</If-list>
</If-items>
</mpls-items>
<mplsstatic-items>
<adminSt>enabled</adminSt>
<af-items>
<Af-list>
<type>ipv4-ucast</type>
<pfxlabel-items>
<PfxLclLbl-list>
<label>2000</label>
<pfx>1.255.200.0/32</pfx>
<nh-items>
<nhAddr>1.31.1.1</nhAddr>
<outLbl>2000</outLbl>
</nh-items>
</PfxLclLbl-list>
</pfxlabel-items>
</Af-list>
</af-items>
</mplsstatic-items>
</System>
This example specifies the next hop.
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
interface ethernet 2/2
mpls ip forwarding
mpls static configuration
address-family ipv4 unicast
local-label 2000 prefix 1.255.200.0/32
next-hop 1.31.1.1 out-label 2000
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
Next Hop Backup
Next Hop Backup
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"mplsEntity": {
"children": [
{
"mplsIf": {
"attributes": {
"id": "eth2/2"
}}}]}},{
"mplsstaticEntity": {
"attributes": {
"adminSt": "enabled"
},
"children": [
{
"mplsstaticAf": {
"attributes": {
"type": "ipv4-ucast"
},
"children": [
{
"mplsstaticPfxLclLbl": {
"attributes": {
"label": "2000",
"pfx": "1.255.200.0/32"
},
"children": [
{
"mplsstaticBackupNh": {
"attributes": {
"if": "po34",
"nhAddr": "1.34.1.1",
"outLbl": "2000"
}}}]}}]}}]}}]}}
<System>
<mpls-items>
<If-items>
<If-list>
<id>eth2/2</id>
</If-list>
</If-items>
</mpls-items>
<mplsstatic-items>
<adminSt>enabled</adminSt>
<af-items>
<Af-list>
<type>ipv4-ucast</type>
<pfxlabel-items>
<PfxLclLbl-list>
<label>2000</label>
<pfx>1.255.200.0/32</pfx>
<backupnh-items>
<if>po34</if>
<nhAddr>1.34.1.1</nhAddr>
<outLbl>2000</outLbl>
</backupnh-items>
</PfxLclLbl-list>
</pfxlabel-items>
</Af-list>
</af-items>
</mplsstatic-items>
</System>
This example specifies the next-hop backup path.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
interface ethernet 2/2
mpls ip forwarding
mpls static configuration
address-family ipv4 unicast
local-label 2000 prefix 1.255.200.0/32
next-hop backup Po34 1.34.1.1 out-label 2000
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
Next Hop Auto-Resolve
Next Hop Auto-Resolve
POST http://<IP_Address>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"mplsEntity": {
"children": [
{
"mplsIf": {
"attributes": {
"id": "eth2/2"
}}}]}},{
"mplsstaticEntity": {
"attributes": {
"adminSt": "enabled"
},
"children": [
{
"mplsstaticAf": {
"attributes": {
"type": "ipv4-ucast"
},
"children": [
{
"mplsstaticPfxLclLbl": {
"attributes": {
"label": "2000",
"pfx": "1.255.200.0/32"
},
"children": [
{
"mplsstaticAutoResolveNh": {
"attributes": {
"outLbl": "3001"
}}}]}}]}}]}}]}}
<System>
<mpls-items>
<If-items>
<If-list>
<id>eth2/2</id>
</If-list>
</If-items>
</mpls-items>
<mplsstatic-items>
<adminSt>enabled</adminSt>
<af-items>
<Af-list>
<type>ipv4-ucast</type>
<pfxlabel-items>
<PfxLclLbl-list>
<label>2000</label>
<pfx>1.255.200.0/32</pfx>
<autoresolvenh-items>
<outLbl>3001</outLbl>
</autoresolvenh-items>
</PfxLclLbl-list>
</pfxlabel-items>
</Af-list>
</af-items>
</mplsstatic-items>
</System>
This example specifies next-hop auto-resolve.
CLI Command
The CLI command below is the equivalent to the payload example displayed in the pane on the right.
interface ethernet 2/2
mpls ip forwarding
mpls static configuration
address-family ipv4 unicast
local-label 2000 prefix 1.255.200.0/32
next-hop auto-resolve out-label 3001
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 Connected Prefix Segment Identifier Mappings
Configuring the Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
}}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
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/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 the Connected Prefix Segment Identifier Mappings
Deleting The Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv4"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"status": "deleted",
"type": "mpls"
}}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv4</afType>
<pfxsid-items>
<PrefixSid-list xc:operation="delete">
<type>mpls</type>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
no connected-prefix-sid-map
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/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
Configuring An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
Configuring An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv4"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"type": "mpls"
}}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv4</afType>
<pfxsid-items>
<PrefixSid-list>
<type>mpls</type>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
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/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 An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
Deleting An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv4"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"status": "deleted",
"type": "mpls"
}}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv4</afType>
<pfxsid-items>
<PrefixSid-list xc:operation="delete">
<type>mpls</type>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
no address-family ipv4dress-family ipv4
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/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
Configuring An IPv6 Address-Family Under Connected Prefix Segment Identifier Mappings
Configuring An IPv6 Address-Family Under Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv6"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"type": "mpls"
}}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv6</afType>
<pfxsid-items>
<PrefixSid-list>
<type>mpls</type>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
address-family ipv6
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/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 An IPv6 Address-Family Under Connected Prefix Segment Identifier Mappings
Deleting An IPv6 Address-Family Under Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv6"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"status": "deleted",
"type": "mpls"
}}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv6</afType>
<pfxsid-items>
<PrefixSid-list xc:operation="delete">
<type>mpls</type>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
no address-family ipv6
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/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
Configuring An IP Address For An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
Configuring An IP Address For An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv4"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtMplsPrefixSid": {
"attributes": {
"pfx": "0.0.0.0/2",
"sidValue": "123",
"sidValueType": "index"
}}}]}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv4</afType>
<pfxsid-items>
<PrefixSid-list>
<type>mpls</type>
<mplspfxsid-items>
<MplsPrefixSid-list>
<pfx>0.0.0.0/2</pfx>
<sidValue>123</sidValue>
<sidValueType>index</sidValueType>
</MplsPrefixSid-list>
</mplspfxsid-items>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
1.2.3.4/2 123
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/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 An IP Address For An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
Deleting An IP Address For An IPv4 Address-Family Under Connected Prefix Segment Identifier Mappings
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"segrtEntity": {
"children": [
{
"segrtInst": {
"children": [
{
"segrtSrgb": {
"children": [
{
"segrtConfigSrgb": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtLblBlock": {
"attributes": {
"localId": "srgb-1"
}}}]}}]}},{
"segrtDom": {
"attributes": {
"name": "default"
},
"children": [
{
"segrtDomAf": {
"attributes": {
"afType": "ipv4"
},
"children": [
{
"segrtPrefixSid": {
"attributes": {
"type": "mpls"
},
"children": [
{
"segrtMplsPrefixSid": {
"attributes": {
"pfx": "0.0.0.0/2",
"status": "deleted"
}}}]}}]}}]}}]}}]}}]}}
{
"imdata": []
}
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<segrt-items>
<inst-items>
<srgb-items>
<cfgsrgb-items>
<ConfigSrgb-list>
<type>mpls</type>
<lblblock-items>
<LblBlock-list>
<localId>srgb-1</localId>
</LblBlock-list>
</lblblock-items>
</ConfigSrgb-list>
</cfgsrgb-items>
</srgb-items>
<dom-items>
<Dom-list>
<name>default</name>
<af-items>
<DomAf-list>
<afType>ipv4</afType>
<pfxsid-items>
<PrefixSid-list>
<type>mpls</type>
<mplspfxsid-items>
<MplsPrefixSid-list xc:operation="delete">
<pfx>0.0.0.0/2</pfx>
</MplsPrefixSid-list>
</mplspfxsid-items>
</PrefixSid-list>
</pfxsid-items>
</DomAf-list>
</af-items>
</Dom-list>
</dom-items>
</inst-items>
</segrt-items>
</System>
Note: This example was added in Release 7.0(3)I7(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.
segment-routing mpls
connected-prefix-sid-map
address-family ipv4
no 1.2.3.4/2 123
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/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