Add default_gateway for l23network call in fuelmenu

l23network::l3:ifconfig added a new parameter default_gateway
which is default to false now in the following commit:
c1e3c4e74c

Change-Id: I7b46585fbbc2eb1aa58084b194f3663218513968
Closes-Bug: #1389233
This commit is contained in:
Matthew Mosesohn 2014-11-18 16:43:13 +04:00
parent 57112697ff
commit b8f07af263
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ class interfaces(urwid.WidgetWrap):
"check_by_ping": "none"}
if len(responses["gateway"]) > 1:
params["gateway"] = responses["gateway"]
params["default_gateway"] = True
elif network.inSameSubnet(self.get_default_gateway_linux(),
responses["ipaddr"], responses["netmask"]):
#If the current gateway is in the same subnet AND the user