]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix broken if statement
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 6 Mar 2017 15:29:14 +0000 (10:29 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 6 Mar 2017 15:29:14 +0000 (10:29 -0500)
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>
bgpd/bgp_route.c

index a9a2c38c814b383d84158be6f5c3f3bb67354342..70ef60576031f37ce9d28fc1b4e502eb543c8153 100644 (file)
@@ -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)
             {