diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 2f246e61d8..50fa91d94d 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -986,6 +986,10 @@ struct attr *bgp_attr_aggregate_intern( attr.origin = origin; attr.flag |= ATTR_FLAG_BIT(BGP_ATTR_ORIGIN); + /* MED */ + attr.med = 0; + attr.flag |= ATTR_FLAG_BIT(BGP_ATTR_MULTI_EXIT_DISC); + /* AS path attribute. */ if (aspath) attr.aspath = aspath_intern(aspath);