Skip to content

Commit

Permalink
Merge "Closes-Bug: #1597190 - Default gateway was mandatory for new p…
Browse files Browse the repository at this point in the history
…arams, made optional" into R3.1
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 14, 2016
2 parents 6625ddd + 65213d5 commit 0a6999f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server_mgr_main.py
Expand Up @@ -3283,8 +3283,12 @@ def get_control_ip(self, server):
def get_control_gateway(self, server):
control_intf = eval(self.get_control_interface(server))
for key, value in control_intf.iteritems():
return str(IPNetwork(value['gateway']).ip)
return ''
if 'gateway' in value:
return str(IPNetwork(value['gateway']).ip)
if 'gateway' in server:
return str(IPNetwork(server['gateway']).ip)
else:
return ''
# end def get_control_gateway

#Function to get control section for all servers
Expand Down

0 comments on commit 0a6999f

Please sign in to comment.