SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-net-eni.patch
Robert Schweikert 8e9fedcf49 - update to version 0.7.8 (bsc#998103)
+ added cloud-init-net-eni.patch based on work by eblock
   - Using config-drive instead of metadata failed because the network 
     translation to Ubuntu-style did not return gateway information to
     opensuse.py
 + added cloud-init-service.patch based on work by eblock
   - The service file cloud-init.service referenced networking.service
     which on SUSE is network.service
 + remove no_logic_change.patch included in updated upstream source
 + forward port suseIntegratedHandler.patch
 + forward port setupSUSEsysVInit.diff
 + forward port cloud-init-no-dmidecode-on-ppc64.patch
 + foward port dataSourceOpenNebula.patch
 + forward port fix-default-systemd-unit-dir.patch
 + forward port cloud-init-finalbeforelogin.patch
 + forward port cloud-init-python2-sigpipe.patch
 + SmartOS: more improvements for network configuration
 + add ntp config module [Ryan Harper]
 + ChangeLog: update changelog for previous commit.
 + Add distro tags on config modules that should have it.
 + NoCloud: fix bug providing network-interfaces via meta-data. (LP: 1577982)
 + ConfigDrive: recognize 'tap' as a link type. (LP: #1610784)
 + Upgrade to a configobj package new enough to work
 + MAAS: add vendor-data support (LP: #1612313)
 + DigitalOcean: use the v1.json endpoint [Ben Howard]
 + Get Azure endpoint server from DHCP client [Brent Baude]
 + Apt: add new apt configuration format [Christian Ehrhardt]
 + distros: fix get_primary_arch method use of os.uname [Andrew Jorgensen]
 + Fix Gentoo net config generation [Matthew Thode]
 + Minor cleanups to atomic_helper and add unit tests.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=43
2016-09-13 16:56:10 +00:00

19 lines
781 B
Diff

--- cloudinit/net/eni.py.orig
+++ cloudinit/net/eni.py
@@ -338,6 +338,7 @@ class Renderer(renderer.Renderer):
up = indent + "post-up route add"
down = indent + "pre-down route del"
or_true = " || true"
+ gateway = indent + "gateway "
mapping = {
'network': '-net',
'netmask': 'netmask',
@@ -346,6 +347,7 @@ class Renderer(renderer.Renderer):
}
if route['network'] == '0.0.0.0' and route['netmask'] == '0.0.0.0':
default_gw = " default gw %s" % route['gateway']
+ content.append(gateway + route['gateway'])
content.append(up + default_gw + or_true)
content.append(down + default_gw + or_true)
elif route['network'] == '::' and route['netmask'] == 0: