diff options
| author | Paul C. Buetow <paul@buetow.org> | 2014-05-16 17:34:01 +0200 |
|---|---|---|
| committer | Paul C. Buetow <paul@buetow.org> | 2014-05-16 17:34:01 +0200 |
| commit | 7ea2c3cb0de31308c7b11a85f44ca0389d2a1c63 (patch) | |
| tree | 5e60039cbbf7aa4cc83e7b37451bbc696a2de79d | |
| parent | 235cd886bb5620b016656b0f58fe9fe1bd293c73 (diff) | |
can set snat automap on vserver
| -rw-r--r-- | docs/fapi.1 | 2 | ||||
| -rwxr-xr-x | 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 @@ -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 ''' |
