Hello Team,
There is no direct method available. Earlier we had the Network Hierarchy management application available but now it's no longer functioning on the new version.
However, you can follow the below approach. This is not a supported method.
You can use the below API Endpoints, To get the existing Network Hierarchy, This will return you the existing network hierarchy information in JSON format.
Staging : /config/network_hierarchy/staged_networks
Production : /config/network_hierarchy/networks
We can only update the staging endpoint using put, Once you update to verify that it's properly updated then do deploy which later updated the production endpoint.
1. Get the networks from deployment A - Keep it as backup
2. Get the networks from deployment B - Keep it as backup
3. Manually merge the above two results, You may remove the duplicate entries. JSON format
4. Then merged the JSON result you can upload using the put on the Staging endpoint.
5. Get the staging networks again and confirm if all are updated properly and no data loss.
6. If all is good then only go for deploy changes
7. Else use the backup to and put API to upload the backed-up hierarchy and then do a deployment.
----NOT SUPPORTED AND VERIFIED METHOD, TRY IT IN TESTING ENVIRONMENT FIRST====
------------------------------
Vishal Tangadkar
------------------------------