Forum Discussion
Joel_Breton
Nimbostratus
May 26, 2017Add allowed VLAN to Virtual Server - Python F5-SDK
I'm trying to set the allowed vlan on a virtual server using the Python SDK.
Here's my code
newvs = vs.virtual.create(name='myvs', destination='10.0.0.1:80')
newvs.mask = '255.255.255.25...
Joel_Breton
Nimbostratus
May 31, 2017I would advise against using an absolute update on a BIG-IP object as this activates the custom checkbox for every setting - unless this is your intent
Instead of
newvs = vs.virtual.create(name='myvs', destination='10.0.0.1:80')
newvs.mask = '255.255.255.255'
newvs.update()
Use this approach
newvs = vs.virtual.create(name='myvs', destination='10.0.0.1:80')
newvs.update(mask='255.255.255.255')
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