I am using AS3 to deploy LTM and DNS configs to a pair of standalone BIG-IPs in a DNS Sync Group.
Everything works and I can add a virtual server to a GSLB_Pool if that virtual server is defined in this AS3 declaration.
However, I need to add a virtual server to the pool that is in the other BIG-IP, configured as a server in a second data center. Auto discovery is configured but AS3 won’t accept the second pool member saying that the object doesn’t exist.
See the snippet below. Obviously I haven’t posted the whole thing but the red section is what fails. vs_prod_dc1 is defined in this declaration (redacted) but vs_prod_dc2 is defined in another declaration because it’s for a different BIG-IP.
What am I missing here?
"DC1": {<br> "class": "GSLB_Data_Center"<br>},<br>"DC2": {<br> "class": "GSLB_Data_Center"<br>},<br>"F5-A": {<br> "class": "GSLB_Server",<br> "dataCenter": {<br> "use": "DC1"<br> },<br> "devices": [<br> {<br> "address": "172.16.20.1"<br> }<br> ],<br> "virtualServerDiscoveryMode": "enabled-no-delete"<br>},<br>"F5-B": {<br> "class": "GSLB_Server",<br> "dataCenter": {<br> "use": "DC2"<br> },<br> "devices": [<br> {<br> "address": "172.16.20.2"<br> }<br> ],<br> "virtualServerDiscoveryMode": "enabled-no-delete"<br>}<br><br><br><br>"dns_pool_prod": {<br> "class": "GSLB_Pool",<br> "resourceRecordType": "A",<br> "members": [<br> {<br> "server": {<br> "use": "/Common/Shared/F5-A"<br> },<br> "virtualServer": {<br> "use": "vs_prod_dc1"<br> }<br> },<br><span class="lia-text-color-8"> {</span><br><span class="lia-text-color-8"> "server": {</span><br><span class="lia-text-color-8"> "use": "/Common/Shared/F5-B"</span><br><span class="lia-text-color-8"> },</span><br><span class="lia-text-color-8"> "virtualServer": {</span><br><span class="lia-text-color-8"> "use": "vs_prod_dc2"</span><br><span class="lia-text-color-8"> }</span><br><span class="lia-text-color-8"> }</span><br> ]<br>}