diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/command.c | 9 | ||||
| -rw-r--r-- | lib/command.h | 3 |
2 files changed, 12 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; diff --git a/lib/command.h b/lib/command.h index 51da4c52e6..846434066d 100644 --- a/lib/command.h +++ b/lib/command.h @@ -155,6 +155,9 @@ enum node_type { PCEP_PCE_CONFIG_NODE, /* PCE shared configuration node */ PCEP_PCE_NODE, /* PCE configuration node */ PCEP_PCC_NODE, /* PCC configuration node */ + SRV6_NODE, /* SRv6 node */ + SRV6_LOCS_NODE, /* SRv6 locators node */ + SRV6_LOC_NODE, /* SRv6 locator node */ VTY_NODE, /* Vty node. */ FPM_NODE, /* Dataplane FPM node. */ LINK_PARAMS_NODE, /* Link-parameters node */ |
