Merge "Add check to handle case when --gateway not given"
This commit is contained in:
commit
0dacc5bd60
|
@ -958,7 +958,8 @@ def ipam_request_address():
|
||||||
# This address cannot be reserved with neutron at this time as subnet
|
# This address cannot be reserved with neutron at this time as subnet
|
||||||
# is not created yet. In /NetworkDriver.CreateNetwork this address will
|
# is not created yet. In /NetworkDriver.CreateNetwork this address will
|
||||||
# be reserved with neutron.
|
# be reserved with neutron.
|
||||||
allocated_address = '/'.join([req_address, pool_prefix_len])
|
if req_address:
|
||||||
|
allocated_address = '/'.join([req_address, pool_prefix_len])
|
||||||
|
|
||||||
return flask.jsonify({'Address': allocated_address})
|
return flask.jsonify({'Address': allocated_address})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue