zebra: output optional param "func-bits" for SRv6

Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
This commit is contained in:
Nobuhiro MIKI 2022-03-25 15:41:00 +09:00
parent 5a22d2ad33
commit fbd01eaa41

View 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");
}