summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-03 14:58:51 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-03 14:58:51 -0400
commitf495947a701d5629b6dbfd2ff9e01dad7bd5166b (patch)
tree9733bebb1d5eaa7fc7a0b825d543aa43a3b0d842 /cloudinit
parent8a8d7eed2ed5696d58a825ec7301d8424c23ce5e (diff)
downloadvyos-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__.py2
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: