mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:36:20 +00:00
Merge pull request #10972 from iqras23/default_originate
bgpd: Metric not set with default route
This commit is contained in:
commit
a1d5f4ceab
@ -818,6 +818,8 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
|||||||
assert(attr.aspath);
|
assert(attr.aspath);
|
||||||
|
|
||||||
attr.local_pref = bgp->default_local_pref;
|
attr.local_pref = bgp->default_local_pref;
|
||||||
|
attr.med = 0;
|
||||||
|
attr.flag |= ATTR_FLAG_BIT(BGP_ATTR_MULTI_EXIT_DISC);
|
||||||
|
|
||||||
if ((afi == AFI_IP6) || peer_cap_enhe(peer, afi, safi)) {
|
if ((afi == AFI_IP6) || peer_cap_enhe(peer, afi, safi)) {
|
||||||
/* IPv6 global nexthop must be included. */
|
/* IPv6 global nexthop must be included. */
|
||||||
|
Loading…
Reference in New Issue
Block a user