f5-appsvcs-extension
f5-appsvcs-extension copied to clipboard
Assign the device name when creating a server
Environment
Application Services Version: 3.28.0
BIG-IP Version: 15.1.3-0.0.11
Summary
From the Bigip, under DNS >> GSLB:Server: ServerList >> Devices: "XXX" it is not possible to assign the name. Each declaration that is executed assigns a name of 0
Steps To Reproduce
- Submit the following declaration:
[
{
"op": "add",
"path": "/Common/Shared/ACME-NICOLA",
"value": {
"class": "GSLB_Server",
"serverType": "generic-host",
"monitors": [
],
"dataCenter": {
"use": "marco"
},
"devices":[
{
"label": "ACME-NICOLA",
"address": "1.2.4.8"
}
],
"virtualServers": [
{
"name": "ACME-NICOLA_VS",
"address": "1.2.4.8",
"port": 0
}
]
}
},
{
"op": "add",
"path": "/Gsv/Application/pool_NICOLA",
"value": {
"class": "GSLB_Pool",
"resourceRecordType": "A",
"lbModeFallback": "none",
"lbModeAlternate": "none",
"verifyMemberEnabled": false,
"members": [
{
"server": {
"use": "/Common/Shared/ACME-NICOLA"
},
"virtualServer": "ACME-NICOLA_VS",
"enabled": true
}
]
}
}
]
-
Expected Behavior: (a Server created without AS3 is shown)
-
Observe the following result:
The name value comes from the name of the virtual server being referenced. Please see the following documentation on how to override the generated index-based name of a virtual server: https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/declarations/gslb.html#specifying-a-gslb-virtual-server-name-in-a-declaration.
The one indicated in the documentation, refers to how to name the Virtual Server. What I need, however, is to name the 'Devices'. The device name should be the same as the Server and not 0
@MMarco1977 You are right, it looks like the devices property needs to be updated to accept a name property like virtual servers. I am changing this into a feature request to allow for a GSLB_Server declaration similar to the one below:
{
"class": "GSLB_Server",
"serverType": "generic-host",
"monitors": [],
"dataCenter": {
"use": "marco"
},
"devices": [
{
"name": "ACME-NICOLA",
"address": "1.2.4.8"
}
],
"virtualServers": [
{
"name": "ACME-NICOLA_VS",
"address": "1.2.4.8",
"port": 0
}
]
}
I have added this request to our internal product backlog as AUTOTOOL-2636.
I tried to send the declaration that you have indicated but the name always remains at 0. Below is the declaration used:
[ { "op": "add", "path": "/Common/Shared/ACME-NICOLA", "value": { "class": "GSLB_Server", "serverType": "generic-host", "monitors": [
],
"dataCenter": {
"use": "marco"
},
"devices":[
{
"name": "ACME-NICOLA",
"address": "1.2.4.8"
}
],
"virtualServers": [
{
"name": "ACME-NICOLA_VS",
"address": "1.2.4.8",
"port": 0
}
]
}
},
{
"op": "add",
"path": "/Gsv/Application/pool_NICOLA",
"value": {
"class": "GSLB_Pool",
"resourceRecordType": "A",
"lbModeFallback": "none",
"lbModeAlternate": "none",
"verifyMemberEnabled": false,
"members": [
{
"server": {
"use": "/Common/Shared/ACME-NICOLA"
},
"virtualServer": "ACME-NICOLA_VS",
"enabled": true
}
]
}
}
]
tks /MMarco1977
That was meant as an example of how the feature will look when it is implemented.
I supposed,but I wanted to try it anyway ;-)
Hi @dstokesf5 for info, this issue, do you know when it will be fixed?
If you are still looking for this feature, please reach out to us at [email protected] in order to prioritize.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.