diff options
author | zsdc <taras@vyos.io> | 2024-05-16 03:12:08 +0300 |
---|---|---|
committer | zdc <zdc@users.noreply.github.com> | 2024-05-16 03:13:51 +0300 |
commit | 70304ff90d931265cb736ace692967242c9b9729 (patch) | |
tree | 02d5487084e01b9d2c5546d4dff2729938f64100 /config/cloud.cfg.tmpl | |
parent | fd8c12784127e3258762d0163455d595b427ea53 (diff) | |
download | vyos-cloud-init-70304ff90d931265cb736ace692967242c9b9729.tar.gz vyos-cloud-init-70304ff90d931265cb736ace692967242c9b9729.zip |
ifupdown: T6038: Cleanup network config properly
Cloud-init in environments where Meta-data is available via network configures
the main interface and keeps the config in `/etc/network/interfaces.d/`.
This config later interferes with the VyOS configuration.
To avoid the problem previously the code in the `cc_vyos.py` module was used,
but this is not enough. The module is running only once during instance
deployment. But Cloud-init will re-add the config file with each boot.
There are two ways to solve this incompatibility (within Cloud-init) - disable
network config or perform cleanup during each boot.
Disabling network config is not correct in this context, because it blocks the
ability to fetch Meta-data after the first boot, which in turn blocks the
ability to run per-boot modules with an updated config.
Therefore, the cleanup code was extracted to an independent
`cc_vyos_ifupdown.py` module that performs proper cleanup with each boot.
Diffstat (limited to 'config/cloud.cfg.tmpl')
0 files changed, 0 insertions, 0 deletions