Browse Source

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>
changes/99/670799/1
songbaisen 2 years ago
parent
commit
0e0a0a4195
  1. 6
      tricircle/tests/unit/network/test_central_plugin.py

6
tricircle/tests/unit/network/test_central_plugin.py

@ -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

Loading…
Cancel
Save