Merge "Fix flag name for l3 agent external network id"
This commit is contained in:
commit
90aff020d6
@ -34,7 +34,7 @@ root_helper = sudo
|
|||||||
# value should be set to the UUID of that external network. If empty,
|
# value should be set to the UUID of that external network. If empty,
|
||||||
# the agent will enforce that only a single external networks exists and
|
# the agent will enforce that only a single external networks exists and
|
||||||
# use that external network id
|
# use that external network id
|
||||||
# gateway_external_net_id =
|
# gateway_external_network_id =
|
||||||
|
|
||||||
# Indicates that this L3 agent should also handle routers that do not have
|
# Indicates that this L3 agent should also handle routers that do not have
|
||||||
# an external network gateway configured. This option should be True only
|
# an external network gateway configured. This option should be True only
|
||||||
|
@ -181,7 +181,7 @@ class L3NATAgent(object):
|
|||||||
params = {'router:external': True}
|
params = {'router:external': True}
|
||||||
ex_nets = self.qclient.list_networks(**params)['networks']
|
ex_nets = self.qclient.list_networks(**params)['networks']
|
||||||
if len(ex_nets) > 1:
|
if len(ex_nets) > 1:
|
||||||
raise Exception("must configure 'external_network_id' if "
|
raise Exception("must configure 'gateway_external_network_id' if "
|
||||||
"Quantum has more than one external network.")
|
"Quantum has more than one external network.")
|
||||||
if len(ex_nets) == 0:
|
if len(ex_nets) == 0:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user