From 1b3aea985e0cf1f7fdbc329cea204abcfcf80743 Mon Sep 17 00:00:00 2001 From: Yamato Sugawara Date: Sun, 16 Jan 2022 04:08:47 +0000 Subject: [PATCH] zebra: fix `segment-routing` command not found error with `--disable-pathd` Signed-off-by: Yamato Sugawara --- vtysh/vtysh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index c56b72fcbb..8e95aaa47c 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -4280,6 +4280,7 @@ void vtysh_init_vty(void) #endif /* HAVE_BFDD */ install_node(&segment_routing_node); + install_element(CONFIG_NODE, &segment_routing_cmd); install_element(SEGMENT_ROUTING_NODE, &vtysh_exit_sr_cmd); install_element(SEGMENT_ROUTING_NODE, &vtysh_quit_sr_cmd); install_element(SEGMENT_ROUTING_NODE, &vtysh_end_all_cmd); @@ -4305,7 +4306,6 @@ void vtysh_init_vty(void) install_element(SR_POLICY_NODE, &vtysh_end_all_cmd); install_element(SR_CANDIDATE_DYN_NODE, &vtysh_end_all_cmd); - install_element(CONFIG_NODE, &segment_routing_cmd); install_element(SEGMENT_ROUTING_NODE, &sr_traffic_eng_cmd); install_element(SR_TRAFFIC_ENG_NODE, &srte_segment_list_cmd); install_element(SR_TRAFFIC_ENG_NODE, &srte_policy_cmd); -- 2.39.5