fix the tricircle can not create float ip

Change-Id: Idf35a77e9f0913967a66dbcb0f3cffede209a3d5
Signed-off-by: song baisen <songbaisen@szzt.com.cn>
Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>, zhiyuan_cai <luckyvega.g@gmail.com>
This commit is contained in:
songbaisen 2019-07-15 17:30:18 +08:00
parent a8410092f5
commit 0e0a0a4195
1 changed files with 6 additions and 0 deletions

View File

@ -631,6 +631,9 @@ def update_floatingip_dict(fip_dict, update_dict):
update_dict['fixed_ip_address'] = None
update_dict['router_id'] = None
_update()
if 'tenant_id' not in fip_dict.keys():
fip_dict['tenant_id'] = TEST_TENANT_ID
update_dict['tenant_id'] = TEST_TENANT_ID
return fip_dict
for port in TOP_PORTS:
if port['id'] != update_dict['port_id']:
@ -646,6 +649,9 @@ def update_floatingip_dict(fip_dict, update_dict):
update_dict['router_id'] = router_port['router_id']
_update()
if 'tenant_id' not in fip_dict.keys():
fip_dict['tenant_id'] = TEST_TENANT_ID
update_dict['tenant_id'] = TEST_TENANT_ID
return fip_dict