Forum Discussion
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 h...
SaranSakthivel
Jan 25, 2018Nimbostratus
Thank You Jason,
I watched one of the videos from Agility 2017 'The F5 Python SDK for iControl REST'.
I was interested in the 'reducing Boolean pairs'. I found the following part of the response.'_meta_data': {
'reduction_forcing_pairs': [('enabled',
'disabled'),
('online',
'offline'),
('vlansEnabled',
'vlansDisabled')]
However when i tried the following i get an error. Is 'reducing Boolean pairs' not supported for virtual server configs ?
_virtual = g_f5mgmt.tm.ltm.virtuals.virtual.load(partition=_vs_prt_name, name=_vs_name)
print(_virtual.enabled)
print(_virtual.disabled)
Output:
True
'' object has no attribute 'disabled'
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects