From 2faf519cf9d34f90d59081ee5f8d6976c62f4f6e Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Thu, 30 Mar 2017 13:52:01 +0200 Subject: Client: multitable version of show route --- conf/confbase.Y | 2 + doc/bird.sgml | 20 ++++++--- nest/config.Y | 25 ++++++++++- nest/route.h | 25 +++++++++-- nest/rt-table.c | 132 ++++++++++++++++++++++++++++++++++++++++++-------------- 5 files changed, 160 insertions(+), 44 deletions(-) diff --git a/conf/confbase.Y b/conf/confbase.Y index d6a6951f..ce718130 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -276,6 +276,8 @@ net_or_ipa: | net_vpn6_ { $$ = *$1; } | IP4 { net_fill_ip4(&($$), $1, IP4_MAX_PREFIX_LENGTH); } | IP6 { net_fill_ip6(&($$), $1, IP6_MAX_PREFIX_LENGTH); } + | VPN_RD IP4 { net_fill_vpn4(&($$), $2, IP4_MAX_PREFIX_LENGTH, $1); } + | VPN_RD IP6 { net_fill_vpn6(&($$), $2, IP6_MAX_PREFIX_LENGTH, $1); } | SYM { if ($1->class == (SYM_CONSTANT | T_IP)) net_fill_ip_host(&($$), SYM_VAL($1).ip); diff --git a/doc/bird.sgml b/doc/bird.sgml index e2e8964a..1777b8f3 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -924,11 +924,13 @@ This argument can be omitted if there exists only a single instance. Show the list of symbols defined in the configuration (names of protocols, routing tables etc.). -