diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-21 11:20:11 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-21 11:20:11 -0400 |
commit | 575c7030e4ff1bd68ca7229f10c482af00620711 (patch) | |
tree | acb99bd342bdc76279ff38f2cceec75196af1de5 /tests/unittests | |
parent | f21f3e262493b9f2f07710e51e7f0247e5132a22 (diff) | |
download | vyos-cloud-init-575c7030e4ff1bd68ca7229f10c482af00620711.tar.gz vyos-cloud-init-575c7030e4ff1bd68ca7229f10c482af00620711.zip |
fix lost per-interface routes, use post-up to bring up interface aliases
Fix the lack of per-interface routes, and add an example to yaml.
in revno 394 in curtin, we added post-up for interface aliases.
bring that commit here.
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_net.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py index ecd21b2b..d50ac440 100644 --- a/tests/unittests/test_net.py +++ b/tests/unittests/test_net.py @@ -168,7 +168,7 @@ version: 1 config: # Physical interfaces. - type: physical - name: eth0 + name: eth99 mac_address: "c0:d6:9f:2c:e8:80" subnets: - type: dhcp4 @@ -178,6 +178,11 @@ config: - 8.8.8.8 - 8.8.4.4 dns_search: barley.maas sach.maas + routes: + - gateway: 65.61.151.37 + netmask: 0.0.0.0 + network: 0.0.0.0 + metric: 2 - type: physical name: eth1 mac_address: "cf:d6:af:48:e8:80" @@ -188,6 +193,7 @@ config: search: - wark.maas """ + NETWORK_YAML_ALL = """ version: 1 config: @@ -520,7 +526,7 @@ class TestEniRoundTrip(TestCase): network_config=yaml.load(NETWORK_YAML_ALL)) raise Exception("FOO2") - def skiptestsimple_render_small(self): + def testsimple_render_small(self): files = self._render_and_read( network_config=yaml.load(NETWORK_YAML_SMALL)) raise Exception("FOO3") |