summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/ospf.py
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-09-21 11:33:55 -0300
committerRenato Westphal <renato@opensourcerouting.org>2021-09-21 17:42:03 -0300
commit859bce816bb1cc8bc6b7b883473d84781b3f739b (patch)
treed372b576ba296c230ebc7a569aeeb057d401b816 /tests/topotests/lib/ospf.py
parent6b513b4c92b9ddc70212bebd06862f83f5a0d96b (diff)
ospfd: rename the "graceful-restart helper-only" command
Considering that both the GR helper mode and restarting mode can be enabled at the same time, the "graceful-restart helper-only" command can be a bit misleading since it implies that only the helper mode is enabled. Rename the command to "graceful-restart helper enable" to clarify what the command does. Start a deprecation cycle of one year before removing the original command Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/lib/ospf.py')
-rw-r--r--tests/topotests/lib/ospf.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/topotests/lib/ospf.py b/tests/topotests/lib/ospf.py
index c21cbf0dd8..c425e121af 100644
--- a/tests/topotests/lib/ospf.py
+++ b/tests/topotests/lib/ospf.py
@@ -329,14 +329,14 @@ def __create_ospf_global(tgen, input_dict, router, build, load_config, ospf):
cmd = "no {}".format(cmd)
config_data.append(cmd)
- if "helper-only" in gr_data and not gr_data["helper-only"]:
- cmd = "graceful-restart helper-only"
+ if "helper enable" in gr_data and not gr_data["helper enable"]:
+ cmd = "graceful-restart helper enable"
if gr_data.setdefault("delete", False):
cmd = "no {}".format(cmd)
config_data.append(cmd)
- elif "helper-only" in gr_data and type(gr_data["helper-only"]) is list:
- for rtrs in gr_data["helper-only"]:
- cmd = "graceful-restart helper-only {}".format(rtrs)
+ elif "helper enable" in gr_data and type(gr_data["helper enable"]) is list:
+ for rtrs in gr_data["helper enable"]:
+ cmd = "graceful-restart helper enable {}".format(rtrs)
if gr_data.setdefault("delete", False):
cmd = "no {}".format(cmd)
config_data.append(cmd)