diff options
author | Akihiko Ota <skywalker.37th@gmail.com> | 2018-08-03 20:44:59 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2018-08-03 20:44:59 +0000 |
commit | 01cfa711bcf31c6c0019d1e936b5b07aa6abc2bc (patch) | |
tree | c0838183d6c71e83711a8978669354ab78bf6e41 /cloudinit | |
parent | 3cee0bf85fbf12d272422c8eeed63bf06e64570b (diff) | |
download | vyos-cloud-init-01cfa711bcf31c6c0019d1e936b5b07aa6abc2bc.tar.gz vyos-cloud-init-01cfa711bcf31c6c0019d1e936b5b07aa6abc2bc.zip |
OpenNebula: Fix null gateway6
The OpenNebula data source generates an invalid netplan yaml file
if the IPv6 gateway is not defined in context.sh.
LP: #1768547
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceOpenNebula.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOpenNebula.py b/cloudinit/sources/DataSourceOpenNebula.py index 16c10785..77ccd128 100644 --- a/cloudinit/sources/DataSourceOpenNebula.py +++ b/cloudinit/sources/DataSourceOpenNebula.py @@ -232,7 +232,7 @@ class OpenNebulaNetwork(object): # Set IPv6 default gateway gateway6 = self.get_gateway6(c_dev) - if gateway: + if gateway6: devconf['gateway6'] = gateway6 # Set DNS servers and search domains |