mirror of
https://github.com/quantum5/bird-filter.git
synced 2025-04-24 09:01:57 -04:00
Point to the correct ASN
This commit is contained in:
parent
bce626dbe4
commit
aa8fbea74b
|
@ -231,15 +231,15 @@ function import_downstream(int downstream_asn; prefix set prefixes; int set as_s
|
|||
}
|
||||
|
||||
# If they don't want to export this to us, then we won't take it at all.
|
||||
if (QUANTUM_ASN, LC_NO_EXPORT, QUANTUM_ASN) ~ bgp_large_community then return false;
|
||||
if (MY_ASN, LC_NO_EXPORT, MY_ASN) ~ bgp_large_community then return false;
|
||||
|
||||
bgp_large_community.delete([
|
||||
(QUANTUM_ASN, 0..LC_DOWNSTREAM_START-1, *),
|
||||
(QUANTUM_ASN, LC_DOWNSTREAM_END+1..0xFFFFFFFF, *)
|
||||
(MY_ASN, 0..LC_DOWNSTREAM_START-1, *),
|
||||
(MY_ASN, LC_DOWNSTREAM_END+1..0xFFFFFFFF, *)
|
||||
]);
|
||||
|
||||
bgp_large_community.add((QUANTUM_ASN, LC_INFO, INFO_DOWNSTREAM));
|
||||
bgp_large_community.add((QUANTUM_ASN, LC_PEER_ASN, downstream_asn));
|
||||
bgp_large_community.add((MY_ASN, LC_INFO, INFO_DOWNSTREAM));
|
||||
bgp_large_community.add((MY_ASN, LC_PEER_ASN, downstream_asn));
|
||||
|
||||
return import_safe(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue