summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-05 16:38:36 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-05 16:38:36 -0700
commitf5a1662e4a2cbbdee0766276fd516a25306545d6 (patch)
tree2ba51695c9ca89c33dccea4ff6b3f4962a0b3636 /tests
parenta2249942522d140a063acdc007aced991d4f0588 (diff)
downloadvyos-cloud-init-f5a1662e4a2cbbdee0766276fd516a25306545d6.tar.gz
vyos-cloud-init-f5a1662e4a2cbbdee0766276fd516a25306545d6.zip
Get this test of net json -> net config working
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_datasource/test_configdrive.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_configdrive.py b/tests/unittests/test_datasource/test_configdrive.py
index 06fba202..8beaf95e 100644
--- a/tests/unittests/test_datasource/test_configdrive.py
+++ b/tests/unittests/test_datasource/test_configdrive.py
@@ -441,7 +441,25 @@ class TestNetJson(TestCase):
'config': [
{
'name': 'tap1a81968a-79',
-
+ 'mac_address': 'fa:16:3e:ed:9a:59',
+ 'mtu': None,
+ 'type': 'bridge',
+ 'subnets': [
+ {
+ 'address': '172.19.1.34',
+ 'netmask': '255.255.252.0',
+ 'type': 'static',
+ 'routes': [{
+ 'gateway': '172.19.3.254',
+ 'netmask': '0.0.0.0',
+ 'network': '0.0.0.0',
+ }],
+ }
+ ]
+ },
+ {
+ 'type': 'nameserver',
+ 'address': '172.19.0.12',
}
],
},