F5Networks / f5-appsvcs-extension

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

GSLB_Server - Error trying to create multiple devices #839

Open KyleTwenty opened 4 weeks ago

KyleTwenty commented 4 weeks ago

Referencing this page: https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/schemaref/GSLB_Server.schema.json.html, I am trying to create a more complex GSLB_Server configuration that has multiple devices. Basically, it looks like I have to use an array, but when I try to submit, I am having some issues.

First, If I use the following, I receive an error that it can only contain one object:

                                         "ADMPLUNIX0005": {
                                                        "class": "GSLB_Server",
                                                        "devices": [
                                                                       {
                                                                                      "address": "192.168.3.31"
                                                                       },
                                                                       {
                                                                                      “address”: “192.168.3.32”
                                                                       }
                                                        ],

{ "id": "07145baf-c553-4246-a7e4-83714cfc3182", "results": [ { "code": 422, "errors": [ "/Common/Shared/ADMPLUNIX0005/devices: should NOT have more than 1 items" ], "declarationFullId": "", "message": "declaration is invalid", "declarationId": "TMO_GTMPOL01" } ], "declaration": {} }

So, if I change the config, and put them both into the same segment, which looks like the following, I do not receive any errors on the deployment, but it will only put the last entry into my device list.

                                         "ADMPLUNIX0005": {
                                                        "class": "GSLB_Server",
                                                        "devices": [
                                                                       {
                                                                                      "address": "192.168.3.31",
                                                                                      "address": "192.168.3.32"
                                                                       }
                                                        ],

image

sunitharonan commented 4 weeks ago

Created AUTOTOOL-4395 and added to our backlog.