-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
BGP warm reboot script to service #3992
Conversation
…ice /usr/local/bin" This reverts commit d16d163.
- access DB correctly
synced to latest master, retest this please |
@heidinet2007 I am sorry for taking so long. This PR fell out of my radar. One thing I just realized (I apologize for that) is that this change only covers warm reboot. It won't cover fast reboot. I understand that we don't currently have an fast-reboot db flag. That might not be something that we can add immediate. Can you run some test:
Thanks |
…m zebra in case it's not configured
retest vsimage please |
retest vsimage please |
retest vsimage please |
retest broadcom please |
Move BGP warm reboot script to BGP service at /usr/local/bin
Test
###################### warm not enabled ###########################
admin@PSW-7002:/etc/sonic$ show warm_restart config
name enable timer_name timer_duration
bgp false NULL NULL
system false NULL NULL
1 Jan 23 00:03:40.080681 PSW-7002 INFO systemd[1]: Stopping BGP container...
2 Jan 23 00:03:40.090340 PSW-7002 NOTICE admin: Stopping bgp service...
6 Jan 23 00:03:40.922961 PSW-7002 NOTICE admin: Warm boot flag: bgp false.
7 Jan 23 00:03:40.931723 PSW-7002 NOTICE admin: Stopping bgp service...
4 Jan 23 00:04:48.660858 PSW-7002 INFO systemd[1]: Starting BGP container...
5 Jan 23 00:04:48.674793 PSW-7002 NOTICE admin: Starting bgp service...
10 Jan 23 00:04:51.171567 PSW-7002 NOTICE admin: Warm boot flag: bgp false.
###################### warm enabled ##############################
bgp true NULL NULL
system true NULL NULL
14 Jan 23 00:08:21.557400 PSW-7002 INFO systemd[1]: Stopping BGP container...
15 Jan 23 00:08:21.569107 PSW-7002 NOTICE admin: Stopping bgp service...
16 Jan 23 00:08:22.350832 PSW-7002 NOTICE admin: Warm boot flag: bgp true.
17 Jan 23 00:08:22.358876 PSW-7002 NOTICE admin: Stopping bgp service...
18 Jan 23 00:08:22.368532 PSW-7002 NOTICE admin: Kill zebra first
13 Jan 23 00:09:07.687258 PSW-7002 INFO systemd[1]: Starting BGP container...
14 Jan 23 00:09:07.720972 PSW-7002 NOTICE admin: Starting bgp service...
15 Jan 23 00:09:09.337206 PSW-7002 NOTICE admin: Warm boot flag: bgp true.