This commit is contained in:
2025-11-26 21:19:29 +08:00
parent ab6840b60a
commit 95a3532da2
5 changed files with 15 additions and 10 deletions

View File

@@ -43,4 +43,4 @@ protocol kernel {
};
include "/etc/bird/net/*.conf";
include "/etc/bird/template/*.conf";
include "/etc/bird/template/include.conf";

View File

@@ -0,0 +1,7 @@
include "/etc/bird/template/inet.conf";
include "/etc/bird/template/inet_ixp.conf";
include "/etc/bird/peers/inet/*";
include "/etc/bird/template/unet.conf";
include "/etc/bird/peers/unet/*.conf";

View File

@@ -91,5 +91,3 @@ template bgp tpl_inet6_ibgp {
};
};
}
include "/etc/bird/peers/inet/*";

View File

@@ -102,5 +102,3 @@ template bgp unet_ibgp {
};
};
}
include "/etc/bird/peers/unet/*.conf";

View File

@@ -2,10 +2,12 @@
cd
git clone https://git.nia.ink/brnet/bird_config.git
mv bird_config/bird/conf/inet_func.conf /etc/bird/conf/
mv bird_config/bird/conf/inet_ixp.conf /etc/bird/conf/
mv bird_config/bird/template/inet_ixp.conf /etc/bird/template
mv bird_config/bird/function/unet.conf /etc/bird/function
rm -rf /etc/bird/bird.conf
mv bird_config/bird/bird.conf /etc/bird
rm -rf /etc/bird/template
mv bird_config/bird/template /etc/bird
chmod -R 755 /etc/bird