Forum Discussion
1 Reply
Sort By
- Michael_Bell_31Nimbostratus
Hi 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!)