subiquity/subiquitycore
Scott Moser 3e69673501 Fix writing of netplan configs
When user configures network with subiquity, it's rendered
netplan should be wholly definitive.  So, we remove the other files
that may have config.  This fixes a bug where running in an instance
when running on a system where cloud-init had rendered a 'match' with
'macaddress'.

When writing netplan we keep 'macaddress' match in place but drop
others.  The others may just wildcard from the installer environment,
but macaddress are likely by cloud-init or otherwise intentionally
written.

Also add an atomic write in subiquitycore/file_util and move the
netplan code into subiquitycore/netplan.py, and add some unit test
helpers from cloud-init.
2018-06-07 11:46:34 -04:00
..
controllers Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
models Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
testing pep8 fixes for subiquitycore.testing.view_hewlpers 2018-05-24 16:51:51 -05:00
tests Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
ui fix selectability in non-scrolling stretchy 2018-06-07 12:50:50 +12:00
__init__.py pyflakes3 fixes for subiquitycore/__init__.py 2018-05-24 16:59:31 -05:00
controller.py pep8 fixes for subiquitycore/controller.py 2018-05-24 16:51:51 -05:00
core.py pep8 fixes for subiquitycore/core.py 2018-05-24 16:59:31 -05:00
file_util.py Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
i18n.py tox: Support running tests and flake8 in tox. 2018-06-05 17:59:46 -04:00
log.py Drop commented out / dead code 2018-05-23 18:53:12 -05:00
lsb_release.py tox: Support running tests and flake8 in tox. 2018-06-05 17:59:46 -04:00
netplan.py Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
prober.py pep8 fixes for subiquitycore/prober.py 2018-05-24 16:51:51 -05:00
signals.py Drop commented out / dead code 2018-05-23 18:53:12 -05:00
tasksequence.py pep8 fixes for subiquitycore/tasksequence.py 2018-05-24 16:59:31 -05:00
utils.py pep8 fixes for subiquitycore/utils.py 2018-05-24 16:51:51 -05:00
view.py pep8 fixes for subiquitycore/view.py 2018-05-24 16:51:51 -05:00