diff options
| author | mitesh <mitesh@cumulusnetworks.com> | 2017-10-27 14:15:45 -0700 |
|---|---|---|
| committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-14 10:57:07 -0800 |
| commit | 342dd0c6230a7d637a8dec08a5ca9c7b6eb148be (patch) | |
| tree | 77e1589ed2e4d81b3cf9b85fafe43eb8c7f9482b /lib/prefix.c | |
| parent | b67a60d2cf765302ccde740576dada94f24ac450 (diff) | |
bgpd: advertise/withdraw type-5 routes upon user config
CLI config for enabling/disabling type-5 routes
router bgp <as> vrf <vrf>
address-family l2vpn evpn
[no] advertise <ipv4|ipv6|both>
loop through all the routes in VRF instance and advertise/withdraw
all ip routes as type-5 routes in default instance.
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'lib/prefix.c')
| -rw-r--r-- | lib/prefix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index f1c25d24d9..9f13cb8bb1 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -1043,10 +1043,11 @@ static const char *prefixevpn2str(const struct prefix *p, char *str, int size) family = IS_EVPN_PREFIX_IPADDR_V4((struct prefix_evpn *)p) ? AF_INET : AF_INET6; - snprintf(str, size, "[%d]:[%u][%s]/%d", + snprintf(str, size, "[%d]:[%u][%s/%d]/%d", p->u.prefix_evpn.route_type, p->u.prefix_evpn.eth_tag, inet_ntop(family, &p->u.prefix_evpn.ip.ip.addr, buf, PREFIX2STR_BUFFER), + p->u.prefix_evpn.ip_prefix_length, p->prefixlen); } else { sprintf(str, "Unsupported EVPN route type %d", |
