F5Networks / f5-appsvcs-extension

F5 BIG-IP Application Services 3 Extension
Apache License 2.0
163 stars 52 forks source link

GSLB_Topology_Records - Error when declaring a topology record when the source or destination is being created in the same declaration #842

Open KyleTwenty opened 4 weeks ago

KyleTwenty commented 4 weeks ago

In my declaration, I am defining GSLB_Topology_Records that reference regions and datacenters. When I am creating both the topology records and the regions/datacenters in the same declaration, it errors because it cannot find the “region” or "datacenter" reference to the other topology record. If I create regions and datacenters first, and then modify the AS3 to include the region that references it, it works fine. (This is similar to https://github.com/F5Networks/f5-appsvcs-extension/issues/838).

Here are the relevant sections of my AS3 declaration:

GSLB Data Center Definition: "Polaris-Alpha": { "class": "GSLB_Data_Center", "enabled": true, "contact": "Ruben & Rodney", "location": "East Wenatchee, WA", "remark": "Polaris Alpha Targets" },

GSLB Topology Region Definition: "Polaris-Alpha-Subnets": { "class": "GSLB_Topology_Region", "members": [ { "matchType": "subnet", "matchValue": "10.13.0.0/18" }, { "matchType": "subnet", "matchValue": "10.13.128.0/20" }, { "matchType": "subnet", "matchValue": "10.114.128.0/17" }, { "matchType": "subnet", "matchValue": "10.135.115.128/25" }, { "matchType": "subnet", "matchValue": "10.135.119.0/24" }, { "matchType": "subnet", "matchValue": "10.135.128.0/20" }, { "matchType": "subnet", "matchValue": "10.135.144.0/22" }, { "matchType": "subnet", "matchValue": "10.135.148.0/24" }, { "matchType": "subnet", "matchValue": "10.135.160.0/19" }, { "matchType": "subnet", "matchValue": "10.135.198.0/23" }, { "matchType": "subnet", "matchValue": "10.135.200.0/22" }, { "matchType": "subnet", "matchValue": "10.142.64.0/18" }, { "matchType": "subnet", "matchValue": "10.142.160.0/19" }, { "matchType": "subnet", "matchValue": "10.146.0.0/18" }, { "matchType": "subnet", "matchValue": "10.146.128.0/20" }, { "matchType": "subnet", "matchValue": "10.152.32.0/20" }, { "matchType": "subnet", "matchValue": "10.156.224.0/22" }, { "matchType": "subnet", "matchValue": "10.156.228.0/25" }, { "matchType": "subnet", "matchValue": "10.156.229.0/24" } ] },

GSLB Topology Record Definition: "GSLB_Topology_Records": { "class": "GSLB_Topology_Records", "longestMatchEnabled": false, "records": [ { "source": { "matchType": "region", "matchValue": { "bigip": "/Common/Polaris-Alpha-Subnets" } }, "destination": { "matchType": "datacenter", "matchValue": { "bigip": "/Common/Polaris-Alpha" } }, "weight": 10 },

AS3 Error: { "id": "8324ae9d-6cfb-4ae4-90b7-b43246e2142d", "results": [ { "code": 422, "declarationFullId": "", "message": "Unable to find /Common/Polaris-Alpha-Subnets for /Common/Shared/GSLB_Topology_Records/records/0/source/matchValue", "declarationId": "TMO_GTMPOL01" } ], "declaration": {} }

mdditt2000 commented 2 weeks ago

Created Jira AUTOTOOL-4401