F5Networks / f5-appsvcs-extension

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

GSLB_Topology_Region - Error when declaring a region containing another region being created in the same declaration #838

Open KyleTwenty opened 4 weeks ago

KyleTwenty commented 4 weeks ago

. In my declaration, I am defining a GSLB_Topology_Region that references another Topology Region. When I have them both in the same declaration, it errors because it cannot find the “region” reference to the other Region. If I create one region first, and then modify the AS3 to include the region that references it, it works fine.

Just wondering if this is expected behavior, or if this is a bug. Here’s the code snippet and error:

"Snoqualmie": { "class": "GSLB_Topology_Region", "members": [ { "matchType": "subnet", "matchValue": "10.176.83.140/32" }, { "matchType": "subnet", "matchValue": "208.54.32.114/32" }, { "matchType": "subnet", "matchValue": "208.54.32.118/32" }, { "matchType": "subnet", "matchValue": "208.54.32.122/32" }, { "matchType": "subnet", "matchValue": "208.54.32.126/32" } ] }, "SBA-NW-Snoqualmie": { "class": "GSLB_Topology_Region", "members": [ { "matchType": "region", "matchValue": { "bigip": "/Common/Snoqualmie" } }, { "matchType": "state", "matchValue": "CA/British Columbia" }, { "matchType": "state", "matchValue": "CA/New Brunswick" }, { "matchType": "state", "matchValue": "CA/Northwest Territories" }, { "matchType": "state", "matchValue": "CA/Nova Scotia" }, { "matchType": "state", "matchValue": "CA/Prince Edward Island" }, { "matchType": "state", "matchValue": "CA/Yukon Territory" }, { "matchType": "state", "matchValue": "US/North Dakota" }, { "matchType": "state", "matchValue": "US/South Dakota" }, { "matchType": "state", "matchValue": "CA/Manitoba" }, { "matchType": "state", "matchValue": "CA/Newfoundland" }, { "matchType": "state", "matchValue": "CA/Nunavut" }, { "matchType": "state", "matchValue": "CA/Saskatchewan" }, { "matchType": "state", "matchValue": "US/Alaska" }, { "matchType": "state", "matchValue": "US/Idaho" }, { "matchType": "state", "matchValue": "US/Montana" }, { "matchType": "state", "matchValue": "US/Oregon" }, { "matchType": "state", "matchValue": "US/Washington" } ] },

This declaration results in the following, even though the region is being defined in the declaration:

{ "id": "c2dbe99b-38ab-4c1d-8d94-714d6c83fbda", "results": [ { "code": 422, "declarationFullId": "", "message": "Unable to find /Common/Snoqualmie for /Common/Shared/SBA-NW-Snoqualmie/members/0/matchValue", "declarationId": "TMO_GTMPOL01" } ], "declaration": {} }

sunitharonan commented 4 weeks ago

Created AUTOTOOL-4396 and added to our backlog.