Skip to content

net/nm: check for presence of ifcfg files when nm connection files are absent (#4645)

Ani Sinha requested to merge anisinha/cloud-init:fix-17609 into c9s

Jira: https://issues.redhat.com/browse/RHEL-17609

On systems that use network manager to manage connections and activate network
interfaces, they may also use ifcfg files for configuring
interfaces using ifcfg-rh network manager plugin. When network manager is used
as the activator, we need to also check for the presence of ifcfg interface
config file when the network manager connection file is absent and if ifcfg-rh
plugin is present.
Hence, with this change, network manager activator first tries to use network
manager connection files to bring up or bring down the interface. If the
connection files are not present and if ifcfg-rh plugin is present, it tries to
use ifcfg files for the interface. If the plugin or the ifcfg files are not
present, the activator fails to activate or deactivate the interface and it
bails out with warning log.

Fixes: GH-4640

Signed-off-by: Ani Sinha <anisinha@redhat.com>

Merge request reports