From afcd514b7cb4b9a465c615c0a16d7f6af2a1d0ed Mon Sep 17 00:00:00 2001 From: Dan Sneddon Date: Thu, 14 May 2015 10:58:10 -0700 Subject: Add NM_CONTROLLED=no to each interface configuration In order to allow os-net-config to coexist with NetworkManager, this patch adds NM_CONTROLLED=no to the top of each interface configuration. This ensures that NetworkManager will not mess with interfaces that are configured by os-net-config. Change-Id: I9d226e032eb1cb411b6ea617936f4425c7fd2c74 --- os_net_config/impl_ifcfg.py | 1 + 1 file changed, 1 insertion(+) (limited to 'os_net_config/impl_ifcfg.py') diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py index e5f39b6..097552a 100644 --- a/os_net_config/impl_ifcfg.py +++ b/os_net_config/impl_ifcfg.py @@ -72,6 +72,7 @@ class IfcfgNetConfig(os_net_config.NetConfig): data += "DEVICE=%s\n" % base_opt.name data += "ONBOOT=yes\n" data += "HOTPLUG=no\n" + data += "NM_CONTROLLED=no\n" if isinstance(base_opt, objects.Vlan): data += "VLAN=yes\n" if base_opt.device: -- cgit 1.2.3-korg