summaryrefslogtreecommitdiffstats
path: root/isisd/isisd.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-11-28 11:36:34 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-08-04 09:29:16 +0200
commitc57ff2d123b822f6257c1ba4926bf7f7a51292f8 (patch)
tree5d6afc6f1e1ef3cf14a92574bc6b913db31252a2 /isisd/isisd.c
parentisisd: Add nb command to show if SRv6 is enabled (diff)
downloadfrr-c57ff2d123b822f6257c1ba4926bf7f7a51292f8.tar.xz
frr-c57ff2d123b822f6257c1ba4926bf7f7a51292f8.zip
isisd: Add CLI command to enable SRv6
r1# conf r1(config)# router isis <area-tag> r1(config-router)# segment-routing srv6 Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd/isisd.c')
-rw-r--r--isisd/isisd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c
index dfb70943c..f9c12bc7c 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -3832,6 +3832,13 @@ struct cmd_node isis_flex_algo_node = {
};
#endif /* ifdnef FABRICD */
+struct cmd_node isis_srv6_node = {
+ .name = "isis-srv6",
+ .node = ISIS_SRV6_NODE,
+ .parent_node = ISIS_NODE,
+ .prompt = "%s(config-router-srv6)# ",
+};
+
void isis_init(void)
{
/* Install IS-IS top node */
@@ -3944,5 +3951,8 @@ void isis_init(void)
install_default(ISIS_FLEX_ALGO_NODE);
#endif /* ifdnef FABRICD */
+ install_node(&isis_srv6_node);
+ install_default(ISIS_SRV6_NODE);
+
spf_backoff_cmd_init();
}