update ibgp
This commit is contained in:
@@ -31,53 +31,4 @@ template bgp tpl_inet6_up {
|
|||||||
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
||||||
export filter {if !function_inet_bgp_export_to_upstream0() 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; };
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
37
bird/template/inet_ibgp.conf
Normal file
37
bird/template/inet_ibgp.conf
Normal 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; };
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user