save
This commit is contained in:
@@ -6,7 +6,6 @@ template bgp dn42_bgp_up {
|
||||
import filter {
|
||||
if !is_dn42_prefix() then reject;
|
||||
if is_dn42_self_net() then reject;
|
||||
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
@@ -23,7 +22,6 @@ template bgp dn42_bgp_up {
|
||||
import filter {
|
||||
if !is_dn42_prefix() then reject;
|
||||
if is_dn42_self_net() then reject;
|
||||
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
|
||||
67
bird/template/dn42_new.conf
Normal file
67
bird/template/dn42_new.conf
Normal file
@@ -0,0 +1,67 @@
|
||||
template bgp dn42_up0_new {
|
||||
graceful restart;
|
||||
local as LOCAL_ASN;
|
||||
ipv4 {
|
||||
table dn42v4;
|
||||
import filter {if !function_dn42_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_dn42_bgp_export_to_upstream0() then reject; accept; };
|
||||
};
|
||||
ipv6 {
|
||||
table dn42v6;
|
||||
import filter {if !function_dn42_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_dn42_bgp_export_to_upstream0() then reject; accept; };
|
||||
};
|
||||
}
|
||||
|
||||
template bgp dn42_up1_new {
|
||||
graceful restart;
|
||||
local as LOCAL_ASN;
|
||||
ipv4 {
|
||||
table dn42v4;
|
||||
import filter {if !function_dn42_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_dn42_bgp_export_to_upstream1() then reject; accept; };
|
||||
};
|
||||
ipv6 {
|
||||
table dn42v6;
|
||||
import filter {if !function_dn42_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_dn42_bgp_export_to_upstream1() then reject; accept; };
|
||||
};
|
||||
}
|
||||
|
||||
template bgp dn42_ibgp_new {
|
||||
graceful restart;
|
||||
local as LOCAL_ASN;
|
||||
med metric;
|
||||
direct;
|
||||
ipv4 {
|
||||
table dn42v4;
|
||||
next hop self;
|
||||
gateway direct;
|
||||
import filter {if !function_dn42_ibgp_import() then reject; accept; };
|
||||
export filter {if !function_dn42_ibgp_export() then reject; accept; };
|
||||
};
|
||||
ipv6 {
|
||||
table dn42v6;
|
||||
next hop self;
|
||||
gateway direct;
|
||||
import filter {if !function_dn42_ibgp_import() then reject; accept; };
|
||||
export filter {if !function_dn42_ibgp_export() then reject; accept; };
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
template bgp dn42_ibgp_mp_new {
|
||||
graceful restart;
|
||||
local as LOCAL_ASN;
|
||||
med metric;
|
||||
ipv4 {
|
||||
table dn42v4;
|
||||
import filter {if !function_dn42_ibgp_import() then reject; accept; };
|
||||
export filter {if !function_dn42_ibgp_export() then reject; accept; };
|
||||
};
|
||||
ipv6 {
|
||||
table dn42v6;
|
||||
import filter {if !function_dn42_ibgp_import() then reject; accept; };
|
||||
export filter {if !function_dn42_ibgp_export() then reject; accept; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user