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

the node's "downInternval" and "interval" values are not changing and stay on default values #1617

Open
shariaty59 opened this issue Dec 19, 2023 · 1 comment

Comments

@shariaty59
Copy link

Hi, I am trying to update the node's "downInternval" and "interval" while I'm adding it to the pool but those values are not changing and stay at default. This is the simple code I am testing. as you see I also tried updating these values after the node is created, but still no luck. Please advise. Thank you.

`from f5.bigip import ManagementRoot
mgmt = ManagementRoot('ip', 'user', 'pass')
pool = mgmt.tm.ltm.pools.pool.load(partition='Common', name='my-pool')

server_name = "my-server"
app_port = "440"

socket_name = f"{server_name}:{app_port}"
address = f"{server_name}.github.com"
fqdn = {"autopopulate": "enabled",
"downInternval": 6,
"interval": 300,
"tmName": address}

member_add = pool.members_s.members.create(
partition='Common',
name=socket_name,
fqdn=fqdn
)

node = mgmt.tm.ltm.nodes.node.load(partition='Common', name=server_name)

node.fqdn['downInterval'] = 10
node.fqdn['interval'] = 350

print (node.raw)`

@f5-rahm
Copy link
Contributor

f5-rahm commented Dec 27, 2023

hi @shariaty59 did you do a node.update() after setting the fqdn attributes? Setting them locally doesn't automatically update the object on BIG-IP, it just updates the local python object until you call the update() method.

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