update ibgp

This commit is contained in:
2026-04-18 18:26:52 +08:00
parent 0850e27324
commit 3eef762ede
2 changed files with 37 additions and 49 deletions

View File

@@ -31,53 +31,4 @@ template bgp tpl_inet6_up {
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
};
}
template bgp tpl_inet_ibgp {
graceful restart;
local as LOCAL_ASN;
med metric;
direct;
ipv4 {
table inet4;
next hop self;
gateway direct;
import filter {if !function_inet4_ibgp_import() then reject; accept; };
export filter {if !function_inet4_ibgp_export() then reject; accept; };
};
ipv6 {
table inet6;
next hop self;
gateway direct;
import filter {if !function_inet6_ibgp_import() then reject; accept; };
export filter {if !function_inet6_ibgp_export() then reject; accept; };
};
}
template bgp tpl_inet4_ibgp {
graceful restart;
local as LOCAL_ASN;
med metric;
direct;
ipv4 {
table inet4;
next hop self;
gateway direct;
import filter {if !function_inet4_ibgp_import() then reject; accept; };
export filter {if !function_inet4_ibgp_export() then reject; accept; };
};
}
template bgp tpl_inet6_ibgp {
graceful restart;
local as LOCAL_ASN;
med metric;
direct;
ipv6 {
table inet6;
next hop self;
gateway direct;
import filter {if !function_inet6_ibgp_import() then reject; accept; };
export filter {if !function_inet6_ibgp_export() then reject; accept; };
};
}

View File

@@ -0,0 +1,37 @@
template bgp tpl_inet_ibgp {
graceful restart;
local as LOCAL_ASN;
med metric;
direct;
ipv4 {
table inet4;
next hop self;
gateway direct;
import filter {if !function_inet4_ibgp_import() then reject; accept; };
export filter {if !function_inet4_ibgp_export() then reject; accept; };
};
ipv6 {
table inet6;
next hop self;
gateway direct;
import filter {if !function_inet6_ibgp_import() then reject; accept; };
export filter {if !function_inet6_ibgp_export() then reject; accept; };
};
}
template bgp tpl_inet_ibgp_local_mp {
graceful restart;
local as LOCAL_ASN;
med metric;
ipv4 {
table inet4;
import filter { if !function_inet4_ibgp_import() then reject; accept; };
export filter { if !function_inet4_ibgp_export() then reject; accept; };
};
ipv6 {
table inet6;
import filter { if !function_inet6_ibgp_import() then reject; accept; };
export filter { if !function_inet6_ibgp_export() then reject; accept; };
};
}