[PATCH pykickstart master 3/3] Add kickstart network --nodefroute option (#668417)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sets DEFROUTE=no in ifcfg file.
---
 pykickstart/commands/network.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/pykickstart/commands/network.py b/pykickstart/commands/network.py
index 4da160c..918a2d6 100644
--- a/pykickstart/commands/network.py
+++ b/pykickstart/commands/network.py
@@ -149,6 +149,8 @@ class F15_NetworkData(F8_NetworkData):
 
         if self.activate:
             retval += " --activate"
+        if self.nodefroute:
+            retval += " --nodefroute"
 
         return retval
 
@@ -177,6 +179,8 @@ class RHEL6_NetworkData(F8_NetworkData):
 
         if self.activate:
             retval += " --activate"
+        if self.nodefroute:
+            retval += " --nodefroute"
 
         return retval
 
@@ -294,12 +298,15 @@ class F15_Network(F9_Network):
     def __init__(self, writePriority=0, *args, **kwargs):
         F9_Network.__init__(self, writePriority, *args, **kwargs)
         self.activate = kwargs.get("activate", False)
+        self.nodefroute = kwargs.get("nodefroute", False)
         self.bootprotoList.append(BOOTPROTO_IBFT)
 
     def _getParser(self):
         op = F9_Network._getParser(self)
         op.add_option("--activate", dest="activate", action="store_true",
                       default=False)
+        op.add_option("--nodefroute", dest="nodefroute", action="store_true",
+                      default=False)
         return op
 
 class RHEL4_Network(FC3_Network):
@@ -334,10 +341,13 @@ class RHEL6_Network(F9_Network):
     def __init__(self, writePriority=0, *args, **kwargs):
         F9_Network.__init__(self, writePriority, *args, **kwargs)
         self.activate = kwargs.get("activate", False)
+        self.nodefroute = kwargs.get("nodefroute", False)
         self.bootprotoList.append(BOOTPROTO_IBFT)
 
     def _getParser(self):
         op = F9_Network._getParser(self)
         op.add_option("--activate", dest="activate", action="store_true",
                       default=False)
+        op.add_option("--nodefroute", dest="nodefroute", action="store_true",
+                      default=False)
         return op
-- 
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux