I have an existing IP Set ( say 5 IP address are there)
IPset A - 1.1.1.1, 1.1.1.2, 1.1.1.3,1.1.1.4, 1.1.1.5
I will be extracting IP Address from other security group.
I want to compare these 2 IP addresses. If there is any difference then I want to replace the new IP addresses extracted from the security group to the IPSet A
EX 1 - IP Address extracted from Security group - 1.1.1.1, 1.1.1.2, 1.1.1.3,1.1.1.4, 2.2.2.2
There is difference in IP & I need to replace the IP Set with these IP "1.1.1.1, 1.1.1.2, 1.1.1.3,1.1.1.4, 2.2.2.2"
EX 2 - IP Address extracted from Security group - 1.1.1.1, 1.1.1.2, 1.1.1.3,1.1.1.4, 1.1.1.5
No diff - so no action
If there is no diff I need not do any action.
Let me know if this is possible using power NSX