diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2024-04-03 21:03:26 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2024-04-03 21:03:26 +0200 |
commit | 6f45349197676a433c965b8c4cae2f77e657b056 (patch) | |
tree | 88cb82bc844c46d9cf6b35c826ceff9d3919aa2a /lib/srv6.c | |
parent | Merge pull request #15634 from donaldsharp/suppress_fib_funny_business (diff) | |
download | frr-6f45349197676a433c965b8c4cae2f77e657b056.tar.xz frr-6f45349197676a433c965b8c4cae2f77e657b056.zip |
lib: add srv6 bsid to seg6local_context2str
Add SRv6 Binding SID END.B6.Encaps nh6 str to lib.
It is used to display nh6 when one uses 'show ipv6 route'.
Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/srv6.c')
-rw-r--r-- | lib/srv6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/srv6.c b/lib/srv6.c index dceb6ab48..a82103e42 100644 --- a/lib/srv6.c +++ b/lib/srv6.c @@ -94,9 +94,11 @@ const char *seg6local_context2str(char *str, size_t size, snprintf(str, size, "table %u", ctx->table); return str; - case ZEBRA_SEG6_LOCAL_ACTION_END_DX2: case ZEBRA_SEG6_LOCAL_ACTION_END_B6: case ZEBRA_SEG6_LOCAL_ACTION_END_B6_ENCAP: + snprintfrr(str, size, "nh6 %pI6", &ctx->nh6); + return str; + case ZEBRA_SEG6_LOCAL_ACTION_END_DX2: case ZEBRA_SEG6_LOCAL_ACTION_END_BM: case ZEBRA_SEG6_LOCAL_ACTION_END_S: case ZEBRA_SEG6_LOCAL_ACTION_END_AS: |