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

Adding a monitor to pool deletes all pool settings #13

Closed
kokhang opened this issue Jul 7, 2016 · 1 comment
Closed

Adding a monitor to pool deletes all pool settings #13

kokhang opened this issue Jul 7, 2016 · 1 comment

Comments

@kokhang
Copy link

kokhang commented Jul 7, 2016

When adding a monitor to pool with AddMonitorToPool(), all settings in the pool are removed.

f5 := bigip.NewSession("localhost", "admin", "password")
f5.CreatePool("test-pool")
pool, _ := f5.GetPool("test-pool")
pool.AllowSNAT = true
f5.ModifyPool("test-pool", pool)
f5.CreateMonitor("web_http_monitor", "http", 5, 16, "GET /\r\n", "200 OK")
err := f5.AddMonitorToPool("web_http_monitor", "test-pool")

After executing this, the value of the allowSNAT flag gets removed.

@SqiSch
Copy link

SqiSch commented Feb 26, 2017

Running into the same issue. Thx for the fix.
Please merge the fix #14 or provide another solution @scottdware

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

2 participants