From 471e1f1839dc0221b1038ea2b079e2ce05dfe8f5 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 6 Mar 2017 10:29:14 -0500 Subject: [PATCH] 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 --- bgpd/bgp_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index a9a2c38c81..70ef605760 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) { -- 2.39.5