c416b9ac65
https://bugzilla.redhat.com/show_bug.cgi?id=1389530 https://bugs.launchpad.net/cloud-init/+bug/1665441 https://git.launchpad.net/cloud-init/commit/?id=f81d6c7bde2af206d449de593b35773068270c84
18 lines
962 B
Diff
18 lines
962 B
Diff
Index: cloud-init-0.7.9/cloudinit/net/sysconfig.py
|
|
===================================================================
|
|
--- cloud-init-0.7.9.orig/cloudinit/net/sysconfig.py
|
|
+++ cloud-init-0.7.9/cloudinit/net/sysconfig.py
|
|
@@ -282,10 +282,10 @@ class Renderer(renderer.Renderer):
|
|
cls._render_subnet(iface_cfg, route_cfg, iface_subnets[0])
|
|
elif len(iface_subnets) > 1:
|
|
for i, iface_subnet in enumerate(iface_subnets,
|
|
- start=len(iface.children)):
|
|
+ start=len(iface_cfg.children)):
|
|
iface_sub_cfg = iface_cfg.copy()
|
|
iface_sub_cfg.name = "%s:%s" % (iface_name, i)
|
|
- iface.children.append(iface_sub_cfg)
|
|
+ iface_cfg.children.append(iface_sub_cfg)
|
|
cls._render_subnet(iface_sub_cfg, route_cfg, iface_subnet)
|
|
|
|
@classmethod
|