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

upon cold reboot, skip remove mgmt vrf table from the kernel #1214

Merged
merged 3 commits into from
Mar 9, 2020

Conversation

bsun-sudo
Copy link
Contributor

What I did
In vrfmgr.cpp, for non-warm reboot case, skip removal of mgmt vrf table from the kernel.

Why I did it
mgmt vrf table in the kernel is installed via /etc/network/interfaces upon reboot, if vrfmgrd removes it after that, mgmt vrf table is missing in the kernel even though it is in the config db.

How I verified it
configure mgmt vrf and data VRF, save the configurations and do node reboot. After reboot, check mgmt vrf table is in the kernel.
Also check data VRFs are also present in the kernel.

Details if related
root@sonic:~# ip vrf show
Name Table

Vrf_red 1001
Vrf_green 1002
mgmt 5000 <<<<<<<<

@lguohan lguohan requested a review from prsunny March 3, 2020 21:04
cfgmgr/vrfmgr.cpp Outdated Show resolved Hide resolved
cfgmgr/vrfmgr.cpp Outdated Show resolved Hide resolved
cfgmgr/vrfmgr.cpp Outdated Show resolved Hide resolved
@prsunny
Copy link
Collaborator

prsunny commented Mar 4, 2020

retest this please

1 similar comment
@prsunny
Copy link
Collaborator

prsunny commented Mar 5, 2020

retest this please

@prsunny
Copy link
Collaborator

prsunny commented Mar 5, 2020

retest this please

2 similar comments
@prsunny
Copy link
Collaborator

prsunny commented Mar 7, 2020

retest this please

@lguohan
Copy link
Contributor

lguohan commented Mar 7, 2020

retest this please

@lguohan
Copy link
Contributor

lguohan commented Mar 8, 2020

https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/sonic-swss-build-pr/1450/

looks like always nat test case failures.

@lguohan
Copy link
Contributor

lguohan commented Mar 8, 2020

retest this please

@prsunny prsunny merged commit 060a44e into sonic-net:master Mar 9, 2020
abdosi pushed a commit that referenced this pull request Mar 15, 2020
* upon cold reboot, skip remove mgmt vrf table from the kernel
Co-authored-by: Bing Sun <Bing_Sun@dell.com>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…ommands (sonic-net#1214)

admin@sonic:~$ sudo connect line --devicename switch1
Successful connection to line 1
Press ^A ^X to disconnect


admin@sonic:~$ sudo sonic-clear line --devicename switch1
admin@sonic:~$ sudo show line -b
  Line    Baud    PID    Start Time    Device
------  ------  -----  ------------  --------
     1    9600      -             -   switch1
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.

4 participants