From 6c0a7c094111b11b7f8c298b71c60e08b82d8e15 Mon Sep 17 00:00:00 2001 From: Hiroki Shirokura Date: Wed, 30 Sep 2020 12:59:19 +0900 Subject: *: 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 --- lib/command.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/command.c') 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; -- cgit v1.2.3