filter/test.conf: fixes formating

This commit is contained in:
Pavel Tvrdik 2016-06-30 15:00:47 +02:00
parent 044e123fd3
commit 5de0e848de

View file

@ -217,24 +217,27 @@ define onetwo=1.2.3.4;
function __test1()
{
if source ~ [ RTS_BGP, RTS_STATIC ] then {
# ospf_metric1 = 65535;
# ospf_metric2 = 1000;
ospf_tag = 0x12345678;
accept;
} reject;
if source ~ [ RTS_BGP, RTS_STATIC ] then {
# ospf_metric1 = 65535;
# ospf_metric2 = 1000;
ospf_tag = 0x12345678;
accept;
}
reject;
}
function __test2()
{
if source ~ [ RTS_BGP, RTS_STATIC ] then {
# ospf_metric1 = 65535;
# ospf_metric2 = 1000;
ospf_tag = 0x12345678;
accept;
} reject;
if source ~ [ RTS_BGP, RTS_STATIC ] then {
# ospf_metric1 = 65535;
# ospf_metric2 = 1000;
ospf_tag = 0x12345678;
accept;
}
reject;
}
function test_pxset(prefix set pxs)
{
print pxs;
@ -367,7 +370,7 @@ string st;
b = true;
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; }
ips = [ 1.1.1.0 .. 1.1.1.255, ip1222];
@ -425,7 +428,7 @@ int j;
j = 7;
j = 17;
if rip_metric > 15 then {
reject "RIP Metric is more than infinity";
reject "RIP Metric is more than infinity";
}
rip_metric = 14;
unset(rip_metric);