Permalink
Browse files

bgpd: encode VNI in BGP attribute as expected by RFC 8365

  • Loading branch information...
vincentbernat committed Apr 12, 2017
1 parent 27e04fc commit 06f4728e01f21ec63c35185156c2356fb9febbd1
Showing with 1 addition and 1 deletion.
  1. +1 −1 bgpd/bgp_evpn.c
@@ -292,7 +292,7 @@ form_auto_rt (struct bgp *bgp, struct bgpevpn *vpn,
struct ecommunity_val eval;
struct ecommunity *ecomadd;

encode_route_target_as ((bgp->as & 0xFFFF), vpn->vni, &eval);
encode_route_target_as ((bgp->as & 0xFFFF), vpn->vni | 0x10000000, &eval);

ecomadd = ecommunity_new ();
ecommunity_add_val (ecomadd, &eval);

0 comments on commit 06f4728

Please sign in to comment.