diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-03 14:58:51 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-03 14:58:51 -0400 |
commit | f495947a701d5629b6dbfd2ff9e01dad7bd5166b (patch) | |
tree | 9733bebb1d5eaa7fc7a0b825d543aa43a3b0d842 /cloudinit | |
parent | 8a8d7eed2ed5696d58a825ec7301d8424c23ce5e (diff) | |
download | vyos-cloud-init-f495947a701d5629b6dbfd2ff9e01dad7bd5166b.tar.gz vyos-cloud-init-f495947a701d5629b6dbfd2ff9e01dad7bd5166b.zip |
fix issue with routes on subnets not getting rendered
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/net/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py index c72b6ff8..49e9d5c2 100644 --- a/cloudinit/net/__init__.py +++ b/cloudinit/net/__init__.py @@ -574,6 +574,8 @@ def render_interfaces(network_state): content += iface_start_entry(iface, index) content += iface_add_subnet(iface, subnet) content += iface_add_attrs(iface) + for route in subnet.get('routes', []): + content += render_route(route, indent=" ") else: # ifenslave docs say to auto the slave devices if 'bond-master' in iface: |