update community
continuous-integration/drone/push Build is passing Details

This commit is contained in:
186526 2023-03-08 22:00:41 +08:00
parent 1314764325
commit b50552c05b
2 changed files with 8 additions and 2 deletions

View File

@ -62,7 +62,7 @@ function pub_process_communities(int ASN; int PeerType) {
# PEER
if (PeerType<10) then {
if (LOCAL_ASN, 1, 1) ~ bgp_large_community then return false;
if (LOCAL_ASN, 1, 1) ~ bgp_large_community then bgp_community.add((65535, 65281));
# UPSTREAM
} else if (PeerType=10) then {

View File

@ -1,6 +1,8 @@
template bgp pub_transit {
local as LOCAL_ASN;
interpret communities off;
ipv6 {
import where transit_import_filter(6939);
export where transit_export_filter(6939);
@ -9,7 +11,9 @@ template bgp pub_transit {
template bgp pub_peer {
local as LOCAL_ASN;
interpret communities off;
ipv6 {
import where direct_peer_import_filter(6939);
export where direct_peer_export_filter(6939);
@ -19,6 +23,8 @@ template bgp pub_peer {
template bgp pub_downstream {
local as LOCAL_ASN;
interpret communities off;
ipv6 {
import where downstream_import_filter(6939);
export where downstream_export_filter(6939);