-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Command "show arp" returns error: "int() argument must be a string, a bytes-like object or a number, not 'NoneType'" #6367
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
Comments
Dear @ppikh, I have analyzed the attached dump and found a root cause of the issue.
But, if my understanding is right, bvid "oid:0x26000000000013" belongs to default VLAN 1, which does not present in the system. The next record has not "SAI_VLAN_ATTR_VLAN_ID":
This causes an exception, output of which you could see in CLI. I have made PR, which contains a probable solution. Could I ask you to review it? In overview of the PR you could see the way, in which the issue has reproduced for me. If I use just yours steps, command "show arp" works fine, because the additional FDB entry with default VLAN is not being created. In addition, I have found a similar issue, but with "show mac": If PR 1357 will be accepted, I think the issue 894 could be fixed in the same way. |
Dear @ppikh, I have investigated the system behavior more deeper and realized that the system looks like works as designed. The FDB entry with default VLAN 1 is a normal reaction on untagged traffic, so, it is ok that such entry presents in the system. |
Command "show arp" returns error: "int() argument must be a string, a bytes-like object or a number, not 'NoneType'"
Setup
SONiC switch with Linux host connected to port Ethernet68
Linux host with interface enp5s0f1 connected to SONiC port Ethernet68
SONiC ----> Ethernet68 ----> enp5s0f1 ----> Linux Host
Steps to reproduce the issue:
sudo config portchannel add PortChannel0002
sudo config portchannel member add PortChannel0002 Ethernet68
sudo config vlan add 40
sudo config vlan member add 40 PortChannel0002
sudo config interface ip add Vlan40 40.0.0.1/24
sudo ip link add bond0 type bond
sudo ip link set dev bond0 type bond mode 4
sudo ip link set enp5s0f1 down
sudo ip link set enp5s0f1 master bond0
sudo ip link set enp5s0f1 up
sudo ip link set bond0 up
sudo ip link add link bond0 name bond0.40 type vlan id 40
sudo ip link set bond0.40 up
sudo ip addr add 40.0.0.3/24 dev bond0.40
Describe the results you received:
Command "show arp" returned error.
Describe the results you expected:
Command "show arp" returned correct output
Additional information you deem important (e.g. issue happens only occasionally):
Issue reproduce 100%
Tech support dump here:
sonic_dump_r-boxer-sw01_20210106_095423.tar.gz
The text was updated successfully, but these errors were encountered: