]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Add a hidden command for old `no router-id`
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 31 Oct 2024 09:37:49 +0000 (11:37 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 5 Nov 2024 15:21:01 +0000 (15:21 +0000)
A new command is `ospf router-id ...`, but the old one is also valid. Just a no
form was missed.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 80bfe6784fa945640251ae5c907899eb9d77cc0a)

ospfd/ospf_vty.c

index 81bc59e37360db022932eee246d055c1ce204962..6169c0846fec9d471d20e39325bae4700ddf5c5f 100644 (file)
@@ -339,6 +339,12 @@ DEFPY (no_ospf_router_id,
        return CMD_SUCCESS;
 }
 
+ALIAS_HIDDEN (no_ospf_router_id,
+              no_router_id_cmd,
+              "no router-id [A.B.C.D]",
+              NO_STR
+              "router-id for the OSPF process\n"
+              "OSPF router-id in IP address format\n")
 
 static void ospf_passive_interface_default_update(struct ospf *ospf,
                                                  uint8_t newval)
@@ -13678,6 +13684,7 @@ void ospf_vty_init(void)
        install_element(OSPF_NODE, &ospf_router_id_cmd);
        install_element(OSPF_NODE, &ospf_router_id_old_cmd);
        install_element(OSPF_NODE, &no_ospf_router_id_cmd);
+       install_element(OSPF_NODE, &no_router_id_cmd);
 
        /* "passive-interface" commands. */
        install_element(OSPF_NODE, &ospf_passive_interface_default_cmd);