Forum Discussion
Script to modify Virtual Servers default pool?
Hey Guys, I need help here. We need to have a script to permantly change the default pool. So that we are able to switch the default pool for a number of Virtual Servers. Therefore I wrote a script to use the curl command which is: curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X PUT -d '{"pool":"sVirtual-2"}'
But for some reason I receive the following error message:
{"code":400,"message":"0107028c:3: The source (::) and destination (123.123.123.123) addresses for virtual server (/Common/VS1) must be be the same type (IPv4 or IPv6).","errorStack":[]}
So I checked the config of the virtual server and the Source IP is IPv4 "0.0.0.0/0"
Any input here?
Or is the curl command maybe wrong?
Many Thanks to Dave Gibs, this is exaclty the solution to the error msg explained by adavidjan (in case you upgraded to v12)
Best Philipp
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
