Question:
How to remove a tenant Org binding for CPEs?
Solution:
A. The right way to remove an organization or tenant is to make changes to the template and re-apply the template.
First remove the tenant from the Workflow > templates > Recreate
Then redeploy the Workflow > Devices
Finally commit the template to the concerned appliance
B . Follow these quick workaround steps if you cannot apply the templatized changes:
1. Run these CLI commands to find the UUID of the CPEs.
Administrator@QA-Testbed-58-SDWAN-VOAE1% show nms provider appliances appliance name | display set | match name % set nms provider appliances appliance 8c9a5028-d275-4f9a-abf4-5b2c61073295 name Branch1 % set nms provider appliances appliance bbe972b8-1a65-4ddd-80ef-ec67cce43da9 name Controller2 % set nms provider appliances appliance e9c04f0d-b843-4dce-a394-cdc84e99b0f2 name Controller1 [ok][2017-01-14 03:01:10] [edit] Administrator@QA-Testbed-58-SDWAN-VOAE1%
2. Run these CLI commands to find the UUID of the organization.
Administrator@QA-Testbed-58-SDWAN-VOAE1% show nms provider organizations organization | display set | match name % set nms provider organizations organization 1d810df2-abd3-4f27-b89a-df190fe9195e name Tenant1 % set nms provider organizations organization 4f56e87e-2707-4360-80ab-6b34d83b15e9 name Versa % set nms provider organizations organization 804e1dab-015e-4099-9299-15323df6e4a5 name Tenant2 [ok][2017-01-14 03:00:49] [edit] Administrator@QA-Testbed-58-SDWAN-VOAE1%
3. Run the delete nms provider appliances appliance <UUID of the CPE> orgs <UUID of the org> CLI command to disassociate the CPE from the organization.
Example:
Administrator@QA-Testbed-58-SDWAN-VOAE1% delete nms provider appliances appliance 8c9a5028-d275-4f9a-abf4-5b2c61073295 orgs 1d810df2-abd3-4f27-b89a-df190fe9195e
4. Run the delete nms provider organizations organization <UUID of the org> appliances <UUID of the CPE> CLI
command to delete the CPE from the organization.
Example:
Administrator@QA-Testbed-58-SDWAN-VOAE1% show nms provider appliances appliance name appliance 8c9a5028-d275-4f9a-abf4-5b2c61073295 { name Branch1; } appliance bbe972b8-1a65-4ddd-80ef-ec67cce43da9 { name Controller2; } appliance e9c04f0d-b843-4dce-a394-cdc84e99b0f2 { name Controller1; } [ok][2017-01-14 02:50:51] [edit] Administrator@QA-Testbed-58-SDWAN-VOAE1% delete nms provider organizations organization 1d810df2-abd3-4f27-b89a-df190fe9195e appliances 8c9a5028-d275-4f9a-abf4-5b2c61073295 Administrator@QA-Testbed-58-SDWAN-VOAE1% commit