diff options
author | Dan Sneddon <dsneddon@redhat.com> | 2015-05-14 10:58:10 -0700 |
---|---|---|
committer | Dan Sneddon <dsneddon@redhat.com> | 2015-05-14 11:17:05 -0700 |
commit | afcd514b7cb4b9a465c615c0a16d7f6af2a1d0ed (patch) | |
tree | 64e9ac9b7560926c84e22bcdff47cf93879e8ad7 /os_net_config/impl_ifcfg.py | |
parent | b0536cb24b35d99f59762c38cd8ba02e3038f94b (diff) |
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
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r-- | os_net_config/impl_ifcfg.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |