mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
Merge pull request #1405 from dslicenc/cm18634-bgp-default
bgpd: default originate issue with intf peers and global intf address
This commit is contained in:
commit
608646688b
@ -691,7 +691,7 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
|||||||
p.family = afi2family(afi);
|
p.family = afi2family(afi);
|
||||||
p.prefixlen = 0;
|
p.prefixlen = 0;
|
||||||
|
|
||||||
if (afi == AFI_IP6) {
|
if ((afi == AFI_IP6) || peer_cap_enhe(peer, afi, safi)) {
|
||||||
/* IPv6 global nexthop must be included. */
|
/* IPv6 global nexthop must be included. */
|
||||||
attr.mp_nexthop_len = BGP_ATTR_NHLEN_IPV6_GLOBAL;
|
attr.mp_nexthop_len = BGP_ATTR_NHLEN_IPV6_GLOBAL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user