diff options
| author | Scott Moser <smoser@ubuntu.com> | 2016-03-29 16:24:58 -0400 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2016-03-29 16:24:58 -0400 |
| commit | f6ad06d80aecadcd6d009111d14b6056a9545bd2 (patch) | |
| tree | b208e754e58cf15539fca0255fd10012d4583def /cloudinit/distros/debian.py | |
| parent | 78c9de871eb2a68da36fb4397fe756b88dc9eb15 (diff) | |
| parent | 30d8a1f2336f9e05b047136903d47025fdf28f5a (diff) | |
| download | vyos-cloud-init-f6ad06d80aecadcd6d009111d14b6056a9545bd2.tar.gz vyos-cloud-init-f6ad06d80aecadcd6d009111d14b6056a9545bd2.zip | |
apply_network_config improvements
3 things here:
a.) do not raise exception, only warn when trying to apply a network
config for a distro that does not have an implementation.
This is important since debian/ubuntu is the only one *with* an
implementation at the moment
b.) apply network config in 'cloud-init --local' even if there is
no datasource found. This means that the fallback datasource has
to get things right.
c.) do not write 70-persistent-net.rules
the code was writing both 70-persistent-net.rules and
/etc/systemd/network/50-cloud-init-*.link files
that would just be confusing.
Diffstat (limited to 'cloudinit/distros/debian.py')
| -rw-r--r-- | cloudinit/distros/debian.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py index b14fa3e2..5d7e6cfc 100644 --- a/cloudinit/distros/debian.py +++ b/cloudinit/distros/debian.py @@ -82,7 +82,8 @@ class Distro(distros.Distro): ns = net.parse_net_config_data(netconfig) net.render_network_state(target="/", network_state=ns, eni=self.network_conf_fn, - links_prefix=self.links_prefix) + links_prefix=self.links_prefix, + netrules=None) util.del_file("/etc/network/interfaces.d/eth0.cfg") return [] |
