sonic-net / sonic-utilities

Command line utilities for the SONiC project
Other
156 stars 653 forks source link

'show mac' doesn't display the FDB entries learnt on VXLAN tunnel port #2583

Open praveenraja1 opened 1 year ago

praveenraja1 commented 1 year ago

Description

With VXLAN running in P2MP tunnel mode, the FDB entries that are learnt on tunnel ports are not displayed in the 'show mac' output.

They are present as BGP evpn entries and are present in ASIC H/W.

Also looking at the ASIC_DB and APPL_DB, we can see the FDB entries here as well, so its the case of CLI scripts not parsing and displaying the entries correctly.

ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{"bvid":"oid:0x260000000007b0","mac":"9C:2B:BF:02:02:89","switch_id":"oid:0x21000000000000"}

"VXLAN_FDB_TABLE:Vlan30:a8:17:56:53:33:b0":{"type":"hash","value":{"remote_vtep":"1.1.1.1","type":"dynamic","vni":"3000"}

Steps to reproduce the issue

  1. Config VXLAN in P2MP mode
  2. Send traffic over tunnel, so that FDBs are learnt on tunnel ports.
  3. 'show mac' and see that entries are not displayed

Describe the results you received

root@sonic:~# show mac No. Vlan MacAddress Port Type


1      77  0C:48:C6:C3:30:F8  Ethernet24  Dynamic

Total number of entries 1 root@sonic:~#

Describe the results you expected

root@sonic:~# show mac No. Vlan MacAddress Port Type


1      30  72:E5:BE:90:A6:1C  1.1.1.1     Static
2      30  F6:2C:C6:50:FF:F2  1.1.1.1     Static
3      30  B2:14:7E:B4:05:3C  1.1.1.1     Static
4      77  0C:48:C6:C3:30:F8  Ethernet24  Dynamic

Total number of entries 4 root@sonic:~#

Additional information you deem important (e.g. issue happens only occasionally)

Output of show version

Its based off o

ot@sonic:~# show version

SONiC Software Version: SONiC.202111-20230105.073752 Distribution: Debian 11.6 Kernel: 5.10.0-8-2-amd64 Build commit: ade5b1493 Build date: Thu Jan 5 08:09:49 UTC 2023 Built by: praveenraja@AZUHPSP02

Platform: x86_64-cel_midstone-100x-r0 HwSKU: Midstone-100x ASIC: innovium ASIC Count: 1 Serial Number: R3250F2B151B19GD200034 Model Number: R3250-F9001-01 Hardware Revision: N/A Uptime: 09:15:14 up 4:32, 1 user, load average: 1.34, 1.29, 1.35

praveenraja1 commented 1 year ago

https://github.com/sonic-net/sonic-utilities/pull/2584

Has been created to resolve this.