-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Why the vlan cli always add member port to cfg_db VLAN table field 'members'? #323
Comments
I should be a bug. In Table::get( ), @ in member@ have been stripped. bool Table::get(const string &key, vector &values)
} |
The "members@" field in vlan configDB table is for backward compatibility. If you use configb.json directly, VLAN_MEMBER_TABLE would be a better choice for vlan member configuration: https://github.com/Azure/sonic-swss/blob/master/doc/swss-schema.md#vlan_member_table |
Thanks for clarification. JSON configuration example is from the page, it's better to remove the vlan member configuration for this page: https://github.com/Azure/SONiC/wiki/Configuration: |
@jipanyang thanks. And what do you think about the behavior of cli |
If "config vlan member add" adds VLAN_TABLE|members unconditionally, I agree with you that is a bug. Would you provide a fix to the problem? thanks! |
Sure, later will link to the PR. |
@jipanyang please help to review(sonic-net/sonic-utilities#768) |
members
of VLAN table -- https://github.com/Azure/SONiC/wiki/ConfigurationWhat's the mean of field 'members' of VLAN table?
According to the code logic of vlanmgr, it only process the items in
members@
, but notmembers
. And it treat all items inmembers@
as untagged members. The comment explain thatThis is to be compatible with access VLAN configuration from minigraph
. So, can we ignore this field if we use config_db.json instead of minigraph?config vlan member add
always add member port to the filed 'members' of VLAN table, regardless of tagged or untagged member. But, as previous section, we known that themembers
field is only used for untagged member.It seems to be a bug and should clarify the role of
members
(ormembers@
)The text was updated successfully, but these errors were encountered: