Skip to content

Commit

Permalink
ospfd: Add a hidden command for old no router-id
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ton31337 committed Oct 31, 2024
1 parent 5f11235 commit 80bfe67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -13629,6 +13635,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);
Expand Down

0 comments on commit 80bfe67

Please sign in to comment.