diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2018-01-22 18:33:08 -0600 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2018-02-08 16:12:32 -0500 |
commit | 0d30c9575f9e3e4cfb7771cee992e7f669ac3e76 (patch) | |
tree | 7770933abd35e335924812c0e031041c5f55a353 /cloudinit/cmd/status.py | |
parent | 45289a00bf8c043c5783c527c4ea720e67e0524b (diff) | |
download | vyos-cloud-init-0d30c9575f9e3e4cfb7771cee992e7f669ac3e76.tar.gz vyos-cloud-init-0d30c9575f9e3e4cfb7771cee992e7f669ac3e76.zip |
net: accept network-config in netplan format for renaming interfaces
net.apply_network_config_names currently only accepts network-config
in version 1 format. When users include a netplan format network-config the
rename code does not find any of the 'set-name' directives and does not rename
any of the interfaces. This causes some netplan configurations to fail.
This patch adds support for parsing netplan format and extracts the needed
information (macaddress and set-name values) to allow cloud-init to issue
interface rename commands. We know raise a RuntimeError if presented with
an unknown config format.
LP: #1709715
Diffstat (limited to 'cloudinit/cmd/status.py')
0 files changed, 0 insertions, 0 deletions