Convert vlan_id from unicode to int
Temporary solution for opnfv CI job https://build.opnfv.org/ci/job/daisy-deploy-baremetal-daily-master/169/ Change-Id: I0aa68442067d3416e9a0665648b204b669d44816 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
This commit is contained in:
parent
cbf13e8413
commit
993f058dfe
|
@ -575,12 +575,12 @@ class Controller(controller.BaseController):
|
|||
for network in networks:
|
||||
if network['cidr'] and network['vlan_id']:
|
||||
if cidr == network['cidr'] \
|
||||
and vlan_id != network['vlan_id'] \
|
||||
and vlan_id != eval(network['vlan_id']) \
|
||||
and network['id'] != network_id:
|
||||
msg = (_('Networks with the same cidr must have '
|
||||
'the same vlan_id'))
|
||||
raise HTTPBadRequest(explanation=msg)
|
||||
if vlan_id == network['vlan_id'] \
|
||||
if vlan_id == eval(network['vlan_id']) \
|
||||
and cidr != network['cidr'] \
|
||||
and network['id'] != network_id:
|
||||
msg = (_('Networks with the same vlan_id must '
|
||||
|
|
Loading…
Reference in New Issue