bgpd: Send MED attribute when aggregate prefix is created

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2022-04-11 17:46:04 +03:00
parent 5e1a1129f5
commit 59136db5a7

View File

@ -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);