]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filter: the test conf checks also a bit of BGP args
authorJan Maria Matejka <mq@ucw.cz>
Tue, 6 Mar 2018 15:04:56 +0000 (16:04 +0100)
committerJan Maria Matejka <mq@ucw.cz>
Thu, 8 Mar 2018 11:57:39 +0000 (12:57 +0100)
Uncommented an old test.

filter/test.conf2

index 8355495201c77b270809a6eec79ea4dce901721d..485150200c5cef64e9f8892f62b9983971ce9a64 100644 (file)
@@ -55,21 +55,20 @@ protocol static {
                        rip_metric = rip_metric + 5;
                        print rip_metric;
 
-#
-# TODO: uncomment this part after finishing BGP integration version
-#
-#                      bgp_community = -empty-;
-#                      print "hi";
-#                      bgp_community = add(bgp_community, (1,2));
-#                      print "hello";
-#                      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";
+                       bgp_community = -empty-;
+                       print "hi";
+                       bgp_community = add(bgp_community, (1,2));
+                       print "hello";
+                       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";
+
+                       accept;
                };
        };
        route 0.0.0.0/0 via 195.113.31.113;