summaryrefslogtreecommitdiff
path: root/packages/bddeb
diff options
context:
space:
mode:
authorThomas Berger <loki@lokis-chaos.de>2018-09-18 07:16:40 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-09-18 07:16:40 +0000
commit98d18c31c8759add858096dea53bc093c7cc9caa (patch)
treeed4403e191ebbde628007c6f88d984a0dfa6481e /packages/bddeb
parentc714651c1988a17f457426de63cdb8514d5a81b4 (diff)
downloadvyos-cloud-init-98d18c31c8759add858096dea53bc093c7cc9caa.tar.gz
vyos-cloud-init-98d18c31c8759add858096dea53bc093c7cc9caa.zip
net_util: ensure static configs have netmask in translate_network result
If a DataSource provides a network configuration in version 2 and runs on a distro which does not have a network renderer class in use, then the conversion of V2 to eni results in static ip configurations with subnet prefix-length (192.168.23.1/24) rather than explicit netmask value. When sending such a config to net_util.translate_network the resulting dictionary is missing the 'netmask' key for static configured addresses breaking network configurations on multiple distributions. This patch detects static ip configurations using prefix-length and converts the format into the previous 'address' and 'netmask' parts to keep compatibility for these distribtuions until they move to the v2 network configuration. LP: #1792454
Diffstat (limited to 'packages/bddeb')
0 files changed, 0 insertions, 0 deletions