mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-19 09:38:42 +00:00
filter/test.conf: fixes formating
This commit is contained in:
parent
044e123fd3
commit
5de0e848de
@ -217,24 +217,27 @@ define onetwo=1.2.3.4;
|
|||||||
|
|
||||||
function __test1()
|
function __test1()
|
||||||
{
|
{
|
||||||
if source ~ [ RTS_BGP, RTS_STATIC ] then {
|
if source ~ [ RTS_BGP, RTS_STATIC ] then {
|
||||||
# ospf_metric1 = 65535;
|
# ospf_metric1 = 65535;
|
||||||
# ospf_metric2 = 1000;
|
# ospf_metric2 = 1000;
|
||||||
ospf_tag = 0x12345678;
|
ospf_tag = 0x12345678;
|
||||||
accept;
|
accept;
|
||||||
} reject;
|
}
|
||||||
|
reject;
|
||||||
}
|
}
|
||||||
|
|
||||||
function __test2()
|
function __test2()
|
||||||
{
|
{
|
||||||
if source ~ [ RTS_BGP, RTS_STATIC ] then {
|
if source ~ [ RTS_BGP, RTS_STATIC ] then {
|
||||||
# ospf_metric1 = 65535;
|
# ospf_metric1 = 65535;
|
||||||
# ospf_metric2 = 1000;
|
# ospf_metric2 = 1000;
|
||||||
ospf_tag = 0x12345678;
|
ospf_tag = 0x12345678;
|
||||||
accept;
|
accept;
|
||||||
} reject;
|
}
|
||||||
|
reject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function test_pxset(prefix set pxs)
|
function test_pxset(prefix set pxs)
|
||||||
{
|
{
|
||||||
print pxs;
|
print pxs;
|
||||||
@ -367,7 +370,7 @@ string st;
|
|||||||
b = true;
|
b = true;
|
||||||
print "Testing bool: ", b, ", ", !b;
|
print "Testing bool: ", b, ", ", !b;
|
||||||
|
|
||||||
if ( b = true ) then print "Testing bool comparison b = true: ", b;
|
if ( b = true ) then print "Testing bool comparison b = true: ", b;
|
||||||
else { print "*** FAIL: TRUE test failed" ; quitbird; }
|
else { print "*** FAIL: TRUE test failed" ; quitbird; }
|
||||||
|
|
||||||
ips = [ 1.1.1.0 .. 1.1.1.255, ip1222];
|
ips = [ 1.1.1.0 .. 1.1.1.255, ip1222];
|
||||||
@ -425,7 +428,7 @@ int j;
|
|||||||
j = 7;
|
j = 7;
|
||||||
j = 17;
|
j = 17;
|
||||||
if rip_metric > 15 then {
|
if rip_metric > 15 then {
|
||||||
reject "RIP Metric is more than infinity";
|
reject "RIP Metric is more than infinity";
|
||||||
}
|
}
|
||||||
rip_metric = 14;
|
rip_metric = 14;
|
||||||
unset(rip_metric);
|
unset(rip_metric);
|
||||||
|
Loading…
Reference in New Issue
Block a user