From 7ea2c3cb0de31308c7b11a85f44ca0389d2a1c63 Mon Sep 17 00:00:00 2001 From: "Paul C. Buetow" Date: Fri, 16 May 2014 17:34:01 +0200 Subject: can set snat automap on vserver --- docs/fapi.1 | 2 +- src/fapi | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/fapi.1 b/docs/fapi.1 index b19cc21..a5a8ec8 100644 --- a/docs/fapi.1 +++ b/docs/fapi.1 @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "FAPI 1" -.TH FAPI 1 "2014-04-29" "fapi 0.6.2" "User Commands" +.TH FAPI 1 "2014-05-15" "fapi 0.6.2" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff --git a/src/fapi b/src/fapi index 5d26e2a..67bccf6 100755 --- a/src/fapi +++ b/src/fapi @@ -92,7 +92,7 @@ class FapiBase(object): ' vserver NAME get brief|detail|status', ' vserver NAME set nat|pat disabled|enabled', ' vserver NAME set pool POOLNAME', - ' vserver NAME set snat none' + ' vserver NAME set snat automap|none' + reset, 'The following partially needs admininstrator privileges on / and /Common', style + @@ -480,6 +480,8 @@ class Fapi(FapiBase): elif a.sub2 == 'snat': if a.sub3 == 'none': return lambda: f5().set_source_address_translation_none([name]) + elif a.sub3 == 'automap': + return lambda: f5().set_source_address_translation_automap([name]) def __do_vip(self, f5): ''' Do stuff concerning virtual addresses ''' -- cgit v1.2.3