[PATCH rhel6-branch] vlan support: enable vlan in NM in target system
Radek Vykydal
rvykydal at redhat.com
Wed Sep 12 11:43:31 UTC 2012
This may be temporary, I am discussing NM default with NM
Resolves: rhbz#668065
---
network.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/network.py b/network.py
index 86214db..9e6b24a 100644
--- a/network.py
+++ b/network.py
@@ -624,6 +624,10 @@ class Network:
return True
return False
+ def hasVlanDevice(self):
+ return any (dev for dev in self.netdevices.values()
+ if dev.get('TYPE') == 'Vlan')
+
def hasBondDevice(self):
return any (dev for dev in self.netdevices.values()
if dev.get('TYPE') == 'Bond')
@@ -683,7 +687,7 @@ class Network:
if dev.get('IPV6_DEFAULTGW'):
f.write("IPV6_DEFAULTGW=%s\n" % (dev.get('IPV6_DEFAULTGW'),))
- if self.hasBondDevice():
+ if self.hasBondDevice() or self.hasVlanDevice():
f.write("NM_BOND_VLAN_ENABLED=yes\n")
f.close()
--
1.7.4
More information about the anaconda-patches
mailing list