mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
Test new syntax of add() and delete().
This commit is contained in:
parent
5f532adde2
commit
77f37ae099
22
bird.conf
22
bird.conf
@ -13,6 +13,7 @@ protocol rip MyRIP_test {
|
|||||||
port 1520;
|
port 1520;
|
||||||
period 7;
|
period 7;
|
||||||
garbagetime 60;
|
garbagetime 60;
|
||||||
|
|
||||||
interface "*" { mode broadcast; };
|
interface "*" { mode broadcast; };
|
||||||
honour neighbour;
|
honour neighbour;
|
||||||
# passwords { password "ahoj" from 0 to 10;
|
# passwords { password "ahoj" from 0 to 10;
|
||||||
@ -39,6 +40,27 @@ protocol kernel {
|
|||||||
|
|
||||||
protocol static {
|
protocol static {
|
||||||
# disabled;
|
# disabled;
|
||||||
|
|
||||||
|
import filter { print "ahoj";
|
||||||
|
rip_metric = 1;
|
||||||
|
print rip_metric;
|
||||||
|
rip_metric = rip_metric + 5;
|
||||||
|
print rip_metric;
|
||||||
|
bgp_community = - empty - ;
|
||||||
|
print "nazdar";
|
||||||
|
bgp_community = add(bgp_community, (1,2));
|
||||||
|
print "cau";
|
||||||
|
bgp_community = add(bgp_community, (2,3));
|
||||||
|
bgp_community.add((4,5));
|
||||||
|
print "community = ", bgp_community;
|
||||||
|
bgp_community.delete((2,3));
|
||||||
|
print "community = ", bgp_community;
|
||||||
|
bgp_community.empty;
|
||||||
|
print "community = ", bgp_community;
|
||||||
|
print "done";
|
||||||
|
quitbird;
|
||||||
|
};
|
||||||
|
|
||||||
route 0.0.0.0/0 via 195.113.31.113;
|
route 0.0.0.0/0 via 195.113.31.113;
|
||||||
route 62.168.0.0/25 reject;
|
route 62.168.0.0/25 reject;
|
||||||
route 1.2.3.4/32 via 195.113.31.124;
|
route 1.2.3.4/32 via 195.113.31.124;
|
||||||
|
Loading…
Reference in New Issue
Block a user