]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
filter/test.conf: fixes formating
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Thu, 30 Jun 2016 13:00:47 +0000 (15:00 +0200)
committerPavel Tvrdik <pawel.tvrdik@gmail.com>
Thu, 30 Jun 2016 13:00:47 +0000 (15:00 +0200)
filter/test.conf

index c3f74d94dc233414fc32cffc9f51ba613d1820b9..5cafe5519251ae27b1dcd33ed395c5c930a17c79 100644 (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);