]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: output optional param "func-bits" for SRv6 10902/head
authorNobuhiro MIKI <nmiki@yahoo-corp.jp>
Fri, 25 Mar 2022 06:41:00 +0000 (15:41 +0900)
committerNobuhiro MIKI <nmiki@yahoo-corp.jp>
Mon, 28 Mar 2022 08:37:45 +0000 (17:37 +0900)
Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
zebra/zebra_srv6_vty.c

index ebe0fffcb2700a647ddba882337387af2d6c2d31..62ce17326c240dbf4937d051dee627300c0232be 100644 (file)
@@ -354,8 +354,12 @@ static int zebra_sr_config(struct vty *vty)
                        inet_ntop(AF_INET6, &locator->prefix.prefix,
                                  str, sizeof(str));
                        vty_out(vty, "   locator %s\n", locator->name);
-                       vty_out(vty, "    prefix %s/%u\n", str,
+                       vty_out(vty, "    prefix %s/%u", str,
                                locator->prefix.prefixlen);
+                       if (locator->function_bits_length)
+                               vty_out(vty, " func-bits %u",
+                                       locator->function_bits_length);
+                       vty_out(vty, "\n");
                        vty_out(vty, "   exit\n");
                        vty_out(vty, "   !\n");
                }