summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2017-05-13 16:15:37 +0100
committerScott Moser <smoser@ubuntu.com>2017-05-19 17:10:01 -0400
commitd059d480c3a5bbeb3bb2e8ff2350f85d64721c11 (patch)
tree8d4ad76d6d1397afdb53a6177271f37182b8e045 /tests
parentd91f03177c264e1c889a31f078a6915b7cb75291 (diff)
downloadvyos-cloud-init-d059d480c3a5bbeb3bb2e8ff2350f85d64721c11.tar.gz
vyos-cloud-init-d059d480c3a5bbeb3bb2e8ff2350f85d64721c11.zip
netplan: pass macaddress, when specified, for vlans
When vlan mac address is specified in config, render it for netplan and for ENI. LP: #1690388
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_net.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py
index d36d0e76..68a0157a 100644
--- a/tests/unittests/test_net.py
+++ b/tests/unittests/test_net.py
@@ -558,6 +558,7 @@ iface eth0.101 inet static
dns-nameservers 192.168.0.10 10.23.23.134
dns-search barley.maas sacchromyces.maas brettanomyces.maas
gateway 192.168.0.1
+ hwaddress aa:bb:cc:dd:ee:11
mtu 1500
vlan-raw-device eth0
vlan_id 101
@@ -680,6 +681,7 @@ pre-down route del -net 10.0.0.0 netmask 255.0.0.0 gw 11.0.0.1 metric 3 || true
gateway4: 192.168.0.1
id: 101
link: eth0
+ macaddress: aa:bb:cc:dd:ee:11
nameservers:
addresses:
- 192.168.0.10
@@ -723,6 +725,7 @@ pre-down route del -net 10.0.0.0 netmask 255.0.0.0 gw 11.0.0.1 metric 3 || true
name: eth0.101
vlan_link: eth0
vlan_id: 101
+ mac_address: aa:bb:cc:dd:ee:11
mtu: 1500
subnets:
- type: static