Fix:add dn42 and change config
This commit is contained in:
14
bird/function/dn42.conf
Normal file
14
bird/function/dn42.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
define DN42_PREFIXES_V4 = [
|
||||
172.20.0.0/14+
|
||||
];
|
||||
define DN42_PREFIXES_V6 = [
|
||||
fd00::/8+
|
||||
];
|
||||
|
||||
function is_dn42_prefix() {
|
||||
case net.type {
|
||||
NET_IP4: return net ~ DN42_PREFIXES_V4;
|
||||
NET_IP6: return net ~ DN42_PREFIXES_V6;
|
||||
else: print "is_dn42_prefix: unexpected net.type ", net.type, " ", net; return false;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
ipv4 table inet4;
|
||||
ipv6 table inet6;
|
||||
ipv4 table ospf4;
|
||||
ipv6 table ospf6;
|
||||
ipv4 table dn42v4;
|
||||
ipv6 table dn42v6;
|
||||
ipv4 table unet4;
|
||||
ipv6 table unet6;
|
||||
ipv6 table unet6;
|
||||
ipv4 table ospf4;
|
||||
ipv6 table ospf6;
|
||||
@@ -10,7 +10,7 @@ function unet_is_valid_network_v4() {
|
||||
function unet_is_valid_network_v4_anynet() {
|
||||
return net ~ [
|
||||
44.32.191.0/24+,
|
||||
172.20.0.0/14+
|
||||
172.20.21.0/26+
|
||||
];
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ function unet_is_valid_network_v4_allnet(){
|
||||
function unet_is_voalid_net_v6(){
|
||||
return net ~ [
|
||||
2406:840:e600::/44{44,64},
|
||||
2a0f:1cc5:0010::/44{44,64}
|
||||
2a0f:1cc5:0010::/44{44,64},
|
||||
fde8:936e:ee29::/48{44,64}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user