Layer-2 Routing Information Base (L2RIB) DMEization
The following is a list of commands that support DME for L2RIB feature:
L2Route EVPN Startup-route All Detail
L2Route EVPN Startup-route All Detail
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
"l2ribEs": {
"attributes": {
"dn": "sys/l2rib/inst/topology/topo-10/es",
"modTs": "2024-06-28T11:03:17.791+00:00"
},
"children": [
{
"l2ribEsEntry": {
"attributes": {
"dfElection": "Per Flow",
"dn": "sys/l2rib/inst/topology/topo-10/es/es-0312.1211.1112.1200.001c-prod-VXLAN-origin-[192.168.22.22]",
"esi": "0312.1211.1112.1200.001c",
"ifHandle": "Ifindex 1234",
"modTs": "2024-06-28T11:03:28.083+00:00",
"originIp": "192.168.22.22",
"prodName": "VXLAN",
"sentTo": ""
}
}
}
]
}
}
{
imdata:[]
}
Note: This example was added in Release 10.5(2)F.
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.
show l2route evpn startup-route all detail
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| startup | sys/l2rib/inst/topology/topo- |
Properties
The following table contains information about the 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 Name | Data Type |
|---|---|
| topoId | scalar:Uint32 |
| srcIp | address:Ip |
| grpIp | address:Ip |
| fabricDelivSrcIp | address:Ip |
| fabricDelivGrpIp | address:Ip |
| dciDelivSrcIp | address:Ip |
| dciDelivGrpIp | address:Ip |
| flags | StartupRtFlagsT |
Related Documentation
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:
1. L2RIB Producers
Show Command
show l2rib producers
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| producer | sys/l2rib/inst/producers |
Properties
DN: sys/l2rib/inst/producers/prod-[name]-id-[id]-client-[clientId]-obj-[objType]
| Property | Default Value | DME-Type |
|---|---|---|
| clientId | 0 | scalar:ubyte |
| flags | 0 | scalar:uUint32 |
| id | 0 | scalar:uUint32 |
| name | "" | string:Basic |
| objType | "" | string:Basic |
| purgeTime | 0 | scalar:uUint32 |
| state | "" | ProducerStT |
CLI Output
| Producer ID | Client ID | Object Type | Admin Dist | Purge Time | State |
|---|---|---|---|---|---|
| VXLAN (011) | 4 | Topology | 0 | 0 | Initial |
| Static (002) | 1 | MAC | 5 | 600000 | Converged |
| Local (003) | 1 | MAC | 5 | 600000 | Converged |
| VXLAN (011) | 4 | MAC | 0 | 0 | Initial |
| VXLAN (011) | 4 | EAD | 0 | 0 | Initial |
| UFDM (015) | 2 | EVPN_PL | 0 | 0 | Initial |
| VXLAN (011) | 4 | IMET_ROUTE | 0 | 0 | Initial |
| VXLAN (011) | 4 | VXLAN_FL | 0 | 0 | Initial |
| VXLAN (011) | 4 | PEERID | 0 | 0 | Initial |
| VXLAN (011) | 4 | STARTUP-RT | 0 | 0 | Initial |
| VXLAN (011) | 4 | ES_ENTRY | 0 | 0 | Initial |
2. L2RIB Registrations
Show Command
show l2rib registrations
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| registrations | sys/l2rib/inst/registrations |
Properties
DN: sys/l2rib/inst/registrations/client-[name]
| Property | Default Value | DME-Type |
|---|---|---|
| id | 0 | scalar:UByte |
| name | "" | string:Basic |
DN: sys/l2rib/inst/registrations/client[name]/topo-[id]-obj-[objType]
| Property | DME-Type |
|---|---|
| id | string:Basic |
| objType | string:Basic |
| prodName | string:Basic |
CLI Output
| Client ID | Topology ID | Object Type | Producer |
|---|---|---|---|
| 0 | ALL | MAC | Multiple |
| 0 | ALL | Topology(1) | VXLAN |
| 0 | ALL | EVPN_PL | UFDM |
| 1 | ALL | CMCAST_ROUTE | NGMVPN |
| 2 | ALL | Topo-child-attr | VXLAN |
| 3 | ALL | EVPN_PL | None |
| 4 | ALL | Topology(1) | VXLAN |
3. L2Route MAC All Detail
Show Command
show l2route mac all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Mac | sys/l2rib/inst/topology/topo-[topo id]/mac |
Properties
DN: sys/l2rib/inst/topology/topo-[topoId]/mac/mac_entry-[macAddr]
| Property | DME-Type |
|---|---|
| macAddr | address:Mac |
DN: sys/l2rib/inst/topology/topo-[topoId]/mac/mac_entry-[macAddr]/prod-[producer]
| Property | DME-Type |
|---|---|
| esi | String:basic |
| flags | MacRtFlagsT |
| fwdSt | String:basic |
| genericFlags | GenericFlagsT |
| macAddr | adress:MAC |
| pcInfo | String:basic |
| producer | String:basic |
| rtResolution | MacRtResolutionT |
| sentTo | String:basic |
| seqNo | scalar:unit32 |
| siteOrigin | String:basic |
| topoId | scalar:unit32 |
DN: sys/l2rib/inst/topology/topo-[topoId]/mac/mac-[macAddr]/producer-[producer]/nexthops
DN: sys/l2rib/inst/topology/topo-[topoId]/mac/mac-[macAddr]/producer-[producer]/nexthops/nh-[nh]-type-[type]
| Property | DME-Type | Default Value |
|---|---|---|
| nh | String:basic | "" |
| type | l2rib:MacRtNhTypeT | "" |
| label | scalar:Uint32 | "0" |
| weight | scalar:Uint32 | "0" |
CLI Output
| Topology | Mac Address | Prod | Flags | Seq No | Next-Hops |
|---|---|---|---|---|---|
| 100 | 0000.0022.2221 | BGP | Rcv | 5 | 5.5.5.5 (Label: 20000) 55.55.55.55 (Label:20000) |
| Route Resolution Type: ESI | |||||
| Forwarding State: Resolved (PL) | |||||
| Resultant PL: 5.5.5.5 | |||||
| Sent To: L2FM | |||||
| ESI : aaaa.aaaa.aaaa.aaaa.99aa | |||||
| SOO: 775237173 | |||||
| Port-Channel Info: Ifindex 6789 |
4. L2Route MAC-IP All Detail
Show Command
show l2route mac-ip all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| MacIp | sys/l2rib/inst/topology/topo-[topo id]/mac-ip |
Properties
DN: sys/l2rib/inst/topology/topo-[topo-id]/macip/macip_entry-[macAddr]
| Property | Default Value | DME-Type |
|---|---|---|
| macAddr | "" | address:MAC |
| ip | "" | address:Ip |
DN: sys/l2rib/inst/topology/topo-[topoId]/macip/macip_entry-[macAddr]/prod-[producer]
| Property | Default Value | DME-Type |
|---|---|---|
| esi | "" | string:Basic |
| flags | "" | MacIpRtFlagsT |
| genericFlags | "" | genericFlagsT |
| hostIp | 0 | address:ip |
| l3TopoId | 0 | scalar:unit32 |
| macAddr | 0 | address:MAC |
| nh | "" | string:Basic |
| pcInfo | "" | string:Basic |
| peerId | 0 | scalar:unit32 |
| peerIfIdx | 0 | scalar:unit64 |
| producer | "" | string:Basic |
| sentTo | "" | string:Basic |
| seqNo | 0 | scalar:unit32 |
| siteOrigin | "" | string:Basic |
| topoId | 0 | scalar:unit32 |
CLI Output
| Topology | Mac Address | Host IP | Prod | Flag | Seq No | Next-Hops |
|---|---|---|---|---|---|---|
| 100 | 0000.0002.2222 | 5.5.5.5 | BGP | L | 2 | 5.5.5.5(Label:20000) |
| L3-Info: 42 | ||||||
| ESI : aaaa.aaaa.aaaa.aaaa.99aa | ||||||
| SOO: 774909488 | ||||||
| Port-Channel Info: Ifindex 6789 |
5. L2Route FL All Detail
Show Command
show l2route fl all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| FloodList | sys/l2rib/inst/topology/topo-[topo id]/floodlist |
Properties
DN: sys/l2rib/inst/topology/topo-[topoId]/floodlist/fl-ip
| Property | Default Value | DME-Type |
|---|---|---|
| peerId | 0 | scalar:Unit32 |
| ip | 0 | scalar:Unit32 |
| sentTo | "" | string:Basic |
| serviceNode | no | scalar:Bool |
| topoId | 0 | scalar:Unit32 |
CLI Output
| TopologyID | Peer-id | Flood List | Label(VNI) | Service Node | NFN Bitmap |
|---|---|---|---|---|---|
| 100 | 100 | 5.5.5.5 | 0 | no | 96 |
| 100 | 200 | 6.6.6.6 | 0 | no | 96 |
| 100 | 500 | 55.55.55.55 | 0 | no | 96 |
6. L2Route PeerID
Show Command
show l2route peerid
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Peers | sys/l2rib/inst/peers |
Properties
DN: sys/l2rib/inst/peers/peer-[ifName]-[ip]
| Property | Default Value | DME-Type |
|---|---|---|
| id | 0 | scalar:Unit32 |
| ifHdl | 0 | scalar:Unit64 |
| ifName | "" | string:Basic |
| ip | 0 | address:ip |
| numMac | 0 | scalar:Unit32 |
| numNh | 0 | scalar:Unit32 |
| peerIfIdx | 0 | scalar:Unit64 |
CLI Output
| NVE IFhdl | IP Address | PeerID | Ifindex | Num of MAC's |
|---|---|---|---|---|
| 1234 | 5.5.5.5 | 100 | 1005 | 0 |
7. L2Route Summary
Show Command
show l2route summary
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Summary | sys/l2rib/inst/summary |
Properties
DN: sys/l2rib/inst/summary
| Property | Default Value | DME-Type |
|---|---|---|
| totalSize | 0 | scalar:Unit32 |
| cnvrgdTblCnt | 0 | scalar:Unit32 |
DN: sys/l2rib/inst/summary/obj-[objName]
| Property | Default Value | DME-Type |
|---|---|---|
| numObj | 0 | scalar:Unit32 |
| ObjName | "" | string:Basic |
| size | 0 | scalar:Unit32 |
DN: sys/l2rib/inst/summary/obj-[objName]/prod-[prodName]
| Property | Default Value | DME-Type |
|---|---|---|
| id | 0 | scalar:Unit32 |
| numObj | 0 | scalar:Unit32 |
| prodName | "" | string:Basic |
| size | 0 | scalar:Unit32 |
CLI Output
| L2ROUTE Summary | Total Memory: 872 | Number of Converged Tables: 49 |
Table Name: Topology
| Producer(ID) | Objects | Memory(Bytes) |
|---|---|---|
| VXLAN(11) | 1 | 376 |
| Total | 1 | 376 |
Table Name: PEERID
| Producer(ID) | Objects | Memory(Bytes) |
|---|---|---|
| VXLAN(11) | 2 | 496 |
| Total | 2 | 496 |
8. L2Route EVPN EAD All Detail
Show Command
show l2route evpn ead all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Ead | sys/l2rib/inst/topology/topo-[topo-id]/ead |
Properties
DN: sys/l2rib/inst/topology/topo-[topoId]/ead/ead_entry-[esi]
| Property | DME-Type |
|---|---|
| esi | string:Basic |
DN: sys/l2rib/inst/topology/topo-[topoId]/ead/ead_entry-[esi]/prod-[prodname]
| Property | Default Value | DME-Type |
|---|---|---|
| numHops | 0 | scalar:Unit32 |
| numPls | 0 | scalar:Unit32 |
| prodName | "" | string:Basic |
| sentTo | "" | string:Basic |
| topoId | 0 | scalar:Unit32 |
DN: sys/l2rib/inst/topology/topo-[topoId]/ead/ead_entry-[esi]/prod-[prodName]/nexthops
DN: sys/l2rib/inst/topology/topo-[topoId]/ead/ead_entry-[esi]/prod-[prodName]/nexthops/nh-[nh]
| Property | DME-Type | Default Value |
|---|---|---|
| nh | string:Basic | "" |
| label | scalar:Uint32 | "0" |
| weight | scalar:Uint32 | "0" |
CLI Output
| Topology ID | Prod | ESI | NFN Bitmap | Num PLs | Flags |
|---|---|---|---|---|---|
| 4294967294 | VXLAN | 0301.0101.0101.0100.0001 | 0 | 0 | - |
9. L2Route EVPN EAD Ethernet-segment All Detail
Show Command
show l2route evpn ethernet-segment all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Es | sys/l2rib/inst/topology/topo-[topo-id]/es |
Properties
DN: sys/l2rib/inst/topology/topo-[topoId]/es/es-[esi]-prod-[prodName]-origin-[originIp]
| Property |
|---|
| esi |
| ifHandle |
| prodName |
| originIp |
| sentTo |
CLI Output
| ESI | Orig Rtr | IP Addr | Prod | Ifindex | NFN Bitmap |
|---|---|---|---|---|---|
| 0301.0101.0101.0100.0001 | 1.2.3.4 | VXLAN | Ifindex 1234 | 0 | |
| aaaa.aaaa.aaaa.aaaa.99aa | 1.2.3.4 | VXLAN | Ifindex 1234 | 0 | |
| 0301.0101.0101.0100.0001 | 1.2.3.4 | VXLAN | Ifindex 1234 | 0 |
10. L2Route EVPN Path-list All Detail
Show Command
show l2route evpn path-list all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Pl | sys/l2rib/inst/topology/topo-[topo-id]/pl |
Properties
DN: sys/l2rib/inst/topology/topo-[topoId]/pl/pl-[esi]-prod-[prodName]-type-[rtType]-cpnh-[cpNh]
| Property | Default Value | DME-Type |
|---|---|---|
| clientCtx | 0 | scalar:Unit32 |
| cpNh | "" | string:Basic |
| ecmpLabel | 0 | scalar:Unit32 |
| esi | "" | string:Basic |
| flags | 0 | scalar:Unit32 |
| prodName | "" | string:Basic |
| rtType | "" | l2rib:MacRtResolutionT |
| sentTo | "" | string:Basic |
| topoId | 0 | scalar:Unit32 |
| numMac | 0 | scalar:Uint32 |
DN: sys/l2rib/inst/topology/topo-[topoId]/pl/pl-[esi]-prod-[prodName]-type-[rtType]-cpnh-[cpNh]/nexthops
DN: sys/l2rib/inst/topology/topo-[topoId]/pl/pl-[esi]-prod-[prodName]-type-[rtType]-cpnh-[cpNh]/nexthops/nh-[nh]-type-[type]
| Property | DME-Type | Default Value |
|---|---|---|
| nh | string:Basic | "" |
| type | l2rib:PlNhTypeT | "" |
| label | scalar:Uint32 | "0" |
| weight | scalar:Uint32 | "0" |
| peerId | scalar:Uint32 | "0" |
| peerIdResState | l2rib:PeerResolutionStateT | "" |
CLI Output
| Topology ID | Prod | ESI | ECMP | Label Flags | ClientCtx | MACs | NFN Bitmap |
|---|---|---|---|---|---|---|---|
| 100 | None | aaaa.aaaa.aaaa.aaaa.99aa | 1225261056 | 0 | 0 | 1 | 8 |
| CP Next-Hops: 5.5.5.5, 55.55.55.55 | |||||||
| Gbl EAD Next-Hops: 5.5.5.5(100,R) | |||||||
| 55.55.55.55(500,R) | |||||||
| Res Next-Hops: 5.5.5.5, 55.55.55.55 | |||||||
| Res Next-Hops from UFDM: 5.5.5.5 | |||||||
| 100 | UFDM | aaaa.aaaa.aaaa.aaaa.99aa | 1225261056 | 0 | 1493172225 | 0 | 2 |
| CP Next-Hops: 5.5.5.5, 55.55.55.55 | |||||||
| Gbl EAD Next-Hops: Res Next-Hops: 5.5.5.5 |
11. L2Route EVPN Imet All Detail
Show Command
show l2route evpn imet all detail
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO | DN |
|---|---|
| Imet | sys/l2rib/inst/topology/topo-[topo-id]/imet |
Properties
DN: sys/l2rib/inst/topology/topo-[topoId]/imet/pro-[Prodname]
| Property | DME-Type | Default Value |
|---|---|---|
| prodName | "" | string:Basic |
DN: sys/l2rib/inst/topology/topo-[topoId]/imet/prod-[prodName]/imet-[ip]-imetlabel-[imetlabel]-tag-[ethTagid]-encap-[encapType]
| Property | DME-Type | Default Value |
|---|---|---|
| encapType | scalar:uint16 | 0 |
| ethTagId | scalar:uint32 | 0 |
| imetLabel | scalar:uint32 | 0 |
| ip | address:ip | "" |
| origin | ImetRtOrigin | unknown |
| pmsiFlags | scalar:uint32 | 0 |
| psmiType | scalar:uint32 | 0 |
| prodName | string:Basic | "" |
| sentTo | string:Basic | "" |
| topoId | scalar:Unit32 | 0 |
| tunnelId | string:Basic | "" |
| vni | scalar:Unit32 | 0 |
| teFlag | string:Basic | "" |
| vrfId | scalar:Uint32 | 0 |
CLI Output
| Topology ID | VNI | Prod | IPAddr | Eth Tag | PMSI-Flags | Flags | Type | Label(VNI) | TunnelID | NFN Bitmap |
|---|---|---|---|---|---|---|---|---|---|---|
| 100 | 20000 | BGP | 5.5.5.5 | 0 | 3 | - | 6 | 20000 | 1.13.101.250 | 16 |
show l2route evpn mac evi 1001 detail
show l2route evpn mac evi 1001 detail
POST http://<mgmt0_IP>/api/mo/sys.json
{
imdata:[]
}
<model>
<package name="nvo">
<primitives>
<type name="EpIdT"
base="scalar:Uint32">
</type>
……
<type
name="DciAdvertisePipStateT"
base="scalar:Enum16">
<const name="disable"
value="0" label="Disables advertise PIP
towards DCI in BGP for multisite."/>
<const name="enable" value="1"
label="Enables PIP towards DCI in BGP for
multisite."/>
<default value="disable"/>
</type>
CLI Command
The CLI command below is the equivalent of 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.
show l2route evpn mac evi 1001 detail
Note: The property information for this example was added in Release 10.5(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
| MO |
|---|
| EvpnMultisiteBordergw |
Properties
The following table contains information about the 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 Name | Data Type | Value | Type |
|---|---|---|---|
| state | - | - | MultisiteStateT |
| siteId | scalar:Enum8 | Supported values are 1 to 281474976710655. | scalar:Uint64 |
| dciAdvertisePip | - | - | DciAdvertisePipStateT |
| delayRestoreTime | - | range min="30" max="1000" default value="180" | scalar:Uint16 |
| nvo | - | - | type name="EpIdT" base="scalar:Uint32 |
| DciAdvertisePipStateT | - | - | scalar:Enum16 |
| disable | - | - | value="0" |
| enable | - | - | value="1" |
Related Documentation
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: