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

[minigraph] Add tagged vlan member support for storage backend #9045

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

neethajohn
Copy link
Contributor

Why I did it

Storage T0's have all vlan members as tagged

How I did it

Since currently minigraph does not have a unique way to identify if a vlan member is tagged/untagged and to ensure other scenarios are not broken, the logic used is to just update the vlan member type as 'tagged' when we determine that it is a storage backend device. This change will apply only to storage backend T0's since storage backend T1's will not have vlan member information

How to verify it

  • Updated the storage backend T0 testcases to check for tagged vlan members
  • Added testcase to check if a T1 and backend T1 device generates an empty vlan member table
  • Existing vlan member testcases are good enough for checking if any regression has been caused for regular T0's
    Build sonic_config_engine-1.0-py3-none-any.whl successfully

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

@neethajohn neethajohn requested a review from lguohan as a code owner October 22, 2021 20:52
@neethajohn neethajohn changed the title Add tagged vlan member support for storage backend [minigraph] Add tagged vlan member support for storage backend Oct 22, 2021
@neethajohn neethajohn merged commit d35b50b into sonic-net:master Oct 27, 2021
@neethajohn neethajohn deleted the bkend_t0_vlan_parser branch October 27, 2021 16:27
qiluo-msft pushed a commit that referenced this pull request Oct 29, 2021
Signed-off-by: Neetha John <[email protected]>

Why I did it
Storage T0's have all vlan members as tagged

How I did it
Since currently minigraph does not have a unique way to identify if a vlan member is tagged/untagged and to ensure other scenarios are not broken, the logic used is to just update the vlan member type as 'tagged' when we determine that it is a storage backend device. This change will apply only to storage backend T0's since storage backend T1's will not have vlan member information

How to verify it
Updated the storage backend T0 testcases to check for tagged vlan members
Added testcase to check if a T1 and backend T1 device generates an empty vlan member table
Existing vlan member testcases are good enough for checking if any regression has been caused for regular T0's
Build sonic_config_engine-1.0-py3-none-any.whl successfully
judyjoseph pushed a commit that referenced this pull request Nov 14, 2021
Signed-off-by: Neetha John <[email protected]>

Why I did it
Storage T0's have all vlan members as tagged

How I did it
Since currently minigraph does not have a unique way to identify if a vlan member is tagged/untagged and to ensure other scenarios are not broken, the logic used is to just update the vlan member type as 'tagged' when we determine that it is a storage backend device. This change will apply only to storage backend T0's since storage backend T1's will not have vlan member information

How to verify it
Updated the storage backend T0 testcases to check for tagged vlan members
Added testcase to check if a T1 and backend T1 device generates an empty vlan member table
Existing vlan member testcases are good enough for checking if any regression has been caused for regular T0's
Build sonic_config_engine-1.0-py3-none-any.whl successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants