You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The race condition is caused by a blocking Redis call which gets the contents of the FDB entry from ASIC DB.
Since it has been implemented as a simple loop, there is no guarantee that entry will be present in DB when the contents are being read.
- What I did
Fixed: [fdb] 'show mac' command failed with t0-56-po2vlan topology sonic-net#1866
- How I did it
Removed blocking calls from fdbshow
- How to verify it
Run FDB test
- Previous command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show mac
Key 'ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{"bvid":"oid:0x260000000009cc","mac":"02:11:22:33:20:00","switch_id":"oid:0x21000000000000"}' unavailable in database '1'
- New command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show mac
No. Vlan MacAddress Port Type
----- ------ ------------ ------ ------
Total number of entries 0
Signed-off-by: Nazarii Hnydyn <[email protected]>
0 commit comments