Skip to content

[VLAN] "show mac" doesn't work when interface added to vlan as tagged member #2513

@keboliu

Description

@keboliu

Description
add some interface to vlan 100 as tagged vlan member, send some traffic to this interface to make mac address learned, but "show mac" will have some error.

the reason is that in this case the pvid of the interface is 1, all the mac address is learned in vlan 1, but the "SAI_OBJECT_TYPE_VLAN" info for vlan 1 in ASIC DB is NULL:

root@sonic:~# redis-cli -n 1 keys \*ASIC_STATE:SAI_OBJECT_TYPE_VLAN:*
1) "ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x26000000000012"
2) "ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x260000000009b0"

root@sonic:~# redis-cli -n 1 hgetall "ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x26000000000012"
1) "NULL"
2) "NULL"

root@sonic:~# redis-cli -n 1 hgetall "ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x260000000009b0"
1) "SAI_VLAN_ATTR_VLAN_ID"
2) "100"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions