brctl addbr br_500100
brctl addif br_500100 vtep_500100
brctl stp br_500100 off
sudo ip link set vtep_500100 up
sudo ip link set br_500100 up
sudo ip addr add 100.0.0.3/24 dev br_500100
sudo ip addr add 100::3/24 dev br_500100
brctl addbr br_500101
brctl addif br_500101 vtep_500101
brctl stp br_500101 off
sudo ip link set vtep_500101 up
sudo ip link set br_500101 up
sudo ip addr add 101.0.0.2/24 dev br_500101
sudo ip addr add 101::2/64 dev br_500101
Description
When there are many vlan to vni mapping entries, there are only one founded in the output of show vxlan tunnel command.
Steps to reproduce the issue:
sudo config vxlan add vtep101032 10.1.0.32 sudo config vxlan evpn_nvo add my-nvo vtep101032 sudo config vxlan map add vtep101032 100 500100 sudo config vxlan map add vtep101032 101 500101
Configure vxlan at HA
brctl addbr br_500100 brctl addif br_500100 vtep_500100 brctl stp br_500100 off sudo ip link set vtep_500100 up sudo ip link set br_500100 up sudo ip addr add 100.0.0.3/24 dev br_500100 sudo ip addr add 100::3/24 dev br_500100 brctl addbr br_500101 brctl addif br_500101 vtep_500101 brctl stp br_500101 off sudo ip link set vtep_500101 up sudo ip link set br_500101 up sudo ip addr add 101.0.0.2/24 dev br_500101 sudo ip addr add 101::2/64 dev br_500101
! router bgp 65000 bgp router-id 10.1.0.32 neighbor 30.0.0.2 remote-as 65000 neighbor 40.0.0.3 remote-as 65000 ! address-family ipv4 unicast network 10.1.0.32/32 exit-address-family ! address-family l2vpn evpn neighbor 30.0.0.2 activate neighbor 40.0.0.3 activate advertise-all-vni advertise-svi-ip vni 500100 rd 10.1.0.32:100 exit-vni vni 500101 rd 10.1.0.32:101 exit-vni exit-address-family !
! router bgp 65000 bgp router-id 40.0.0.3 neighbor 40.0.0.1 remote-as 65000 ! address-family l2vpn evpn neighbor 40.0.0.1 activate advertise-all-vni advertise-svi-ip vni 500100 rd 40.0.0.3:100 exit-vni exit-address-family !
show vxlan vlanvnimap +----------+---------+ | VLAN | VNI | +==========+=========+ | Vlan100 | 500100 | +----------+---------+ | Vlan101 | 500101 | +----------+---------+ Total count : 2
show vxlan tunnel vxlan tunnel name source ip destination ip tunnel map name tunnel map mapping(vni -> vlan)
vtep101032 10.1.0.32 map_500100_Vlan100 500100 -> Vlan100
Describe the results you received:
Only one vlan-vni map entry - map_500100_Vlan100 500100 -> Vlan100
Describe the results you expected:
It should list all the vlan vni mapping entries
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
There is the analysis result of developer:
The issue is due to the show command parsing code getting only the first vxlan map key and including it in the show command.