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

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

 



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

diff --git a/pykickstart/commands/network.py b/pykickstart/commands/network.py
index ec988c5..ceb159b 100644
--- a/pykickstart/commands/network.py
+++ b/pykickstart/commands/network.py
@@ -163,12 +163,15 @@ class RHEL6_NetworkData(F8_NetworkData):
     def __init__(self, *args, **kwargs):
         F8_NetworkData.__init__(self, *args, **kwargs)
         self.activate = kwargs.get("activate", False)
+        self.nodefroute = kwargs.get("nodefroute", False)
 
     def _getArgsAsStr(self):
         retval = F8_NetworkData._getArgsAsStr(self)
 
         if self.activate:
             retval += " --activate"
+        if self.nodefroute:
+            retval += " --nodefroute"
 
         return retval
 
@@ -311,10 +314,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