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

flush VRF_OBJECT_TABLE table on state db when swss start #11509

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

iris00522
Copy link
Contributor

Why I did it

1.set vrf and binf interface
sudo config vlan add 2000
sudo config vrf add Vrf1
sudo config interface vrf bind Vlan2000 Vrf1
sudo config interface ip add Vlan2000 10.0.0.66/31
2.check state db
127.0.0.1:6379[6]> keys VRF
1) "VRF_TABLE|Vrf1"
2) "VRF_OBJECT_TABLE|Vrf1"
3.config reload
config reload -y
2.check state db , and the VRF_OBJECT_TABLE still exist
127.0.0.1:6379[6]> keys VRF
1) "VRF_OBJECT_TABLE|Vrf1"
127.0.0.1:6379[6]>

How I did it

flush VRF_OBJECT_TABLE table on state db when swss start

How to verify it

1.set vrf and binf interface
sudo config vlan add 2000
sudo config vrf add Vrf1
sudo config interface vrf bind Vlan2000 Vrf1
sudo config interface ip add Vlan2000 10.0.0.66/31
2.check state db
127.0.0.1:6379[6]> keys VRF
1) "VRF_TABLE|Vrf1"
2) "VRF_OBJECT_TABLE|Vrf1"
3.config reload
config reload -y
2.check state db , and the VRF_OBJECT_TABLE not exist
root@as9726-32d-6:/home/admin# redis-cli
127.0.0.1:6379> select 6
OK
127.0.0.1:6379[6]> keys VRF
(empty array)
127.0.0.1:6379[6]>

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

@iris00522 iris00522 requested a review from lguohan as a code owner July 21, 2022 09:21
@prsunny prsunny merged commit f323f56 into sonic-net:master Jul 22, 2022
@iris00522 iris00522 deleted the swss branch July 22, 2022 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants