Merge "Do not specify vnic index while setting DGW"
This commit is contained in:
commit
e1121a5b73
@ -856,7 +856,6 @@ class EdgeApplianceDriver(object):
|
|||||||
# for speedup
|
# for speedup
|
||||||
return task_constants.TaskStatus.ABORT
|
return task_constants.TaskStatus.ABORT
|
||||||
gateway = task.userdata['gateway']
|
gateway = task.userdata['gateway']
|
||||||
gateway_vnic_index = task.userdata['gateway_vnic_index']
|
|
||||||
routes = task.userdata['routes']
|
routes = task.userdata['routes']
|
||||||
LOG.debug("VCNS: start updating routes for %s", edge_id)
|
LOG.debug("VCNS: start updating routes for %s", edge_id)
|
||||||
static_routes = []
|
static_routes = []
|
||||||
@ -883,8 +882,7 @@ class EdgeApplianceDriver(object):
|
|||||||
if gateway:
|
if gateway:
|
||||||
request["defaultRoute"] = {
|
request["defaultRoute"] = {
|
||||||
"description": "default-gateway",
|
"description": "default-gateway",
|
||||||
"gatewayAddress": gateway,
|
"gatewayAddress": gateway
|
||||||
"vnic": gateway_vnic_index
|
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
self.vcns.update_routes(edge_id, request)
|
self.vcns.update_routes(edge_id, request)
|
||||||
|
Loading…
Reference in New Issue
Block a user