diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-06 16:29:14 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-06 16:29:14 +0100 |
commit | 471e1f1839dc0221b1038ea2b079e2ce05dfe8f5 (patch) | |
tree | 51d0a82c30b156a1511160470593c28bb33fa0db /bgpd/bgp_route.c | |
parent | bgp: Fix view/vrf lookup (diff) | |
download | frr-471e1f1839dc0221b1038ea2b079e2ce05dfe8f5.tar.xz frr-471e1f1839dc0221b1038ea2b079e2ce05dfe8f5.zip |
bgpd: Fix broken if statement
When outputting routes associated with a 'struct bgp'
do not force the safi to bee SAFI_EVPN and cause output
to be hosed.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index a9a2c38c8..70ef60576 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6097,7 +6097,7 @@ route_vty_out (struct vty *vty, struct prefix *p, * neccessarily the same as the prefix address family. * Both SAFI_MPLS_VPN and SAFI_ENCAP use the MP nexthop field */ - if ((safi == SAFI_ENCAP) || (safi == SAFI_MPLS_VPN) || (safi = SAFI_EVPN)) + if ((safi == SAFI_ENCAP) || (safi == SAFI_MPLS_VPN) || (safi == SAFI_EVPN)) { if (attr->extra) { |