mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-15 12:30:43 +00:00
vtysh: Check if bgpd is enabled before installing vtysh commands for RPKI
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
f26a44f8dc
commit
d9d6db4582
@ -4999,11 +4999,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);
|
||||
|
Loading…
Reference in New Issue
Block a user