Ephemeral (MOTL) MOs for URIB

The following table lists the queries for retrieving route information through ephemeral MOs. These were added in Release 9.3(1).

Show Command Ephemeral DN Query
show ip route vrf all http://<mgmt0_IP>/api/node/mo/sys/urib.json?rsp-foreign-subtree=ephemeral
show ipv6 route vrf all http://<mgmt0_IP>/api/node/mo/sys/u6rib.json?rsp-foreign-subtree=ephemeral
show ip route vrf vrfname http://<mgmt0_IP>/api/node/mo/sys/urib/table4-vrfname.json?rsp-foreign-subtree=ephemeral
show ipv6 route vrf vrfname http://<mgmt0_IP>/api/node/mo/sys/u6rib/table6-vrfname.json?rsp-foreign-subtree=ephemeral
show routing summary vrf all http://<mgmt0_IP>/api/node/mo/sys/urib.json?rsp-foreign-subtree=ephemeral&batch-context=summary
show routing ipv6 summary vrf all http://<mgmt0_IP>/api/node/mo/sys/u6rib.json?rsp-foreign-subtree=ephemeral&batch-context=summary
show routing summary vrf vrfname http://<mgmt0_IP>/api/node/mo/sys/urib/table4-vrfname.json?rsp-foreign-subtree=ephemeral&batch-context=summary
show routing ipv6 summary vrf vrfname http://<mgmt0_IP>/api/node/mo/sys/u6rib/table6-vrfname.json?rsp-foreign-subtree=ephemeral&batch-context=summary

Batch Context

Use batch context tags in the table below to filter the queries. The format is a list of single tag or property:values pairs separated by a semi colon. For example: ";;:;;:;…"

TagDescription
summaryAdds the summary MO to the output
uniShows the unicast paths. **Note:** Uni is always implied if neither uni or multi is specified.
multiShow the multicast paths. **Note:** If only multi is specified, unicast paths are not given. To get both unicast and multicast, both uni and multi must be used.
backupShows the best and backup paths. **Note:** By default, only the best paths are given.
no-nhDo not fill the next-hop MO.
detailDump detailed information about the next hops. See notes below.
noroutesDo not dump the routes, only the summary.

Notes: If no tags are used, the default is to show only the unicast path. Next-hop detailed information includes:

  • Labels related information
  • Client data pointer
  • BGP Origin/Peer
  • RNH information
  • Tlv information
  • Extended community
  • Attached export information
PropertyValue
rtAn address string parse-able by inet_pton. The mask (optional) is specified by adding an ‘_’ after the address: e.g. 30.4.1.0_24 or 100::_16 If no mask is specified, the default is 32 for urib and 128 for u6rib. **Note:** You can use the rt property to see only one route. Also, you can specify the property only once in the batch-context. If the property is not used, the full table is given.
clientA list of clients separated by coma. For example: “static,broadcast,local”. This will show only the routes where at least one of these clients has paths.

Querying Ephemeral Data Example

Querying Ephemeral Data Example
GET http://<IP_Address>/api/node/mo/sys/urib/table4-default.json?rsp-subtree=full&rsp-foreign-subtree=ephemeral&batch-context=rt:19.19.19.0_24;detail;uni;multi;backup&batch-id=1&batch-size=100    
{
    "totalCount": "1",
    "imdata": [
        {
            "uribTable4": {
                "attributes": {
                    "dn": "sys/urib/table4-[default]",
                    "routeCount": "15",
                    "vrfName": "default"
                },
                "children": [
                    {
                        "uribRoute4": {
                            "attributes": {
                                "flags": "65",
                                "mBestNextHopCount": "0",
                                "pendingHw": "no",
                                "pendingUfdm": "no",
                                "prefix": "19.19.19.0/24",
                                "rn": "route4-[19.19.19.0/24]",
                                "sortKey": "0",
                                "uBestNextHopCount": "1"
                            },
                            "children": [
                                {
                                    "uribNextHop4": {
                                        "attributes": {
                                            "address": "19.19.19.2",
                                            "bindinglabel": "0",
                                            "clientData": "No",
                                            "encapType": "none",
                                            "flags": "0",
                                            "id": "0",
                                            "interfaceName": "Eth1/19",
                                            "isBest": "yes",
                                            "labelStack": "",
                                            "metric": "0",
                                            "nhlfeFlags": "0",
                                            "nhlfeOwner": "",
                                            "owner": "direct",
                                            "preference": "0",
                                            "recursiveNextHopPrefix": "0.0.0.0",
                                            "rn": "nh4-0",
                                            "routeType": "",
                                            "segidType": "null",
                                            "segmentId": "0",
                                            "tag": "0",
                                            "tlv": "",
                                            "tlvAttachExport": "",
                                            "tlvExtentedCommunity": "",
                                            "tlvType": "0",
                                            "tunnelId": "0",
                                            "uptime": "01:32:45",
                                            "vrf": "default",
                                            "vtepIpAddress": "0.0.0.0",
                                            "vtepUnderlayVrfId": "0",
                                            "xriBgpOrigin": "",
                                            "xriBgpPeer": ""
                                        }
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

Note: This example was added in Cisco NX-OS Release 9.3(1).

For more information about applying query filters, see Filtering API Query Results


uribTable4 Properties

The following table contains information about the uribTable4 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 NameData TypeDescriptionValues
dn
reference:BinRef
A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module.
routeCounturib:Counter32
(scalar:Uint32)
Total number of route in this tableRANGE: [0, 4294967295]
vrfNamel3:VrfName
(string:Basic)
VRF nameA sequence of characters


uribRoute4 Properties

The following table contains information about the uribRoute4 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 NameData TypeDescriptionValues
flagsscalar:Uint32
Route flags.RANGE: [0, 4294967295]
mBestNextHopCountscalar:Uint32
Number of multicast best next hopRANGE: [0, 4294967295]
pendingHwscalar:Bool
UFDM sent, waiting for ack from HW.SELECTION: true or false
pendingUfdmscalar:Bool
Waiting to be send to UFDM.SELECTION: true or false
prefixaddress:Ip
Route address with maskValue must match ipv4 or ipv6 known format
rn
reference:BinRN
Identifies an object from its siblings within the context of its parent object. The distinguished name contains a sequence of relative names.
sortKeyscalar:Uint32
Eibgp mixed-path sort key.RANGE: [0, 4294967295]
uBestNextHopCountscalar:Uint32
Number of unicast best next hopRANGE: [0, 4294967295]


uribNextHop4 Properties

The following table contains information about the uribNextHop4 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 NameData TypeDescriptionValues
addressaddress:Ip
Next-hop address.Value must match ipv4 or ipv6 known format
bindinglabelscalar:Uint32
SRTE binding labelRANGE: [0, 4294967295]
clientDataurib:YesNo
(scalar:Enum8)
Yes if client put data in the next-hop.SELECTION:
0 - No
1 - Yes
encapTypeurib:NextHopEncapType
(scalar:Enum8)
Either VXLAN or none.SELECTION:
0 - none
1 - vxlan
2 - invalid
flagsscalar:Uint32
Flags, each bit has a different meaning.RANGE: [0, 4294967295]
idscalar:Uint32
Unique id among all nh of the route. Only used internally.RANGE: [0, 4294967295]
interfaceNamestring:Basic
Interface name.A sequence of characters
isBestscalar:Bool
Is the next-hop in the best listSELECTION: true or false
labelStackstring:Basic
MPLS label stack.A sequence of characters
metricscalar:Uint32
Metric.RANGE: [0, 4294967295]
nhlfeFlagsscalar:Uint32
Next-hop Label Forwarding flags.RANGE: [0, 4294967295]
nhlfeOwnerstring:Basic
nhlfe owner name.A sequence of characters
ownerstring:Basic
local, attached-export, static or unknown.A sequence of characters
preferencescalar:Uint32
Preference.RANGE: [0, 4294967295]
recursiveNextHopPrefixaddress:Ip
Recursive nexthop.Value must match ipv4 or ipv6 known format
rn
reference:BinRN
Identifies an object from its siblings within the context of its parent object. The distinguished name contains a sequence of relative names.
routeTypestring:Basic
Type.A sequence of characters
segidTypestring:Basic
Client provided segment type. 0 means not set.A sequence of characters
segmentIdscalar:Uint32
Client provided segment ID. 0 means not set.RANGE: [0, 4294967295]
tagscalar:Uint32
Client defined tag.RANGE: [0, 4294967295]
tlvstring:Basic
Type-Length-Value; client provided opaque data.A sequence of characters
tlvAttachExportstring:Basic
Type-Length-Value.A sequence of characters
tlvExtentedCommunitystring:Basic
Type-Length-Value.A sequence of characters
tlvTypescalar:Uint32
Type-Length-Value type.RANGE: [0, 4294967295]
tunnelIdscalar:Uint32
Client provided tunnel ID. 0 means not set.RANGE: [0, 4294967295]
uptimeurib:TimeStr
(string:Basic)
Elapsed time since this next hop has been added/modified.A sequence of characters
vrfl3:VrfName
(string:Basic)
VRF name.A sequence of characters
vtepIpAddressaddress:Ip
VxLAN VTEP IP address.Value must match ipv4 or ipv6 known format
vtepUnderlayVrfIdscalar:Uint32
VxLAN VTEP underlay VRF ID.RANGE: [0, 4294967295]
xriBgpOriginstring:Basic
Extended route information comming from BGP.A sequence of characters
xriBgpPeerstring:Basic
Extended route information comming from BGP.A sequence of characters


Related Documentation

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