mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 23:52:18 +00:00
ospf6d: 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. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
598553e34f
commit
6b513b4c92
@ -276,7 +276,7 @@ Graceful Restart
|
||||
To perform a graceful shutdown, the "graceful-restart prepare ipv6 ospf"
|
||||
EXEC-level command needs to be issued before restarting the ospf6d daemon.
|
||||
|
||||
.. clicmd:: graceful-restart helper-only [A.B.C.D]
|
||||
.. clicmd:: graceful-restart helper enable [A.B.C.D]
|
||||
|
||||
|
||||
Configure Graceful Restart (RFC 5187) helper support.
|
||||
|
@ -1019,10 +1019,11 @@ static void show_ospf6_gr_helper_details(struct vty *vty, struct ospf6 *ospf6,
|
||||
/* Graceful Restart HELPER config Commands */
|
||||
DEFPY(ospf6_gr_helper_enable,
|
||||
ospf6_gr_helper_enable_cmd,
|
||||
"graceful-restart helper-only [A.B.C.D$rtr_id]",
|
||||
"graceful-restart helper enable [A.B.C.D$rtr_id]",
|
||||
"ospf6 graceful restart\n"
|
||||
"ospf6 GR Helper\n"
|
||||
"Enable Helper support\n"
|
||||
"Advertisement RouterId\n")
|
||||
"Advertisement Router-ID\n")
|
||||
{
|
||||
VTY_DECLVAR_CONTEXT(ospf6, ospf6);
|
||||
|
||||
@ -1041,11 +1042,12 @@ DEFPY(ospf6_gr_helper_enable,
|
||||
|
||||
DEFPY(ospf6_gr_helper_disable,
|
||||
ospf6_gr_helper_disable_cmd,
|
||||
"no graceful-restart helper-only [A.B.C.D$rtr_id]",
|
||||
"no graceful-restart helper enable [A.B.C.D$rtr_id]",
|
||||
NO_STR
|
||||
"ospf6 graceful restart\n"
|
||||
"Disable Helper support\n"
|
||||
"Advertisement RouterId\n")
|
||||
"ospf6 GR Helper\n"
|
||||
"Enable Helper support\n"
|
||||
"Advertisement Router-ID\n")
|
||||
{
|
||||
VTY_DECLVAR_CONTEXT(ospf6, ospf6);
|
||||
|
||||
@ -1354,14 +1356,14 @@ static int ospf6_cfg_write_helper_enable_rtr_walkcb(struct hash_bucket *backet,
|
||||
struct advRtr *rtr = backet->data;
|
||||
struct vty *vty = (struct vty *)arg;
|
||||
|
||||
vty_out(vty, " graceful-restart helper-only %pI4\n", &rtr->advRtrAddr);
|
||||
vty_out(vty, " graceful-restart helper enable %pI4\n", &rtr->advRtrAddr);
|
||||
return HASHWALK_CONTINUE;
|
||||
}
|
||||
|
||||
int config_write_ospf6_gr_helper(struct vty *vty, struct ospf6 *ospf6)
|
||||
{
|
||||
if (ospf6->ospf6_helper_cfg.is_helper_supported)
|
||||
vty_out(vty, " graceful-restart helper-only\n");
|
||||
vty_out(vty, " graceful-restart helper enable\n");
|
||||
|
||||
if (!ospf6->ospf6_helper_cfg.strict_lsa_check)
|
||||
vty_out(vty, " graceful-restart helper lsa-check-disable\n");
|
||||
|
@ -26,5 +26,5 @@ router ospf6
|
||||
ospf6 router-id 1.1.1.1
|
||||
redistribute connected
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
@ -31,5 +31,5 @@ interface eth-rt3
|
||||
router ospf6
|
||||
ospf6 router-id 2.2.2.2
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
@ -37,5 +37,5 @@ interface eth-rt6
|
||||
router ospf6
|
||||
ospf6 router-id 3.3.3.3
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
@ -31,5 +31,5 @@ interface eth-rt5
|
||||
router ospf6
|
||||
ospf6 router-id 4.4.4.4
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
@ -25,5 +25,5 @@ interface eth-rt4
|
||||
router ospf6
|
||||
ospf6 router-id 5.5.5.5
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
@ -31,5 +31,5 @@ interface eth-rt7
|
||||
router ospf6
|
||||
ospf6 router-id 6.6.6.6
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
@ -26,5 +26,5 @@ router ospf6
|
||||
ospf6 router-id 7.7.7.7
|
||||
redistribute connected
|
||||
graceful-restart grace-period 120
|
||||
graceful-restart helper-only
|
||||
graceful-restart helper enable
|
||||
!
|
||||
|
Loading…
Reference in New Issue
Block a user