Commit 562cf57
committed
host_no_sdn_controller: do not fail, but reconfigure the host.
when a 'no-sdn-controller' host is required (for test_vif_allowed_ip.py for example),
do not fail if sdn-controller is active, but disable it for the test (and restore it after).
we get the sdn-controller configuration to reapply it after the test, and reconfigure the ovs bridges to accept
both OpenFlow10 and OpenFlow11 versions. OpenFlow11 is usual used for sdn-controller (xapi-plugin) and OpenFlow10
for allowed-ip (see xen-api ocaml/xenopsd/scripts/setup-vif-rules).
Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>1 parent a8d96b6 commit 562cf57
1 file changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
20 | 42 | | |
21 | 43 | | |
22 | 44 | | |
| |||
0 commit comments