summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2018-09-10 14:29:20 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2018-09-10 14:29:20 +0000
commit73e3420e9927a8bf21cd307f9c7215b79e50da9e (patch)
tree1f06a61b4e904de2e5bfd1efd1512853aa0a4b45 /regress
parent9309adfa86a3da3a207cc2a7f8090641820d0c20 (diff)
test all variations of network statements
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.sbin/bgpd/config/bgpd.conf.8.in20
-rw-r--r--regress/usr.sbin/bgpd/config/bgpd.conf.8.ok18
2 files changed, 35 insertions, 3 deletions
diff --git a/regress/usr.sbin/bgpd/config/bgpd.conf.8.in b/regress/usr.sbin/bgpd/config/bgpd.conf.8.in
index da73b5a65cd..d24e66a61ad 100644
--- a/regress/usr.sbin/bgpd/config/bgpd.conf.8.in
+++ b/regress/usr.sbin/bgpd/config/bgpd.conf.8.in
@@ -1,12 +1,28 @@
-# $OpenBSD: bgpd.conf.8.in,v 1.1 2018/09/10 14:20:25 benno Exp $
+# $OpenBSD: bgpd.conf.8.in,v 1.2 2018/09/10 14:29:19 benno Exp $
# test network prefix-set
AS 64512
prefix-set mynetworks {
192.0.2.0/24
- 2001:db8:abcd::/48
+ 2001:db8:abcd::/56
}
network prefix-set mynetworks
network prefix-set mynetworks set { community 64512:3000 }
+network 10.10.10.0/25
+network 10.10.10.128/25 set { community 64512:3001 }
+network 2001:db8:cafe::/56
+network 2001:db8:f00d::/56 set { community 64512:3002 }
+network inet static
+network inet static set { community 64512:3003 }
+network inet6 static
+network inet6 static set { community 64512:3004 }
+network inet connected
+network inet connected set { community 64512:3005 }
+network inet6 connected
+network inet6 connected set { community 64512:3006 }
+network inet rtlabel LABEL
+network inet rtlabel LABEL set { community 64512:3007 }
+network inet6 rtlabel LABEL6
+network inet6 rtlabel LABEL6 set { community 64512:3008 }
diff --git a/regress/usr.sbin/bgpd/config/bgpd.conf.8.ok b/regress/usr.sbin/bgpd/config/bgpd.conf.8.ok
index 8885413c06e..455656c0afa 100644
--- a/regress/usr.sbin/bgpd/config/bgpd.conf.8.ok
+++ b/regress/usr.sbin/bgpd/config/bgpd.conf.8.ok
@@ -5,11 +5,27 @@ holdtime min 3
fib-priority 48
prefix-set "mynetworks" {
- 192.0.2.0/24, 2001:db8:abcd::/48
+ 192.0.2.0/24, 2001:db8:abcd::/56
}
network prefix-set mynetworks
network prefix-set mynetworks set { community 64512:3000 }
+network 10.10.10.0/25
+network 10.10.10.128/25 set { community 64512:3001 }
+network 2001:db8:cafe::/56
+network 2001:db8:f00d::/56 set { community 64512:3002 }
+network inet static
+network inet static set { community 64512:3003 }
+network inet6 static
+network inet6 static set { community 64512:3004 }
+network inet connected
+network inet connected set { community 64512:3005 }
+network inet6 connected
+network inet6 connected set { community 64512:3006 }
+network inet rtlabel "LABEL"
+network inet rtlabel "LABEL" set { community 64512:3007 }
+network inet6 rtlabel "LABEL6"
+network inet6 rtlabel "LABEL6" set { community 64512:3008 }
rde rib Adj-RIB-In no evaluate
rde rib Adj-RIB-Out no evaluate