summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-06 16:29:14 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-06 16:29:14 +0100
commit471e1f1839dc0221b1038ea2b079e2ce05dfe8f5 (patch)
tree51d0a82c30b156a1511160470593c28bb33fa0db /bgpd/bgp_route.c
parentbgp: Fix view/vrf lookup (diff)
downloadfrr-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.c2
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)
{