Ability to assign cisco nw profile to multi-tenants in single request¶
Add the support to assign a cisco network profile to multiple tenants in a single request
Currently with Cisco N1kv plugin, admin is only able to assign cisco network profile to one tenant in a request. So admin has to send multiple requests to assign a cisco network profile to multiple tenants.
The proposed change is to make the create network profile and update network profile functions to take a list of tenant ids, and then update the profile-tenant binding info accordingly.
The Alternative way is to send multiple requests, assigning to one tenant per request. This alternative is obviously too tedious for admin users, especially when a admin has a lot of tenants to manage.
Data model impact¶
REST API impact¶
for network_profile resource, ‘add_tenant’ and ‘remove_tenant’ attributes are changed to ‘add_tenants’ and ‘remove_tenants’. And Instead of taking one tenant id, now they are taking a list of tenant ids.
Other end user impact¶
There is a corresponding change in python-neutronclient: In cisco network profile create cli, admin can add repeated –add-tenant option; In cisco network profile update cli, admin can add repeated –add-tenant and repeated –remove-tenant option
in horizon: admin can select multiple tenants during creating cisco network profile; admin can select or deselect multiple tenants during updating cisco network profile.
Other deployer impact¶
- Primary assignee:
modify create and update network profile functions in neutron/plugins/cisco/db/nikv_db_v2.py file
modify network profile attributes in neutron/plugins/cisco/extensions/network_profile.py file
blueprint in python-neutronclient and horizon: https://blueprints.launchpad.net/horizon/+spec/cisco-network-profile-multi-tenants-support https://blueprints.launchpad.net/python-neutronclient/+spec/cisco-network-profile-multi-tenants-support
The UT test cases will be added to cover this change.