]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Do not put on outgoing stream type 5 route 2 times
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 15 Sep 2017 13:49:26 +0000 (09:49 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 15 Sep 2017 13:49:26 +0000 (09:49 -0400)
With the change to allow bgp_evpn.c to support 2,3 and 5 evpn routes
the output of the route type is being done by bgp_evpn_encode_prefix
instead of the individual route encoder functions.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
bgpd/bgp_evpn.c

index 8c3a1b337b7184c8623d92ed0dfb3dd6c44c3b76..7b3a8ef098ec1ddbdd51bdab90d28fa3b2ac165f 100644 (file)
@@ -2047,7 +2047,6 @@ static void evpn_mpattr_encode_type5(struct stream *s, struct prefix *p,
                len = 8; /* ipv4 */
        else
                len = 32; /* ipv6 */
-       stream_putc(s, BGP_EVPN_IP_PREFIX_ROUTE);
        /* Prefix contains RD, ESI, EthTag, IP length, IP, GWIP and VNI */
        stream_putc(s, 8 + 10 + 4 + 1 + len + 3);
        stream_put(s, prd->val, 8);