SaranSakthivel
Jan 24, 2018Nimbostratus
Disable-Enable virtual server using F5 Python SDK
How to disable/enable a virtual server using f5 python sdk ?
I am getting an error 404, cant have disable when enable is present.I did the following tweak (delete enabled dictionary key, if i have to disable) to make it work.
Is it the correct method?, is there a better way ?Before executing the below script, VS was in enabled state
_virtual = g_f5mgmt.tm.ltm.virtuals.virtual.load(partition=_vs_prt_name, name=_vs_name)
_virtual.disabled = True
del _virtual.raw['enabled']
_virtual.update()
After executing the above script, VS is in disabled state