summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2020-09-30 05:59:19 +0200
committerMark Stapp <mjs@voltanet.io>2021-06-02 16:24:47 +0200
commit6c0a7c094111b11b7f8c298b71c60e08b82d8e15 (patch)
treea5f3fb78be05723b86b630d1153a64e14c06bf3d /vtysh/vtysh_config.c
parenttopotests: for zapi's seg6local route configuration (step1) (diff)
downloadfrr-6c0a7c094111b11b7f8c298b71c60e08b82d8e15.tar.xz
frr-6c0a7c094111b11b7f8c298b71c60e08b82d8e15.zip
*: new cli-nodes for SRv6 manager (step2)
This commit is a part of #5853 that add new cmd-node for SRv6 configuration. This commit just add cmd-node and moving node cli only, acutual SRv6 config command isn't added. (that is added later commit. of this branch) new cli nodes: * SRv6 * SRv6-locators * SRv6-locator Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index f92b0e920..6d80cf9d9 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -430,6 +430,10 @@ void vtysh_config_parse_line(void *arg, const char *line)
config = config_get(PROTOCOL_NODE, line);
else if (strncmp(line, "mpls", strlen("mpls")) == 0)
config = config_get(MPLS_NODE, line);
+ else if (strncmp(line, "segment-routing",
+ strlen("segment-routing"))
+ == 0)
+ config = config_get(SEGMENT_ROUTING_NODE, line);
else if (strncmp(line, "bfd", strlen("bfd")) == 0)
config = config_get(BFD_NODE, line);
else {