Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Port channel configured, MAC address table is not showing up the macs though hardware has MACs. #539

Conversation

ramachandrareddygaddam
Copy link
Contributor

- What I did
When PortChannel is configured, the port_id is not mapped to if_name in the radis DB.
In this case 'show mac' or 'show arp' commands are failing to display the MAC entries.
In this case display the port_id in place of if_name.

- How I did it
When interface to OID map failed for port channel mac entries, keyerror exception occurred.
Here considering the OID as interface name and updating bridge mac list.

- How to verify it
Configure port channel and verify mac entries are learned.
When display mac entries via 'show mac' or 'show arp' the mac entried should be displayed.

admin@sonic:~$ show mac
No. Vlan MacAddress Port Type


1 3000 00:00:0A:00:04:0F Ethernet0 Dynamic 
2 3000 00:00:0A:00:04:04 Ethernet0 Dynamic 
3 3000 00:00:0A:00:04:09 Ethernet0 Dynamic 
4 3000 00:00:0A:00:04:0E Ethernet0 Dynamic 
5 3000 00:00:0A:00:04:06 Ethernet0 Dynamic 
6 3000 00:00:0A:00:04:01 Ethernet0 Dynamic 
7 3000 00:00:0A:00:04:05 Ethernet0 Dynamic 
8 3000 CC:37:AB:17:7B:76 2000000000ce4 Dynamic 
9 3000 00:00:0A:00:04:0C Ethernet0 Dynamic 

10 3000 00:00:0A:00:04:03 Ethernet0 Dynamic
11 3000 00:00:0A:00:04:0B Ethernet0 Dynamic
12 3000 00:00:0A:00:04:0D Ethernet0 Dynamic
13 3000 00:00:0A:00:04:07 Ethernet0 Dynamic
14 3000 00:00:0A:00:04:02 Ethernet0 Dynamic
15 3000 00:00:0A:00:04:00 Ethernet0 Dynamic
16 3000 00:00:0A:00:04:0A Ethernet0 Dynamic
17 3000 00:00:0A:00:04:08 Ethernet0 Dynamic
Total number of entries 17

Without fix:

The output doesn't contain any MAC entries, but MAC entries present in hardware.
admin@sonic:~$ show mac
200000000060e

@stcheng stcheng added the Bug label May 22, 2019
@prsunny
Copy link
Contributor

prsunny commented May 23, 2019

Adding portchannel to Vlan support was added recently and looks like this case is not handled. It will be fixed once this is merged. Also please note, displaying an oid instead of name is not recommended. Suggest to close this PR and reopen if the other fix is not solving it.

Copy link
Contributor

@prsunny prsunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As comments

@ramachandrareddygaddam
Copy link
Contributor Author

Agree, I will close this PR. The mentioned fix is very important, which will resolve exceptions in other modules like SNMP also.

@ramachandrareddygaddam ramachandrareddygaddam deleted the bugfix_show_mac_entries branch May 23, 2019 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants