FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-18-2011, 12:34 PM
Martin Gracik
 
Default Honor DEFROUTE=no when inferring system-wide GATEWAY

ack

--

Martin Gracik

----- Original Message -----
> ---
> 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@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

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

Thread Tools




All times are GMT. The time now is 09:08 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org