mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 15:58:18 +00:00
bgpd: Allow aspath prepending for default-originate with route-maps
The initial idea was to deny prepending and just use _self_. This patch at least allows prepending aspath with route-maps, but drops all non-self ASNs in the path. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
64fcf85d38
commit
85d93b166e
@ -829,6 +829,7 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
struct bgp_path_info_extra tmp_pie;
|
||||
|
||||
tmp_attr = *pi->attr;
|
||||
tmp_attr.aspath = attr.aspath;
|
||||
|
||||
prep_for_rmap_apply(&tmp_pi, &tmp_pie, dest, pi,
|
||||
pi->peer, &tmp_attr);
|
||||
@ -842,7 +843,6 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
continue;
|
||||
} else {
|
||||
new_attr = bgp_attr_intern(&tmp_attr);
|
||||
new_attr->aspath = attr.aspath;
|
||||
|
||||
subgroup_announce_reset_nhop(
|
||||
(peer_cap_enhe(peer, afi, safi)
|
||||
|
Loading…
Reference in New Issue
Block a user