Skip to content

Commit aa32678

Browse files
committed
OpenBSD routing/BGP tests for #3305
1 parent 5b600ba commit aa32678

27 files changed

Lines changed: 564 additions & 207 deletions

_html/coverage.bgp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ <h2>
13891389
13901390
</td>
13911391
<td class='center'>
1392-
<a href="../openbsd/libvirt/bgp/14-ipv6-originate.yml-create.log"><span style='color: orange;'>&#x2714;</span></a>
1392+
13931393
</td>
13941394
<td class='center'>
13951395
<a href="../openbsd/libvirt/bgp/16-ipv6-unnumbered.yml-create.log">✖️</a>

_html/coverage.r_static.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ <h2>
648648
<a href="../openbsd/libvirt/routing/24-static-indirect-inter-vrf.yml-create.log">✖️</a>
649649
</td>
650650
<td class='center'>
651-
<a href="../openbsd/libvirt/routing/25-static-discard.yml-create.log">✖️</a>
651+
<a href="../openbsd/libvirt/routing/25-static-discard.yml-create.log"><span style='color: orange;'>&#x2714;</span></a>
652652
</td>
653653
</tr>
654654
<tr>

_html/openbsd-libvirt-bgp.html

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h2>
194194
</a>
195195
</td>
196196

197-
<td>2026-04-05 17:28:01</td>
197+
<td>2026-04-09 10:37:51</td>
198198
<td>netlab/openbsd:7.7</td>
199199
<tr>
200200
<td><a title="Community propagation" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/bgp/05-community.yml">05-community</a></td>
@@ -381,9 +381,6 @@ <h2>
381381
<tr>
382382
<td><a title="IPv6 prefix origination" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/bgp/14-ipv6-originate.yml">14-ipv6-originate</a></td>
383383
<td class='center'>
384-
<a href="../openbsd/libvirt/bgp/14-ipv6-originate.yml-create.log">
385-
<span style='color: orange;'>&#x2714;</span>
386-
</a>
387384
</td>
388385

389386
<td class='center'>
@@ -400,21 +397,12 @@ <h2>
400397

401398
<td class='center'>
402399
<a href="../openbsd/libvirt/bgp/14-ipv6-originate.yml-validate.log">
403-
<span style='color: orange;'>&#x2714;</span>
400+
&#x2705;
404401
</a>
405402
</td>
406403

407-
<td>2026-04-05 17:29:01</td>
404+
<td>2026-04-09 10:38:54</td>
408405
<td>netlab/openbsd:7.7</td>
409-
</tr>
410-
<tr>
411-
<td colspan='5' class='caveat'>
412-
<ul>
413-
<li>adjust_test: The BGP configuration template for openbsd does not support IPv6 prefixes in bgp.originate attribute</li>
414-
<li>The BGP configuration template for openbsd does not support IPv6 prefixes in bgp.originate attribute</li>
415-
</ul>
416-
</td>
417-
</tr>
418406
<tr>
419407
<td><a title="IPv6 EBGP over LLA" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/bgp/16-ipv6-unnumbered.yml">16-ipv6-unnumbered</a></td>
420408
<td class='center'>

_html/openbsd-libvirt-routing.html

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ <h2>
366366
</a>
367367
</td>
368368

369-
<td>2026-02-22 11:14:28</td>
369+
<td>2026-04-09 10:24:15</td>
370370
<td>netlab/openbsd:7.7</td>
371371
<tr>
372372
<td><a title="" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/routing/21-static-vrf.yml">21-static-vrf</a></td>
@@ -385,7 +385,7 @@ <h2>
385385
<td class='center'>
386386
</td>
387387

388-
<td>2026-02-22 11:14:33</td>
388+
<td>2026-04-09 10:24:20</td>
389389
<td></td>
390390
<tr>
391391
<td><a title="" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/routing/22-static-inter-vrf.yml">22-static-inter-vrf</a></td>
@@ -404,7 +404,7 @@ <h2>
404404
<td class='center'>
405405
</td>
406406

407-
<td>2026-02-22 11:14:33</td>
407+
<td>2026-04-09 10:24:20</td>
408408
<td></td>
409409
<tr>
410410
<td><a title="" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/routing/23-static-indirect.yml">23-static-indirect</a></td>
@@ -423,7 +423,7 @@ <h2>
423423
<td class='center'>
424424
</td>
425425

426-
<td>2026-02-22 11:14:34</td>
426+
<td>2026-04-09 10:24:20</td>
427427
<td></td>
428428
<tr>
429429
<td><a title="" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/routing/24-static-indirect-inter-vrf.yml">24-static-indirect-inter-vrf</a></td>
@@ -442,27 +442,45 @@ <h2>
442442
<td class='center'>
443443
</td>
444444

445-
<td>2026-02-22 11:14:34</td>
445+
<td>2026-04-09 10:24:21</td>
446446
<td></td>
447447
<tr>
448448
<td><a title="" href="https://github.com/ipspace/netlab/blob/dev/tests/integration/routing/25-static-discard.yml">25-static-discard</a></td>
449449
<td class='center'>
450450
<a href="../openbsd/libvirt/routing/25-static-discard.yml-create.log">
451-
&#x274C;
451+
<span style='color: orange;'>&#x2714;</span>
452452
</a>
453453
</td>
454454

455455
<td class='center'>
456+
<a href="../openbsd/libvirt/routing/25-static-discard.yml-up.log">
457+
&#x2705;
458+
</a>
456459
</td>
457460

458461
<td class='center'>
462+
<a href="../openbsd/libvirt/routing/25-static-discard.yml-initial.log">
463+
&#x2705;
464+
</a>
459465
</td>
460466

461467
<td class='center'>
468+
<a href="../openbsd/libvirt/routing/25-static-discard.yml-validate.log">
469+
<span style='color: orange;'>&#x2714;</span>
470+
</a>
462471
</td>
463472

464-
<td>2026-02-22 11:14:35</td>
465-
<td></td>
473+
<td>2026-04-09 10:25:07</td>
474+
<td>netlab/openbsd:7.7</td>
475+
</tr>
476+
<tr>
477+
<td colspan='5' class='caveat'>
478+
<ul>
479+
<li>vrf_check: Device openbsd/dut does not support VRFs</li>
480+
<li>Device openbsd does support VRFs, skipping VRF-specific tests</li>
481+
</ul>
482+
</td>
483+
</tr>
466484
</table>
467485
<p><b>Notes:</b></p>
468486
<ul>

_html/openbsd-libvirt.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2>
100100
<td class="center"> &#x2705;
101101
</td>
102102

103-
<td class="center"> <span style='color: orange;'>&#x2714;</span>
103+
<td class="center"> &#x2705;
104104
</td>
105105

106106
</tr>
@@ -162,15 +162,15 @@ <h2>
162162
</tr>
163163
<tr>
164164
<td><a href="openbsd-libvirt-routing.html">routing</a></td>
165-
<td class="center">18 not supported</td>
165+
<td class="center">17 not supported</td>
166166

167167
<td class="center"> &#x2705;
168168
</td>
169169

170170
<td class="center"> &#x2705;
171171
</td>
172172

173-
<td class="center"> &#x2705;
173+
<td class="center"> <span style='color: orange;'>&#x2714;</span>
174174
</td>
175175

176176
</tr>

_html/openbsd.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h3>Provider: libvirt</h3>
9292
<td class="center"> &#x2705;
9393
</td>
9494

95-
<td class="center"> <span style='color: orange;'>&#x2714;</span>
95+
<td class="center"> &#x2705;
9696
</td>
9797

9898
</tr>
@@ -154,15 +154,15 @@ <h3>Provider: libvirt</h3>
154154
</tr>
155155
<tr>
156156
<td><a href="openbsd-libvirt-routing.html">routing</a></td>
157-
<td class="center">18 not supported</td>
157+
<td class="center">17 not supported</td>
158158

159159
<td class="center"> &#x2705;
160160
</td>
161161

162162
<td class="center"> &#x2705;
163163
</td>
164164

165-
<td class="center"> &#x2705;
165+
<td class="center"> <span style='color: orange;'>&#x2714;</span>
166166
</td>
167167

168168
</tr>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ <h2 id="device">
348348
</tr>
349349
<tr>
350350
<td><a href="_html/openbsd.html">openbsd</a></td>
351-
<td class='right'>41</td>
352-
<td class='right'>58</td>
351+
<td class='right'>42</td>
352+
<td class='right'>57</td>
353353
<td class='right'></td>
354354
<td class='right'></td>
355355
<td class='right'></td>
@@ -428,7 +428,7 @@ <h2 id="coverage">
428428
</tr>
429429
<tr>
430430
<td><a href='_html/coverage.bgp.html'>BGP</a></td>
431-
<td class='center'>378</td>
431+
<td class='center'>379</td>
432432
<td class='center'>5</td>
433433
<td class='center'></td>
434434
<td class='center'></td>

openbsd/libvirt/bgp/04-originate.yml-create.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[CONFIG] dut: initial,ospf,bgp
1+
[CONFIG] dut: initial,routing,ospf,bgp
22
[CONFIG] dut2: initial,bgp
33
[CONFIG] x1: initial,bgp,daemons,hosts
44
[CONFIG] x2: initial,bgp,daemons,hosts (shared)

openbsd/libvirt/bgp/04-originate.yml-initial.log

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Creating Device configuration snippets
2-
[CREATED] dut: initial,ospf,bgp
2+
[CREATED] dut: initial,routing,ospf,bgp
33
[CREATED] dut2: initial,bgp
44
[CREATED] x1: initial,bgp
55
[CREATED] x2: initial,bgp
@@ -23,7 +23,7 @@ ok: [dut]
2323
ok: [dut2]
2424

2525
TASK [Normalize config on bridge-like devices] *********************************
26-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, dut2
26+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, dut2
2727

2828
TASK [Figure out whether to deploy the module normalize on current device] *****
2929
ok: [dut]
@@ -50,7 +50,7 @@ skipping: [dut]
5050
skipping: [dut2]
5151

5252
TASK [Deploy initial configuration] ********************************************
53-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, dut2
53+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, dut2
5454

5555
TASK [Figure out whether to deploy the module initial on current device] *******
5656
ok: [dut]
@@ -77,11 +77,11 @@ ok: [dut2] => {
7777
}
7878

7979
TASK [Deploy initial configuration] ********************************************
80-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/openbsd.yml for dut, dut2
80+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut, dut2
8181

8282
TASK [template] ****************************************************************
83-
changed: [dut]
8483
changed: [dut2]
84+
changed: [dut]
8585

8686
TASK [Execute /tmp/config.sh to deploy initial config from /work/netlab_cicd/node_files/dut/initial] ***
8787
changed: [dut2]
@@ -94,8 +94,41 @@ ok: [dut]
9494
ok: [dut2]
9595

9696
TASK [Deploy individual configuration modules] *********************************
97-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, dut2 => (item=ospf)
98-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-module.yml for dut, dut2 => (item=bgp)
97+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, dut2 => (item=routing)
98+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, dut2 => (item=ospf)
99+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, dut2 => (item=bgp)
100+
101+
TASK [Figure out whether to deploy the module routing on current device] *******
102+
ok: [dut]
103+
ok: [dut2]
104+
105+
TASK [Find configuration template for routing] *********************************
106+
skipping: [dut2]
107+
ok: [dut]
108+
109+
TASK [fail] ********************************************************************
110+
skipping: [dut]
111+
skipping: [dut2]
112+
113+
TASK [Find configuration deployment deploy_script for routing] *****************
114+
skipping: [dut2]
115+
ok: [dut]
116+
117+
TASK [Print deployed configuration when running in verbose mode] ***************
118+
skipping: [dut2]
119+
ok: [dut] => {
120+
"msg": "routing configuration for dut\n=========================================\n#!/bin/bash\n#\nset -e\nset -x\n#\n#\n#\n#\necho Adding discard static routes\nroute delete 172.42.42.0/24 || true\nroute add -blackhole 172.42.42.0/24 127.0.0.1\n"
121+
}
122+
123+
TASK [Deploy routing configuration] ********************************************
124+
skipping: [dut2]
125+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut
126+
127+
TASK [template] ****************************************************************
128+
changed: [dut]
129+
130+
TASK [Execute /tmp/config.sh to deploy routing config from /work/netlab_cicd/node_files/dut/routing] ***
131+
changed: [dut]
99132

100133
TASK [Figure out whether to deploy the module ospf on current device] **********
101134
ok: [dut]
@@ -116,12 +149,12 @@ ok: [dut]
116149
TASK [Print deployed configuration when running in verbose mode] ***************
117150
skipping: [dut2]
118151
ok: [dut] => {
119-
"msg": "ospf configuration for dut\n=========================================\n#!/bin/sh\ncat <<'OSPFD_CONF' >/etc/ospfd.conf\nrouter-id 10.0.0.1\nspf-delay msec 100\nspf-holdtime msec 200\n\narea 0.0.0.0 {\n interface lo0:10.0.0.1 {\n }\n interface vio1 {\n type p2p\n }\n interface vio5 {\n passive\n }\n}\n \nOSPFD_CONF\n\nchmod 640 /etc/ospfd.conf\nrcctl enable ospfd\nrcctl restart ospfd\n\n"
152+
"msg": "ospf configuration for dut\n=========================================\n#!/bin/sh\ncat <<'OSPFD_CONF' >/etc/ospfd.conf\nrouter-id 10.0.0.1\nspf-delay msec 100\nspf-holdtime msec 200\n\narea 0.0.0.0 {\n interface lo0:10.0.0.1 {\n }\n interface vio1 {\n type p2p\n hello-interval 1\n router-dead-time 3\n }\n interface vio5 {\n passive\n hello-interval 1\n router-dead-time 3\n }\n}\n \nOSPFD_CONF\n\nchmod 640 /etc/ospfd.conf\nrcctl enable ospfd\nrcctl restart ospfd\n\n"
120153
}
121154

122155
TASK [Deploy ospf configuration] ***********************************************
123156
skipping: [dut2]
124-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/openbsd.yml for dut
157+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut
125158

126159
TASK [template] ****************************************************************
127160
changed: [dut]
@@ -147,18 +180,18 @@ ok: [dut2]
147180

148181
TASK [Print deployed configuration when running in verbose mode] ***************
149182
ok: [dut] => {
150-
"msg": "bgp configuration for dut\n=========================================\n#!/bin/sh\n\ncat <<BGPD_CONF >/etc/bgpd.conf\nAS 65000\nrouter-id 10.0.0.1\nlog updates\n\n## network announcements\n\nnetwork 172.42.43.0/24\nnetwork 172.42.42.0/24\nnetwork 172.0.42.0/24\n\n## neighbors and groups\n\nneighbor 10.0.0.5 {\n remote-as 65000\n descr \"r1\"\n local-address 10.0.0.1\n}\nneighbor 10.1.0.6 {\n remote-as 65100\n descr \"x1\"\n}\nneighbor 10.1.0.10 {\n remote-as 65101\n descr \"x2\"\n}\nneighbor 172.0.66.2 {\n remote-as 65001\n descr \"dut2\"\n}\n\n## rules\n\nmatch from ebgp set { nexthop self }\nmatch to ebgp set { ext-community delete * * }\n\nallow from any\nallow to any\n\nBGPD_CONF\n\nchmod 640 /etc/bgpd.conf\nrcctl enable bgpd\nrcctl restart bgpd\n\nroute add -blackhole 172.42.42.0/24 -priority 63 localhost\n"
183+
"msg": "bgp configuration for dut\n=========================================\n#!/bin/sh\n\ncat <<BGPD_CONF >/etc/bgpd.conf\nAS 65000\nrouter-id 10.0.0.1\nlog updates\n\n## network announcements\n\nnetwork 172.42.43.0/24\nnetwork 172.42.42.0/24\nnetwork 172.0.42.0/24\n\n## neighbors and groups\n\nneighbor 10.0.0.5 {\n remote-as 65000\n descr \"r1\"\n local-address 10.0.0.1\n}\nneighbor 10.1.0.6 {\n remote-as 65100\n descr \"x1\"\n}\nneighbor 10.1.0.10 {\n remote-as 65101\n descr \"x2\"\n}\nneighbor 172.0.66.2 {\n remote-as 65001\n descr \"dut2\"\n}\n\n## rules\n\nmatch from ebgp set { nexthop self }\nmatch to ebgp set { ext-community delete * * }\n\nallow from any\nallow to any\n\nBGPD_CONF\n\nchmod 640 /etc/bgpd.conf\nrcctl enable bgpd\nrcctl restart bgpd\n\n"
151184
}
152185
ok: [dut2] => {
153186
"msg": "bgp configuration for dut2\n=========================================\n#!/bin/sh\n\ncat <<BGPD_CONF >/etc/bgpd.conf\nAS 65001\nrouter-id 10.0.0.2\nlog updates\n\n## network announcements\n\nnetwork 10.0.0.2/32\n\n## neighbors and groups\n\nneighbor 172.0.66.1 {\n remote-as 65000\n descr \"dut\"\n}\n\n## rules\n\nmatch from ebgp set { nexthop self }\nmatch to ebgp set { ext-community delete * * }\n\nallow from any\nallow to any\n\nBGPD_CONF\n\nchmod 640 /etc/bgpd.conf\nrcctl enable bgpd\nrcctl restart bgpd\n\n"
154187
}
155188

156189
TASK [Deploy bgp configuration] ************************************************
157-
included: /home/pipi/netlab_gh/netsim/ansible/tasks/deploy-config/openbsd.yml for dut, dut2
190+
included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/openbsd.yml for dut, dut2
158191

159192
TASK [template] ****************************************************************
160-
changed: [dut]
161193
changed: [dut2]
194+
changed: [dut]
162195

163196
TASK [Execute /tmp/config.sh to deploy bgp config from /work/netlab_cicd/node_files/dut/bgp] ***
164197
changed: [dut]
@@ -168,8 +201,8 @@ PLAY [Deploy custom deployment templates] **************************************
168201
skipping: no hosts matched
169202

170203
PLAY RECAP *********************************************************************
171-
dut : ok=30 changed=6 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0
172-
dut2 : ok=24 changed=4 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0
204+
dut : ok=38 changed=8 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0
205+
dut2 : ok=26 changed=4 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0
173206

174207
Results of configuration script deployments
175208
================================================================================

0 commit comments

Comments
 (0)