Forum Discussion
Can't create virtual-server with port-list
Hello team
I'm trying to create a VIP with the port list, but i got an error message: "Declaration failed: Invalid Virtual Address, the IP address x.x.x.x already exists."
The device has no configuration at the moment.
Trying to understand what's going on, maybe somebody has the same issue?
declaration:
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"id": "id",
"label": "label",
"remark": "Applications",
"tenant1": {
"class": "Tenant",
"app1": {
"class": "Application",
"vip_X.X.X.X": {
"class": "Service_Address",
"virtualAddress": "X.X.X.X",
"routeAdvertisement": "enable"
},
"svc1": {
"class": "Service_TCP",
"virtualAddresses": [{"use": "vip_X.X.X.X"}],
"virtualPort": {
"use": "port_list1"
},
"virtualType": "standard",
},
"port1": {
"class": "Net_Port_List",
"ports": [port_list],
},
},
}
}
}
Hi,
Better read more about AS3 as I see a simple mistake where you have "use": "port_list1" but your portlist name is "port1" not "port_list1".
There is nice training at youtube called AS3 Foundations with several videos.
Net_Port_List (object) (f5.com)
AS3 Foundations: Top 10 Features to Know in the F5 Extension for VS Code (youtube.com)
Declaration using all BIG-IP AS3 Properties (f5.com)
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com