Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModifyVirtualServer function patch instead put #80

Open
rawmind0 opened this issue Jan 21, 2019 · 3 comments
Open

ModifyVirtualServer function patch instead put #80

rawmind0 opened this issue Jan 21, 2019 · 3 comments

Comments

@rawmind0
Copy link
Contributor

Hey,

we are having some issues updating f5 bigip virtual servers on v12+, getting errors like
12/21/2018 9:33:53 AMtime="2018-12-21T15:33:53Z" level=error msg="f5 RemoveLBConfig: Error modifying virtual server: 0107028c:3: The source (::) and destination (10.3.5.143) addresses for virtual server (/Common/cos_vs_electrode_storefront_beta) must be be the same type (IPv4 or IPv6).\n".

The errors came from calling ModifyVirtualServer function https://github.com/rancher/external-lb/blob/master/providers/f5/f5_bigip.go#L196

Reading this post https://devcentral.f5.com/questions/script-to-modify-virtual-servers-default-pool, it seems that bigip API v12+ versions uses patch instead put for modifying virtual servers.

Taking a look to the code, ModifyVirtualServer function is still using put method https://github.com/scottdware/go-bigip/blob/master/ltm.go#L1818 . Are you planning to update it?? Could we contribute with a PR to address it??

Related rancher issue, rancher/rancher#13269

Thanks....

@alena1108
Copy link

@scottdware do you think this issue could be addressed in the near future?

@scottdware
Copy link
Owner

Thanks, @rawmind0 for catching this. If you want to go ahead and submit a PR for this, I'd be more than happy to merge it. Unfortunately, I don't work with F5's a lot anymore in my new job, so my access to them is extremely limited for testing purposes, etc.

@rawmind0
Copy link
Contributor Author

@scottdware, submitted PR #87 to solve this issue.

Tested using azure f5 bigip virtual appliance 12.1.4 and working fine.

marsu-p pushed a commit to marsu-p/go-bigip that referenced this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants