summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Candler <b.candler@pobox.com>2020-06-09 21:50:27 +0100
committerGitHub <noreply@github.com>2020-06-09 14:50:27 -0600
commitf083050478adc199648c980991f2bcece79ed31b (patch)
tree08adb81025df86429947a701cd3523da73a76873 /tests
parentc6d09af67626c2f2241c64c10c9e27e8752ba87b (diff)
downloadvyos-cloud-init-f083050478adc199648c980991f2bcece79ed31b.tar.gz
vyos-cloud-init-f083050478adc199648c980991f2bcece79ed31b.zip
Fixes KeyError for bridge with no "parameters:" setting (#423)
Reason: commit ded1ec8 introduced a regression whereby a bridge with no "parameters:" setting caused a KeyError exception. LP: #1879673
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_net.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py
index a56022ef..54cc8469 100644
--- a/tests/unittests/test_net.py
+++ b/tests/unittests/test_net.py
@@ -426,6 +426,11 @@ network:
mtu: 9000
parameters:
gratuitous-arp: 2
+ bond2:
+ interfaces:
+ - ens5
+ macaddress: 68:05:ca:64:d3:6e
+ mtu: 9000
ethernets:
ens3:
dhcp4: false
@@ -437,6 +442,11 @@ network:
dhcp6: false
match:
macaddress: 52:54:00:11:22:ff
+ ens5:
+ dhcp4: false
+ dhcp6: false
+ match:
+ macaddress: 52:54:00:99:11:99
version: 2
"""