Forum Discussion
amintej
Cirrus
Mar 22, 2018F5 SDK: How to create VS with SNAT pool setting?
Hello guys, How can I create virtual server with SNAT Pool setting ? I want to include snat setting in my code: mgmt.tm.ltm.virtuals.virtual.create(name=vs_name,destination=vs_destination,ip...
Michael_Bell_31
Nimbostratus
Mar 28, 2018Hi amintej,
You can do something like this:
if snatNone:
virtual.sourceAddressTranslation = {"type" : "none"}
if snatPool:
virtual.sourceAddressTranslation = {"type" : "snat", "pool" : poolname }
if automap:
virtual.sourceAddressTranslation = {"type" : "automap" }
Remember to call virtual.update() after making modifications to the virtual object (not just SNAT!)
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