]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix `segment-routing` command not found error with `--disable-pathd`
authorYamato Sugawara <yamato.sugawara@linecorp.com>
Sun, 16 Jan 2022 04:08:47 +0000 (04:08 +0000)
committermergify-bot <noreply@mergify.com>
Mon, 17 Jan 2022 03:34:06 +0000 (03:34 +0000)
Signed-off-by: Yamato Sugawara <yamato.sugawara@linecorp.com>
(cherry picked from commit 1b3aea985e0cf1f7fdbc329cea204abcfcf80743)

vtysh/vtysh.c

index beb7045a7d43870da2cef8d3b09f62437a4bb9a7..2f016638e545a59821a06a18657524121c8e8916 100644 (file)
@@ -4237,6 +4237,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);
@@ -4262,7 +4263,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);