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
}
}
#!/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
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" \