Querying L2VPN EVPN

Querying L2VPN EVPN
GET http://<IP_Address>/api/node/mo/sys/bgp/inst/dom-default/af-[l2vpn-evpn].json     
{
    "totalCount": "1",
    "imdata": [
        {
            "bgpDomAf": {
                "attributes": {
                    "advPip": "disabled",
                    "advSysMac": "disabled",
                    "advertL2vpnEvpn": "disabled",
                    "allocLblAll": "disabled",
                    "allocLblRtMap": "",
                    "bestPathCmpltTs": "2018-06-20T11:03:47.827+00:00",
                    "bestPathSigTs": "2018-06-20T11:03:47.820+00:00",
                    "childAction": "",
                    "clReflection": "enabled",
                    "critNhTimeout": "crit",
                    "defInfOrigRd": "unknown:unknown:0:0",
                    "defInfOrigRtt": "unknown:unknown:0:0",
                    "defInfOriginate": "disabled",
                    "defMetric": "",
                    "dn": "sys/bgp/inst/dom-default/af-l2vpn-evpn",
                    "exportGwIp": "disabled",
                    "igpMetric": "600",
                    "lblAllocMod": "disabled",
                    "maxEcmp": "1",
                    "maxExtEcmp": "1",
                    "maxExtIntEcmp": "1",
                    "maxMxdEcmp": "1",
                    "modTs": "2018-06-20T11:03:48.062+00:00",
                    "name": "bgp-DomAf",
                    "nhRtMap": "",
                    "nonCritNhTimeout": "noncrit",
                    "numAggregates": "0",
                    "numNetworks": "0",
                    "numPaths": "15",
                    "numPeers": "3",
                    "numPeersActive": "3",
                    "numRoutes": "13",
                    "persistentOnReload": "true",
                    "retainRttAll": "enabled",
                    "retainRttRtMap": "",
                    "status": "",
                    "supprInactive": "disabled",
                    "tblId": "0x1",
                    "tblMap": "",
                    "tblMapFltr": "disabled",
                    "tblSt": "up",
                    "tblVer": "282",
                    "tmrBstpthDfr": "0",
                    "tmrMax": "0",
                    "type": "l2vpn-evpn",
                    "vniEthTag": "disabled"
                },
                "children": [
                    {
                        "bgpEvpnRoute": {
                            "attributes": {
                                "bestPathId": "0",
                                "numPaths": "2",
                                "pfx": "[2]:[0]:[0]:[48]:[0226.51bd.c81c]:[32]:[1.7.1.1]",
                                "rd": "rd:as2-nn2:101:1000",
                                "rn": "evpnrt-[2]:[0]:[0]:[48]:[0226.51bd.c81c]:[32]:[1.7.1.1]-rd-rd:as2-nn2:101:1000",
                                "rtFlags": "xmit",
                                "rtType": "mac-ip",
                                "ver": "10"
                            },
                            "children": [
                                {
                                    "bgpPath": {
                                        "attributes": {
                                            "aggr": "0.0.0.0",
                                            "aggrAs": "0",
                                            "asPath": "102 {123 345 456} 90",
                                            "clusterLst": "",
                                            "extComm": "RT:10:1000 MAC Mobility Sequence:00:4294967295",
                                            "flags": "",
                                            "id": "0",
                                            "importedRd": "unknown:unknown:0:0",
                                            "localPref": "100",
                                            "metric": "0",
                                            "nh": "19.0.102.4",
                                            "nhMetric": "0",
                                            "operSt": "invalid",
                                            "origImportedRd": "unknown:unknown:0:0",
                                            "origin": "igp",
                                            "originatorId": "0.0.0.0",
                                            "peer": "19.0.102.4",
                                            "peerRtrId": "88.88.88.102",
                                            "rcvdLbl": "1000 2000",
                                            "regComm": "123:456",
                                            "rn": "path-[19.0.102.4]-id-0-nh-[19.0.102.4]-imprd-unknown:unknown:0:0-origimprd-unknown:unknown:0:0",
                                            "type": "internal",
                                            "unknownAttrData": "",
                                            "unknownAttrLen": "0",
                                            "weight": "0"
                                        },
                                        "children": [
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "3",
                                                        "rn": "seg-3"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "90",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                       }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "1",
                                                        "rn": "seg-1"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "102",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "2",
                                                        "rn": "seg-2"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "123",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "456",
                                                                    "order": "3",
                                                                    "rn": "asn-3"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "345",
                                                                    "order": "2",
                                                                    "rn": "asn-2"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpRegComm": {
                                                    "attributes": {
                                                        "community": "regular:as2-nn2:123:456",
                                                        "rn": "rcomm-regular:as2-nn2:123:456"
                                                    }
                                                }
                                            },
                                            {
                                                "bgpExtComm": {
                                                    "attributes": {
                                                        "encap": "unknown",
                                                        "rn": "ecomm",
                                                        "rtrMac": "00:00:00:00:00:00"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:10:1000",
                                                                    "rn": "rt-extended:as2-nn2:10:1000"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bgpPath": {
                                        "attributes": {
                                            "aggr": "0.0.0.0",
                                            "aggrAs": "0",
                                            "asPath": "101 {123 345 678} 90",
                                            "clusterLst": "",
                                            "extComm": "RT:10:1000 MAC Mobility Sequence:00:4294967295",
                                            "flags": "",
                                            "id": "0",
                                            "importedRd": "unknown:unknown:0:0",
                                            "localPref": "100",
                                            "metric": "0",
                                            "nh": "19.0.101.1",
                                            "nhMetric": "0",
                                            "operSt": "invalid",
                                            "origImportedRd": "unknown:unknown:0:0",
                                            "origin": "igp",
                                            "originatorId": "0.0.0.0",
                                            "peer": "19.0.101.1",
                                            "peerRtrId": "88.88.88.101",
                                            "rcvdLbl": "1000 2000",
                                            "regComm": "123:456",
                                            "rn": "path-[19.0.101.1]-id-0-nh-[19.0.101.1]-imprd-unknown:unknown:0:0-origimprd-unknown:unknown:0:0",
                                            "type": "internal",
                                            "unknownAttrData": "",
                                            "unknownAttrLen": "0",
                                            "weight": "0"
                                        },
                                        "children": [
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "3",
                                                        "rn": "seg-3"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "90",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "1",
                                                        "rn": "seg-1"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "101",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "2",
                                                        "rn": "seg-2"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "123",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "678",
                                                                    "order": "3",
                                                                    "rn": "asn-3"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "345",
                                                                    "order": "2",
                                                                    "rn": "asn-2"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpRegComm": {
                                                    "attributes": {
                                                        "community": "regular:as2-nn2:123:456",
                                                        "rn": "rcomm-regular:as2-nn2:123:456"
                                                    }
                                                }
                                            },
                                            {
                                                "bgpExtComm": {
                                                    "attributes": {
                                                        "encap": "unknown",
                                                        "rn": "ecomm",
                                                        "rtrMac": "00:00:00:00:00:00"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:10:1000",
                                                                    "rn": "rt-extended:as2-nn2:10:1000"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    },
                    {
                        "bgpEvpnRoute": {
                            "attributes": {
                                "bestPathId": "0",
                                "numPaths": "2",
                                "pfx": "[2]:[0]:[0]:[48]:[0226.51bd.c81d]:[32]:[1.7.1.2]",
                                "rd": "rd:as2-nn2:101:1000",
                                "rn": "evpnrt-[2]:[0]:[0]:[48]:[0226.51bd.c81d]:[32]:[1.7.1.2]-rd-rd:as2-nn2:101:1000",
                                "rtFlags": "xmit",
                                "rtType": "mac-ip",
                                "ver": "11"
                            },
                            "children": [
                                {
                                    "bgpPath": {
                                        "attributes": {
                                            "aggr": "0.0.0.0",
                                            "aggrAs": "0",
                                            "asPath": "102 {123 345 456} 90",
                                            "clusterLst": "",
                                            "extComm": "RT:10:1000 MAC Mobility Sequence:00:4294967295",
                                            "flags": "",
                                            "id": "0",
                                            "importedRd": "unknown:unknown:0:0",
                                            "localPref": "100",
                                            "metric": "0",
                                            "nh": "19.0.102.4",
                                            "nhMetric": "0",
                                            "operSt": "invalid",
                                            "origImportedRd": "unknown:unknown:0:0",
                                            "origin": "igp",
                                            "originatorId": "0.0.0.0",
                                            "peer": "19.0.102.4",
                                            "peerRtrId": "88.88.88.102",
                                            "rcvdLbl": "1000 2000",
                                            "regComm": "123:456",
                                            "rn": "path-[19.0.102.4]-id-0-nh-[19.0.102.4]-imprd-unknown:unknown:0:0-origimprd-unknown:unknown:0:0",
                                            "type": "internal",
                                            "unknownAttrData": "",
                                            "unknownAttrLen": "0",
                                            "weight": "0"
                                        },
                                        "children": [
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "3",
                                                        "rn": "seg-3"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "90",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "1",
                                                        "rn": "seg-1"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "102",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                               "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "2",
                                                        "rn": "seg-2"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "123",
                                                                    "order": "1",
                                                                   "rn": "asn-1"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "456",
                                                                    "order": "3",
                                                                    "rn": "asn-3"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "345",
                                                                    "order": "2",
                                                                    "rn": "asn-2"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpRegComm": {
                                                    "attributes": {
                                                        "community": "regular:as2-nn2:123:456",
                                                        "rn": "rcomm-regular:as2-nn2:123:456"
                                                    }
                                                }
                                            },
                                            {
                                                "bgpExtComm": {
                                                    "attributes": {
                                                        "encap": "unknown",
                                                        "rn": "ecomm",
                                                        "rtrMac": "00:00:00:00:00:00"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:10:1000",
                                                                    "rn": "rt-extended:as2-nn2:10:1000"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bgpPath": {
                                        "attributes": {
                                            "aggr": "0.0.0.0",
                                            "aggrAs": "0",
                                            "asPath": "101 {123 345 678} 90",
                                            "clusterLst": "",
                                            "extComm": "RT:10:1000 MAC Mobility Sequence:00:4294967295",
                                            "flags": "",
                                            "id": "0",
                                            "importedRd": "unknown:unknown:0:0",
                                            "localPref": "100",
                                            "metric": "0",
                                            "nh": "19.0.101.1",
                                            "nhMetric": "0",
                                            "operSt": "invalid",
                                            "origImportedRd": "unknown:unknown:0:0",
                                            "origin": "igp",
                                            "originatorId": "0.0.0.0",
                                            "peer": "19.0.101.1",
                                            "peerRtrId": "88.88.88.101",
                                            "rcvdLbl": "1000 2000",
                                            "regComm": "123:456",
                                            "rn": "path-[19.0.101.1]-id-0-nh-[19.0.101.1]-imprd-unknown:unknown:0:0-origimprd-unknown:unknown:0:0",
                                            "type": "internal",
                                            "unknownAttrData": "",
                                            "unknownAttrLen": "0",
                                            "weight": "0"
                                        },
                                        "children": [
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "3",
                                                        "rn": "seg-3"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "90",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "1",
                                                        "rn": "seg-1"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "101",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "2",
                                                        "rn": "seg-2"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "123",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "678",
                                                                    "order": "3",
                                                                    "rn": "asn-3"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "345",
                                                                    "order": "2",
                                                                    "rn": "asn-2"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpRegComm": {
                                                    "attributes": {
                                                        "community": "regular:as2-nn2:123:456",
                                                        "rn": "rcomm-regular:as2-nn2:123:456"
                                                    }
                                                }
                                            },
                                            {
                                                "bgpExtComm": {
                                                    "attributes": {
                                                        "encap": "unknown",
                                                        "rn": "ecomm",
                                                        "rtrMac": "00:00:00:00:00:00"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:10:1000",
                                                                    "rn": "rt-extended:as2-nn2:10:1000"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    },
                    {
                        "bgpEvpnRoute": {
                            "attributes": {
                                "bestPathId": "1",
                                "numPaths": "1",
                                "pfx": "[5]:[0]:[0]:[24]:[1.8.1.0]",
                                "rd": "rd:as2-nn2:101:1000",
                                "rn": "evpnrt-[5]:[0]:[0]:[24]:[1.8.1.0]-rd-rd:as2-nn2:101:1000",
                                "rtFlags": "xmit",
                                "rtType": "ip-pfx",
                                "ver": "5"
                            },
                            "children": [
                                {
                                    "bgpPath": {
                                        "attributes": {
                                            "aggr": "0.0.0.0",
                                            "aggrAs": "0",
                                            "asPath": "101 {234 5678 4567} 91",
                                            "clusterLst": "",
                                            "extComm": "RT:31:1000 RT:32:1000 ENCAP:8 Router MAC:d8b1.8076.8e77",
                                            "flags": "advertise,best-path",
                                            "id": "0",
                                            "importedRd": "unknown:unknown:0:0",
                                            "localPref": "100",
                                            "metric": "0",
                                            "nh": "19.0.101.1",
                                            "nhMetric": "0",
                                            "operSt": "valid",
                                            "origImportedRd": "unknown:unknown:0:0",
                                            "origin": "igp",
                                            "originatorId": "0.0.0.0",
                                            "peer": "19.0.101.1",
                                            "peerRtrId": "88.88.88.101",
                                            "rcvdLbl": "62993",
                                            "regComm": "789:123",
                                            "rn": "path-[19.0.101.1]-id-0-nh-[19.0.101.1]-imprd-unknown:unknown:0:0-origimprd-unknown:unknown:0:0",
                                            "type": "internal",
                                            "unknownAttrData": "",
                                            "unknownAttrLen": "0",
                                            "weight": "0"
                                        },
                                        "children": [
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "3",
                                                        "rn": "seg-3"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "91",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "1",
                                                        "rn": "seg-1"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "101",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "2",
                                                        "rn": "seg-2"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "234",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "4567",
                                                                    "order": "3",
                                                                    "rn": "asn-3"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "5678",
                                                                    "order": "2",
                                                                    "rn": "asn-2"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpRegComm": {
                                                    "attributes": {
                                                        "community": "regular:as2-nn2:789:123",
                                                        "rn": "rcomm-regular:as2-nn2:789:123"
                                                    }
                                                }
                                            },
                                            {
                                                "bgpExtComm": {
                                                    "attributes": {
                                                        "encap": "vxlan-8",
                                                        "rn": "ecomm",
                                                        "rtrMac": "D8:B1:80:76:8E:77"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:32:1000",
                                                                    "rn": "rt-extended:as2-nn2:32:1000"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:31:1000",
                                                                    "rn": "rt-extended:as2-nn2:31:1000"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                }
                           ]
                        }
                    },
                    {
                        "bgpEvpnRoute": {
                            "attributes": {
                                "bestPathId": "1",
                                "numPaths": "1",
                                "pfx": "[5]:[0]:[0]:[24]:[1.8.2.0]",
                                "rd": "rd:as2-nn2:101:1000",
                                "rn": "evpnrt-[5]:[0]:[0]:[24]:[1.8.2.0]-rd-rd:as2-nn2:101:1000",
                                "rtFlags": "xmit",
                                "rtType": "ip-pfx",
                                "ver": "6"
                            },
                            "children": [
                                {
                                    "bgpPath": {
                                        "attributes": {
                                            "aggr": "0.0.0.0",
                                            "aggrAs": "0",
                                            "asPath": "101 {234 5678 4567} 91",
                                            "clusterLst": "",
                                            "extComm": "RT:31:1000 RT:32:1000 ENCAP:8 Router MAC:d8b1.8076.8e77",
                                            "flags": "advertise,best-path",
                                            "id": "0",
                                            "importedRd": "unknown:unknown:0:0",
                                            "localPref": "100",
                                            "metric": "0",
                                            "nh": "19.0.101.1",
                                            "nhMetric": "0",
                                            "operSt": "valid",
                                            "origImportedRd": "unknown:unknown:0:0",
                                            "origin": "igp",
                                            "originatorId": "0.0.0.0",
                                            "peer": "19.0.101.1",
                                            "peerRtrId": "88.88.88.101",
                                            "rcvdLbl": "62993",
                                            "regComm": "789:123",
                                            "rn": "path-[19.0.101.1]-id-0-nh-[19.0.101.1]-imprd-unknown:unknown:0:0-origimprd-unknown:unknown:0:0",
                                            "type": "internal",
                                            "unknownAttrData": "",
                                            "unknownAttrLen": "0",
                                            "weight": "0"
                                        },
                                        "children": [
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "3",
                                                        "rn": "seg-3"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "91",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "1",
                                                        "rn": "seg-1"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "101",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpAsSeg": {
                                                    "attributes": {
                                                        "order": "2",
                                                        "rn": "seg-2"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "234",
                                                                    "order": "1",
                                                                    "rn": "asn-1"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "4567",
                                                                    "order": "3",
                                                                    "rn": "asn-3"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpAsItem": {
                                                                "attributes": {
                                                                    "asn": "5678",
                                                                    "order": "2",
                                                                    "rn": "asn-2"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            {
                                                "bgpRegComm": {
                                                    "attributes": {
                                                        "community": "regular:as2-nn2:789:123",
                                                        "rn": "rcomm-regular:as2-nn2:789:123"
                                                    }
                                                }
                                            },
                                            {
                                                "bgpExtComm": {
                                                    "attributes": {
                                                        "encap": "vxlan-8",
                                                        "rn": "ecomm",
                                                        "rtrMac": "D8:B1:80:76:8E:77"
                                                    },
                                                    "children": [
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:32:1000",
                                                                    "rn": "rt-extended:as2-nn2:32:1000"
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "bgpExtCommRt": {
                                                                "attributes": {
                                                                    "community": "extended:as2-nn2:31:1000",
                                                                    "rn": "rt-extended:as2-nn2:31:1000"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    },
                    {
                        "bgpDampeningCtrl": {
                            "attributes": {
                                "childAction": "",
                                "halfLife": "1",
                                "maxSupprPenalty": "40",
                                "maxSuppressTime": "2",
                                "modTs": "2018-06-20T11:03:47.935+00:00",
                                "persistentOnReload": "true",
                                "reuse": "10",
                                "rn": "dampening",
                                "rtMap": "",
                                "status": "",
                                "suppress": "30"
                            }
                        }
                    }
                ]
            }
        },
        {
            "warning": {
                "attributes": {
                    "text": "backend rv=0, Batch size [100] is less than Route size [101]. Increase the batch-size and try again"
                }
            }
        }
    ]
}

The REST GET output shows fewer routes (4 routes) than the CLI output (15 routes). This is expected in an Ephemeral query for a large number of outputs. Initiating queries while increasing the batch-id by 1 will eventually retrieve all routes (See "warning" in the payload example). Note that the batch-id and batch-size values change in subsequent queries.

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

CLI Output
Switch# show bgp vrf default l2vpn evpn
BGP routing table information for VRF default, address family L2VPN EVPN
BGP table version is 258, Local Router ID is 19.0.0.6
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup

   Network            Next Hop            Metric     LocPrf     Weight Path
Route Distinguisher: 101:1000
  i[2]:[0]:[0]:[48]:[0226.51bd.c81c]:[32]:[1.7.1.1]/248
                      19.0.101.1                        100          0 101 {123 345 678} 90 i
  i                   19.0.102.4                        100          0 102 {123 345 456} 90 i
  i[2]:[0]:[0]:[48]:[0226.51bd.c81d]:[32]:[1.7.1.2]/248
                      19.0.101.1                        100          0 101 {123 345 678} 90 i
  i                   19.0.102.4                        100          0 102 {123 345 456} 90 i
*>i[5]:[0]:[0]:[24]:[1.8.1.0]/224
                      19.0.101.1                        100          0 101 {234 5678 4567} 91 i
*>i[5]:[0]:[0]:[24]:[1.8.2.0]/224
                      19.0.101.1                        100          0 101 {234 5678 4567} 91 i
*>i[5]:[0]:[0]:[24]:[1.9.1.0]/224
                      19.0.102.4                        100          0 102 {62112 33492 4872 41787 13166 50081 21461 58376 29755
1135} 91 i
*>i[5]:[0]:[0]:[24]:[1.9.2.0]/224
                      19.0.102.4                        100          0 102 {62112 33492 4872 41787 13166 50081 21461 58376 29755
1135} 91 i

Route Distinguisher: 101:1001
  i[2]:[0]:[0]:[48]:[0100.51bd.c81c]:[32]:[110.1.1.2]/248
                      19.0.101.1                        100          0 101 {987 123 456} 92 i
  i[2]:[0]:[0]:[48]:[0100.51bd.c81d]:[32]:[110.1.1.3]/248
                      19.0.101.1                        100          0 101 {987 123 456} 92 i

Route Distinguisher: 101:10001
*>i[5]:[0]:[0]:[24]:[201.201.201.0]/224
                      19.0.101.1                        100          0 101 {567 890 345} 93 i

Route Distinguisher: 201:2000
h e[2]:[0]:[0]:[48]:[0201.0201.0201]:[32]:[2.7.1.1]/248
                      19.0.102.3                                     0 888 201 {2345 6789 678} 90 i
h e[2]:[0]:[0]:[48]:[0201.0201.0202]:[32]:[2.7.1.2]/248
                      19.0.102.3                                     0 888 201 {2345 6789 678} 90 i
h e[5]:[0]:[0]:[24]:[2.8.1.0]/224
                      19.0.102.3                                     0 888 201 {1223 4567 2345} 91 i
h e[5]:[0]:[0]:[24]:[2.8.2.0]/224
                      19.0.102.3                                     0 888 201 {1223 4567 2345} 91 i




Note: The property information for this example was added in Release 9.3(3).


bgpDomAf Properties

The following table contains information about the bgpDomAf 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
advPipbgp:AdminSt
(scalar:Enum8)
Advertise physical IP for type-5 routesSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled
advSysMacbgp:AdminSt
(scalar:Enum8)
Advertise extra EVPN RT-2 with system MACSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled
advertL2vpnEvpnbgp:AdvertL2vpnEvpn
(scalar:Enum8)
Advertise L2vpn EvpnSELECTION:
0 - disabled
1 - enabled
DEFAULT: disabled
allocLblAllbgp:AdminSt
(scalar:Enum8)
Allocate labels for all routesSELECTION:
1 - enabled
2 - disabled
DEFAULT: disabled
allocLblRtMapstring:Basic
Allocate labels for selective routesA sequence of characters
bestPathCmpltTsscalar:Date
The first best path completed timestamp.DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
bestPathSigTsscalar:Date
The first best path signalled timestamp.DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
childAction
mo:ModificationChildAction
scalar:Bitmask32
Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • clReflectionbgp:AdminSt
    (scalar:Enum8)
    client-to-client Reflection of routesSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: enabled
    critNhTimeoutbgp:NhTimeout
    (scalar:Uint32)
    The next-hop address tracking delay timer for critical next-hop reachability routes.
    RANGE: [1 , 4294967295]
    DEFAULT: crit
    defInfOrigRdbase:Community
    Default-information Originate always Route Distinguisher
    defInfOrigRttbase:Community
    Default-information Originate always Route Target
    defInfOriginatebgp:AdminSt
    (scalar:Enum8)
    default-information originateSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: disabled
    defMetricstring:Basic
    Default MetricA sequence of characters
    dn
    reference:BinRef
    A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module.
    exportGwIpbgp:AdminSt
    (scalar:Enum8)
    Export Gateway IP to Type-5 EVPN routes for VRFSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: disabled
    igpMetricbgp:igpMetric
    (scalar:Uint16)
    Dampen IGP metric-related changes
    RANGE: [0 , 3600]
    DEFAULT: 600
    lblAllocModbgp:AdminSt
    (scalar:Enum8)
    per VRF label allocation modeSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: enabled
    maxEcmpbgp:MaxEcmp
    (scalar:UByte)
    The maximum number of equal-cost paths for BGP load sharing.
    RANGE: [1 , 64]
    DEFAULT: 1
    maxExtEcmpbgp:MaxEcmp
    (scalar:UByte)
    Max External ECMP
    RANGE: [1 , 64]
    DEFAULT: 1
    maxExtIntEcmpbgp:MaxEcmp
    (scalar:UByte)
    Max External Internal ECMP
    RANGE: [1 , 64]
    DEFAULT: 1
    maxMxdEcmpbgp:MaxEcmp
    (scalar:UByte)
    Max mixed equal-cost multipath for local and remote paths
    RANGE: [1 , 64]
    DEFAULT: 1
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    name
    naming:Name256
    string:Basic
    The name of the object. RANGE: Min: "1" Max: "128"
  • DEFAULT: "bgp-DomAf"
  • nhRtMapstring:Basic
    Next hop route map nameA sequence of characters
    nonCritNhTimeoutbgp:NhTimeout
    (scalar:Uint32)
    The next-hop address tracking delay timer for non-critical next-hop reachability routes.
    RANGE: [1 , 4294967295]
    DEFAULT: noncrit
    numAggregatesscalar:Uint32
    Number of AggregatesRANGE: [0, 4294967295]
    numNetworksscalar:Uint32
    Number of NetworksRANGE: [0, 4294967295]
    numPathsbgp:NumPaths
    (scalar:Uint32)
    Number of PathsRANGE: [0, 4294967295]
    numPeersbgp:NumPeers
    (scalar:Uint32)
    Number of PeersRANGE: [0, 4294967295]
    numPeersActivebgp:NumPeers
    (scalar:Uint32)
    Number of Active PeersRANGE: [0, 4294967295]
    numRoutesbgp:NumPaths
    (scalar:Uint32)
    Number of RoutesRANGE: [0, 4294967295]
    persistentOnReload
    mo:Persistent
    scalar:Enum8
    NO COMMENTSSELECTION:
  • 0 - false
  • 1 - true
  • DEFAULT: true(1)
  • retainRttAllbgp:AdminSt
    (scalar:Enum8)
    Retain Route Target AllSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: disabled
    retainRttRtMapstring:Basic
    Retain Route Target Route MapA sequence of characters
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    supprInactivebgp:AdminSt
    (scalar:Enum8)
    Advertise only active routes to peersSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: disabled
    tblIdbgp:TblVer
    (scalar:Uint32)
    Table Id in hex displayRANGE: [0, 4294967295]
    tblMapstring:Basic
    Route-map nameA sequence of characters
    tblMapFltrbgp:AdminSt
    (scalar:Enum8)
    Selective route downloadSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: disabled
    tblStbgp:DomOperSt
    (scalar:Enum8)
    Local BGP table stateSELECTION:
    0 - unknown
    1 - up
    2 - down
    DEFAULT: unknown
    tblVerbgp:TblVer
    (scalar:Uint32)
    Table VersionRANGE: [0, 4294967295]
    tmrBstpthDfrscalar:Uint32
    Configure bgp related timers
    RANGE: [0 , 3000]
    tmrMaxscalar:Uint32
    Configure bestpath defer timer
    RANGE: [0 , 300000]
    typebgp:AfT
    (scalar:Enum8)
    TypeSELECTION:
    1 - ipv4-ucast
    2 - ipv4-mcast
    3 - vpnv4-ucast
    5 - ipv6-ucast
    6 - ipv6-mcast
    7 - vpnv6-ucast
    8 - vpnv6-mcast
    9 - l2vpn-evpn
    10 - ipv4-lucast
    11 - ipv6-lucast
    12 - lnkstate
    13 - ipv4-mvpn
    14 - ipv6-mvpn
    15 - l2vpn-vpls
    16 - ipv4-mdt
    DEFAULT: ipv4-ucast
    vniEthTagbgp:AdminSt
    (scalar:Enum8)
    Allow VNI in Ethernet Tag field in EVPN routeSELECTION:
    1 - enabled
    2 - disabled
    DEFAULT: disabled


    bgpEvpnRoute Properties

    The following table contains information about the bgpEvpnRoute 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
    bestPathIdbgp:PathId
    (scalar:Uint32)
    Bestpath IdRANGE: [0, 4294967295]
    numPathsscalar:Uint32
    Number of paths availableRANGE: [0, 4294967295]
    pfxstring:Basic
    EVPN prefixA sequence of characters
    rdbase:Community
    Route Distinguisher
    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.
    rtFlagsbgp:RtFlags
    (scalar:Bitmask32)
    FlagsSELECTION:
    1 - new
    2 - xmit
    4 - rib
    8 - best
    16 - suppressed
    32 - exported
    64 - locked
    128 - vpn
    256 - label
    512 - l2rib-evpn
    1024 - hw
    2048 - table-map-filtered
    rtTypebgp:EvpnRtType
    (scalar:Enum8)
    EVPN route-typeSELECTION:
    0 - none
    1 - a-d
    2 - mac-ip
    3 - imet
    4 - eth-seg
    5 - ip-pfx
    DEFAULT: none
    verbgp:RtVer
    (scalar:Uint32)
    Version of the routeRANGE: [0, 4294967295]


    bgpPath Properties

    The following table contains information about the bgpPath 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
    aggraddress:Ip
    AggregatorValue must match ipv4 or ipv6 known format
    aggrAsbgp:AsnNum
    (string:Basic)
    Aggregator ASA sequence of characters
    asPathstring:Basic
    AS-PathA sequence of characters


    bgpAsSeg Properties

    The following table contains information about the bgpAsSeg 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
    orderbgp:Order
    (scalar:Uint16)
    OrderRANGE: [0, 65535]
    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.


    bgpAsItem Properties

    The following table contains information about the bgpAsItem 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
    asnbgp:AsnNum
    (string:Basic)
    AS numberA sequence of characters
    orderbgp:Order
    (scalar:Uint16)
    OrderRANGE: [0, 65535]
    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.


    bgpRegComm Properties

    The following table contains information about the bgpRegComm 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
    communitybase:Community
    Community value
    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.


    bgpExtComm Properties

    The following table contains information about the bgpExtComm 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
    encapbase:Encap
    EncapsulationSELECTION: unknown, vlan-%d or vxlan-%d
    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.
    rtrMacaddress:MAC
    Router Mac address from nveValue must match MM:MM:MM:SS:SS:SS format


    bgpExtCommRt Properties

    The following table contains information about the bgpExtCommRt 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
    communitybase:Community
    Community value
    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.


    bgpDampeningCtrl Properties

    The following table contains information about the bgpDampeningCtrl 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
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • halfLifertmap:DampHalfLife
    (scalar:UByte)
    Decay Half Life, range 1-45
    RANGE: [0 , 45]
    DEFAULT: 0
    maxSupprPenaltyscalar:Uint32
    Max Suppress PenaltyRANGE: [0, 4294967295]
    maxSuppressTimertmap:DampMaxSuppressTime
    (scalar:UByte)
    Max Suppress Time
    RANGE: [0 , 255]
    DEFAULT: 0
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    persistentOnReload
    mo:Persistent
    scalar:Enum8
    NO COMMENTSSELECTION:
  • 0 - false
  • 1 - true
  • DEFAULT: true(1)
  • reusertmap:DampReuse
    (scalar:Uint16)
    Dampening Reuse Limit
    RANGE: [0 , 20000]
    DEFAULT: 0
    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.
    rtMapstring:Basic
    Apply route-map to specify dampening criteriaA sequence of characters
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    suppressrtmap:DampSuppress
    (scalar:Uint16)
    Dampening Suppress Limit
    RANGE: [0 , 20000]
    DEFAULT: 0


    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