summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2020-09-30 12:59:19 +0900
committerMark Stapp <mjs@voltanet.io>2021-06-02 10:24:47 -0400
commit6c0a7c094111b11b7f8c298b71c60e08b82d8e15 (patch)
treea5f3fb78be05723b86b630d1153a64e14c06bf3d /lib/command.c
parent0adde13a58a4556d930cb2e9611a801cf09d5fc4 (diff)
*: 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 'lib/command.c')
-rw-r--r--lib/command.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 7fb405bdfb..805dd9abe2 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -889,6 +889,15 @@ enum node_type node_parent(enum node_type node)
case PCEP_PCC_NODE:
ret = PCEP_NODE;
break;
+ case SRV6_NODE:
+ ret = SEGMENT_ROUTING_NODE;
+ break;
+ case SRV6_LOCS_NODE:
+ ret = SRV6_NODE;
+ break;
+ case SRV6_LOC_NODE:
+ ret = SRV6_LOCS_NODE;
+ break;
default:
ret = CONFIG_NODE;
break;