Bgpctl has a way to specify the address family to show in 'show rib'
commands. Teach it to also support IPv6 MPLS VPNs (aka VPNv6).
OK?
--
:wq Claudio
Index: parser.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpctl/parser.c,v
retrieving revision 1.101
diff -u -p -r1.101 parser.c
--- parser.c 22 Jan 2020 07:52:38 -0000 1.101
+++ parser.c 7 May 2020 17:11:38 -0000
@@ -581,6 +581,11 @@ match_token(int *argc, char **argv[], co
t = &table[i];
res.aid = AID_VPN_IPv4;
}
+ if (!strcasecmp(word, "VPNv6")) {
+ match++;
+ t = &table[i];
+ res.aid = AID_VPN_IPv6;
+ }
break;
case ADDRESS:
if (parse_addr(word, &res.addr)) {
@@ -878,7 +883,8 @@ show_valid_args(const struct token table
fprintf(stderr, " <pftable>\n");
break;
case FAMILY:
- fprintf(stderr, " [ inet | inet6 | IPv4 | IPv6 | VPNv4
]\n");
+ fprintf(stderr, " [ inet | inet6 | IPv4 | IPv6 | "
+ "VPNv4 | VPNv6 ]\n");
break;
case FILENAME:
fprintf(stderr, " <filename>\n");