mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9533: gateway of public IP is not handled correctly when parsing the
cmd_line.json to create ips.json databag using 'gateway' in cmd_line for the public ip gateway while creating ips.json databag
This commit is contained in:
parent
0c146e14c6
commit
93ac134f1e
|
|
@ -222,10 +222,13 @@ class updateDataBag:
|
|||
dp['source_nat'] = False
|
||||
dp['add'] = True
|
||||
dp['one_to_one_nat'] = False
|
||||
if('localgw' in self.qFile.data['cmd_line']):
|
||||
dp['gateway'] = self.qFile.data['cmd_line']['localgw']
|
||||
if nw_type == "public":
|
||||
dp['gateway'] = self.qFile.data['cmd_line']['gateway']
|
||||
else:
|
||||
dp['gateway'] = 'None'
|
||||
if('localgw' in self.qFile.data['cmd_line']):
|
||||
dp['gateway'] = self.qFile.data['cmd_line']['localgw']
|
||||
else:
|
||||
dp['gateway'] = 'None'
|
||||
dp['nic_dev_id'] = num
|
||||
dp['nw_type'] = nw_type
|
||||
qf = QueueFile()
|
||||
|
|
|
|||
Loading…
Reference in New Issue