]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_evpn.c
zebra: fix JSON fields for show evpn vni detail
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>
Thu, 26 Jan 2023 18:31:08 +0000 (10:31 -0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 27 Jan 2023 14:37:00 +0000 (14:37 +0000)
commit1a4a394d45653b37ddbc8e2321dd09329790ce7c
tree055b15cabef64e6c8df0b22e9a1996c7000f7e40
parent2d5928355c89130713660493e23430994b79a8ef
zebra: fix JSON fields for show evpn vni detail

Few of the JSON field in show evpn vni detail command is
confusing and a few fields were missing. Following is the
updated output.

primary# show evpn vni detail json
[
  {
    "vni":200,
    "type":"L2",
    "vrf":"default",
    "tenantVrf":"default",
    "vxlanInterface":"vni200",
    "ifindex":19,
    "vxlanIfindex":19,
    "sviInterface":"br200",
    "sviIfindex":18,
    "vtepIp":"2.2.2.1",
    "mcastGroup":"0.0.0.0",
    "advertiseGatewayMacip":"No",
    "advertiseSviMacip":"No",
    "numMacs":0,
    "numArpNd":0,
    "numRemoteVteps":1,
    "remoteVteps":[
      {
        "ip":"2.2.2.2",
        "flood":"HER"
      }
    ]
  },
  {
    "vni":100,
    "type":"L3",
    "vrf":"default",
    "tenantVrf":"default",
    "localVtepIp":"2.2.2.1",
    "vxlanIntf":"vni100",
    "sviIntf":"br100",
    "state":"Up",
    "sysMac":"aa:bb:cc:dd:ee:f1",
    "routerMac":"aa:bb:cc:dd:ee:f1",
    "vniFilter":"none",
    "l2Vnis":[
      20,
      30,
      200
    ]
  }
]

Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
tests/topotests/bgp_evpn_vxlan_topo1/PE1/evpn.vni.json
tests/topotests/bgp_evpn_vxlan_topo1/PE2/evpn.vni.json
tests/topotests/bgp_evpn_vxlan_topo1/test_bgp_evpn_vxlan.py
zebra/zebra_evpn.c
zebra/zebra_vxlan.c