From dfbabd45f8faaf4b697778ecf89951099797ce9b Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 5 Aug 2021 23:45:44 +0300 Subject: [PATCH 1/3] pathd: fix indentation for mpls-te config Before: ``` segment-routing traffic-eng mpls-te on mpls-te import ospfv2 ``` After: ``` segment-routing traffic-eng mpls-te on mpls-te import ospfv2 ``` Signed-off-by: Igor Ryzhov --- pathd/path_ted.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pathd/path_ted.c b/pathd/path_ted.c index 01ada92258..d17b5a0aab 100644 --- a/pathd/path_ted.c +++ b/pathd/path_ted.c @@ -516,16 +516,16 @@ uint32_t path_ted_config_write(struct vty *vty) { if (ted_state_g.enabled) { - vty_out(vty, " mpls-te on\n"); + vty_out(vty, " mpls-te on\n"); switch (ted_state_g.import) { case IMPORT_ISIS: - vty_out(vty, " mpls-te import isis\n"); + vty_out(vty, " mpls-te import isis\n"); break; case IMPORT_OSPFv2: - vty_out(vty, " mpls-te import ospfv2\n"); + vty_out(vty, " mpls-te import ospfv2\n"); break; case IMPORT_OSPFv3: - vty_out(vty, " mpls-te import ospfv3\n"); + vty_out(vty, " mpls-te import ospfv3\n"); break; default: break; From 882bae36a0fd8287fd09300e4cff1a372a61dbe6 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 5 Aug 2021 23:47:27 +0300 Subject: [PATCH 2/3] pathd: fix indentation and redundant space in index config Before: ``` segment-routing traffic-eng segment-list SL1 index 10 mpls label 16010 ``` After: ``` segment-routing traffic-eng segment-list SL1 index 10 mpls label 16010 ``` Signed-off-by: Igor Ryzhov --- pathd/path_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathd/path_cli.c b/pathd/path_cli.c index da41c96414..d517d75e47 100644 --- a/pathd/path_cli.c +++ b/pathd/path_cli.c @@ -550,7 +550,7 @@ void cli_show_srte_segment_list_segment(struct vty *vty, struct lyd_node *dnode, bool show_defaults) { - vty_out(vty, " index %s ", yang_dnode_get_string(dnode, "./index")); + vty_out(vty, " index %s", yang_dnode_get_string(dnode, "./index")); if (yang_dnode_exists(dnode, "./sid-value")) { vty_out(vty, " mpls label %s", yang_dnode_get_string(dnode, "./sid-value")); From b7484ec650a87a59a610bd26f153041d52f0e2c1 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 5 Aug 2021 23:57:24 +0300 Subject: [PATCH 3/3] doc: fix pathd example config Signed-off-by: Igor Ryzhov --- doc/user/pathd.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/user/pathd.rst b/doc/user/pathd.rst index f27360cca7..bdbf895299 100644 --- a/doc/user/pathd.rst +++ b/doc/user/pathd.rst @@ -52,10 +52,10 @@ Example: index 20 mpls label 16030 ! segment-list SL2 - index 10 nai prefix 10.1.2.1/32 iface 1 - index 20 nai adjacency 10.1.20.1 10.1.20.2 - index 30 nai prefix 10.10.10.5/32 algorithm 0 - index 40 mpls label 18001 + index 10 nai prefix 10.1.2.1/32 iface 1 + index 20 nai adjacency 10.1.20.1 10.1.20.2 + index 30 nai prefix 10.10.10.5/32 algorithm 0 + index 40 mpls label 18001 ! policy color 1 endpoint 1.1.1.1 name default @@ -70,7 +70,7 @@ Example: ! pcep pce-config GROUP1 - source-address 1.1.1.1 + source-address ip 1.1.1.1 tcp-md5-auth secret timer keep-alive 30 !