summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-06-15 20:00:15 -0600
committerChad Smith <chad.smith@canonical.com>2018-06-15 20:00:15 -0600
commit4ce6720104ec92d8d7c5aa993bf7ec405a2f53db (patch)
treee04a67a8f565ac293cc406228ca6f0a4d68a1ccd /cloudinit/distros
parent1efa8a0a030794cec68197100f31a856d0d264ab (diff)
downloadvyos-cloud-init-4ce6720104ec92d8d7c5aa993bf7ec405a2f53db.tar.gz
vyos-cloud-init-4ce6720104ec92d8d7c5aa993bf7ec405a2f53db.zip
lxd: Delete default network and detach device if lxd-init created them.
Newer versions (3.0.1+) of lxd create the 'lxdbr0' network when 'lxd init --auto' is invoked. When cloud-init is given a network configuration to pass on to lxc and that config had no name specified or 'lxdbr0', then cloud-init would fail to create the network as it already exists. Similarly, we need to remove the device from the default profile so that the attach code can work. Also, add a _lxc method and use it to make sure we're getting the --force-local flag everywhere. LP: #1776958
Diffstat (limited to 'cloudinit/distros')
0 files changed, 0 insertions, 0 deletions