Adjust open policy integration test to the change of config in bgpd.
authorclaudio <claudio@openbsd.org>
Wed, 4 Jan 2023 14:34:50 +0000 (14:34 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 4 Jan 2023 14:34:50 +0000 (14:34 +0000)
regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf
regress/usr.sbin/bgpd/integrationtests/bgpd.op.master.conf
regress/usr.sbin/bgpd/integrationtests/policy.sh

index 35a6b31..1e1d4d3 100644 (file)
@@ -13,7 +13,8 @@ neighbor 10.12.57.254 {
        local-address   $IP
        descr           "MASTER"
 
-       announce policy $POLICY
+       announce policy yes
+       role $POLICY
 }
 
 allow from any
index 2158e4c..0cb46a9 100644 (file)
@@ -11,23 +11,28 @@ group TEST {
 
        neighbor 10.12.57.1 {
                descr           "PEER1"
-               announce policy peer enforce
+               announce policy enforce
+               role peer
        }
        neighbor 10.12.57.2 {
                descr           "PEER2"
-               announce policy rs enforce
+               announce policy enforce
+               role rs
        }
        neighbor 10.12.57.3 {
                descr           "PEER3"
-               announce policy rs-client enforce
+               announce policy enforce
+               role rs-client
        }
        neighbor 10.12.57.4 {
                descr           "PEER4"
-               announce policy provider enforce
+               announce policy enforce
+               role provider
        }
        neighbor 10.12.57.5 {
                descr           "PEER5"
-               announce policy customer enforce
+               announce policy enforce
+               role customer
        }
 }
 
index 0b6d992..17f3240 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/ksh
-#      $OpenBSD: policy.sh,v 1.1 2022/06/27 13:29:40 claudio Exp $
+#      $OpenBSD: policy.sh,v 1.2 2023/01/04 14:34:50 claudio Exp $
 
 set -e
 
@@ -107,7 +107,7 @@ ifconfig lo${RDOMAIN2} inet 127.0.0.1/8
 
 echo test1: no policy
 test_bgpd "Last error sent: error in OPEN message, role mismatch" \
-    "no" "no" "no" "no" "no"
+    "none" "none" "none" "none" "none"
 
 echo test2: wrong policy
 test_bgpd "Last error sent: error in OPEN message, role mismatch" \