Unable to create router when the external network is specified
In project create router form, when creating router with the external network, there is no need to determine "ext_gw_mode_supported" since the "ext_gw-mode" has been checked when the form is initialized. So, we need to delete it since it's also undefined. Change-Id: I6dc221638ccda2a8819776679735685cb3c61d56 Closes-Bug:#1733047
This commit is contained in:
parent
32e9e1d1b1
commit
de9f03c9ab
|
@ -123,7 +123,7 @@ class CreateForm(forms.SelfHandlingForm):
|
|||
if 'external_network' in data and data['external_network']:
|
||||
params['external_gateway_info'] = {'network_id':
|
||||
data['external_network']}
|
||||
if self.ext_gw_mode_supported and self.enable_snat_allowed:
|
||||
if self.enable_snat_allowed:
|
||||
params['external_gateway_info']['enable_snat'] = \
|
||||
data['enable_snat']
|
||||
if 'az_hints' in data and data['az_hints']:
|
||||
|
|
Loading…
Reference in New Issue