[PATCH master] Honor DEFROUTE=no when inferring system-wide GATEWAY

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

 



---
 pyanaconda/network.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 33fc68d..36d8373 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -459,7 +459,8 @@ class Network:
     def gateway(self):
         """GATEWAY - last device in list wins"""
         for dev in reversed(self.netdevices.values()):
-            if dev.get('GATEWAY'):
+            if (dev.get('GATEWAY') and
+                dev.get('DEFROUTE') != "no"):
                 return dev.get('GATEWAY')
         return ""
 
@@ -467,7 +468,8 @@ class Network:
     def ipv6_defaultgw(self):
         """IPV6_DEFAULTGW - last device in list wins"""
         for dev in reversed(self.netdevices.values()):
-            if dev.get('IPV6_DEFAULTGW'):
+            if (dev.get('IPV6_DEFAULTGW') and
+                dev.get('DEFROUTE') != "no"):
                 return dev.get('IPV6_DEFAULTGW')
         return ""
 
-- 
1.7.4

_______________________________________________
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