Forum Discussion
Maylin
Feb 02, 2021Nimbostratus
Trying to create VIPs via Python and get an error
Here is the snippet of code that is used to create the VIPs on the f5; rv0=revisedServer.replace("dev_","test_vip_") print (eachServer[0][3].upper()) rv1=eachServer[0][3].upper() param...
JRahm
Feb 03, 2021Admin
Some feedback on your sample:
'Protocol' --> Should be:
'ipProtocol'
'vlansEnabled': 'True' --> Should be:
'vlansEnabled': true
'icmpecho' --> Should be:
'icmpEcho'
BUT
this is not an attribute on the virtual server, it's on the virtual address (/mgmt/tm/ltm/virtual-address/<ip>), as is the 'arp' attribute
'state': 'disabled' --> Should be:
'enabled': true
OR
'disabled': true
'port' --> Is included in:
'destination'
BUT
that property is missing, it should include ip:port
Make sure profiles is configured appropriately, it is a sub collection
'tagMode' is not a property I can find on either virtual server or virtual address, what version are you on?
If you want to see the properties on a method, you can use the example by hitting https://your.bigip.here/mgmt/tm/ltm/virtual/example. It's 503 lines long or I'd post it here. Hope this helps.
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