Files
bird_config/bird/template/dn42.conf
2026-05-23 17:35:37 +08:00

45 lines
1.2 KiB
Plaintext

template bgp dn42_up0_new {
graceful restart;
local as DN42_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; };
};
}
template bgp dn42_up1_new {
graceful restart;
local as DN42_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; };
};
}
template bgp dn42_ibgp_new {
graceful restart;
local as DN42_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; };
};
}
template bgp dn42_ibgp_mp_new {
graceful restart;
local as DN42_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; };
};
}