diff options
| author | Russ White <russ@riw.us> | 2021-07-13 06:39:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-13 06:39:53 -0400 |
| commit | 000df71ccdc2e81c4d6e7c123ad0db2cbcc4f05d (patch) | |
| tree | 6fb9713c0171fa1dbaa2d327cba0d087399e42e8 /tests/topotests/lib/common_config.py | |
| parent | 171b5527b971686a9c0b6449118fff2bb953b08e (diff) | |
| parent | b2a2107adee0062a422f60d9c2dc9b5888c2978f (diff) | |
Merge pull request #8767 from opensourcerouting/ospfd-gr
ospfd: introduce support for Graceful Restart (restarting mode)
Diffstat (limited to 'tests/topotests/lib/common_config.py')
| -rw-r--r-- | tests/topotests/lib/common_config.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py index d659b8d52d..9e60e523d3 100644 --- a/tests/topotests/lib/common_config.py +++ b/tests/topotests/lib/common_config.py @@ -365,7 +365,7 @@ def create_common_configuration( return True -def kill_router_daemons(tgen, router, daemons): +def kill_router_daemons(tgen, router, daemons, save_config=True): """ Router's current config would be saved to /etc/frr/ for each daemon and daemon would be killed forcefully using SIGKILL. @@ -379,9 +379,10 @@ def kill_router_daemons(tgen, router, daemons): try: router_list = tgen.routers() - # Saving router config to /etc/frr, which will be loaded to router - # when it starts - router_list[router].vtysh_cmd("write memory") + if save_config: + # Saving router config to /etc/frr, which will be loaded to router + # when it starts + router_list[router].vtysh_cmd("write memory") # Kill Daemons result = router_list[router].killDaemons(daemons) |
