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

Removing Vnet with scope default #2239

Merged
merged 3 commits into from
Apr 26, 2022
Merged

Conversation

sumukhatv
Copy link
Contributor

What I did
If VirtualRouter ID is the default value, then don' remove it.
Why I did it
When removing Vnet with scope default, we need not remove the Vrf object if it is of default value.
How I verified it
Added tests to verify it
Details if related

Copy link
Collaborator

@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.

Please add VS tests.

orchagent/vnetorch.cpp Outdated Show resolved Hide resolved
@sumukhatv sumukhatv marked this pull request as ready for review April 26, 2022 15:15
@prsunny prsunny merged commit 2ea8581 into sonic-net:master Apr 26, 2022
qiluo-msft pushed a commit that referenced this pull request Apr 26, 2022
* [Vnetorch] Delete vnet vrf object when scope is not default
@sumukhatv
Copy link
Contributor Author

fixes sonic-net/sonic-buildimage#10412

@dgsudharsan
Copy link
Collaborator

@sumukhatv @prsunny This is also needed for 202111 branch. Can you please cherrypick?

judyjoseph pushed a commit that referenced this pull request May 8, 2022
* [Vnetorch] Delete vnet vrf object when scope is not default
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
* [Vnetorch] Delete vnet vrf object when scope is not default
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