Claudio Jeker(cje...@diehard.n-r-g.com) on 2020.05.08 09:40:38 +0200:
> 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?
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 - 1.101
> +++ parser.c 7 May 2020 17:11:38 -
> @@ -581,6 +581,11 @@ match_token(int *argc, char **argv[], co
> t = [i];
> res.aid = AID_VPN_IPv4;
> }
> + if (!strcasecmp(word, "VPNv6")) {
> + match++;
> + t = [i];
> + res.aid = AID_VPN_IPv6;
> + }
> break;
> case ADDRESS:
> if (parse_addr(word, )) {
> @@ -878,7 +883,8 @@ show_valid_args(const struct token table
> fprintf(stderr, " \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, " \n");
>