forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/nm: check for presence of ifcfg files when nm connection files ar…
…e absent (canonical#4645) 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: canonicalGH-4640 Signed-off-by: Ani Sinha <anisinha@redhat.com>
- Loading branch information
Showing
2 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters