Skip to content

Commit

Permalink
vtysh: Check if bgpd is enabled before installing vtysh commands for …
Browse files Browse the repository at this point in the history
…RPKI

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit d9d6db4)
  • Loading branch information
ton31337 authored and mergify[bot] committed Apr 16, 2024
1 parent 0cccf71 commit d1c20b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vtysh/vtysh.c
Original file line number Diff line number Diff line change
Expand Up @@ -5064,11 +5064,13 @@ void vtysh_init_vty(void)
install_element(VRF_NODE, &vtysh_exit_vrf_cmd);
install_element(VRF_NODE, &vtysh_quit_vrf_cmd);

#ifdef HAVE_BGPD
install_node(&rpki_vrf_node);
install_element(VRF_NODE, &rpki_cmd);
install_element(RPKI_VRF_NODE, &rpki_exit_cmd);
install_element(RPKI_VRF_NODE, &rpki_quit_cmd);
install_element(RPKI_VRF_NODE, &vtysh_end_all_cmd);
#endif

install_element(CONFIG_NODE, &vtysh_affinity_map_cmd);
install_element(CONFIG_NODE, &vtysh_no_affinity_map_cmd);
Expand Down

0 comments on commit d1c20b9

Please sign in to comment.