diff options
| author | Paul C. Buetow <paul@buetow.org> | 2014-05-16 17:52:10 +0200 |
|---|---|---|
| committer | Paul C. Buetow <paul@buetow.org> | 2014-05-16 17:52:10 +0200 |
| commit | d09efb4aa6858d43ce44039383a02e76b2856b38 (patch) | |
| tree | c40ae6e0baee7e33cde855c33329ed1d474f6019 | |
| parent | b5a64c14f6ad75add778b79dd57b97a76db5b2be (diff) | |
can also get the vlan
| -rw-r--r-- | docs/fapi.pod | 2 | ||||
| -rwxr-xr-x | src/fapi | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/fapi.pod b/docs/fapi.pod index 21b9683..b5cfa9b 100644 --- a/docs/fapi.pod +++ b/docs/fapi.pod @@ -123,7 +123,7 @@ A simple nPath service can be created as follows. # Restrict the vserver to a specific VLAN (IMPORTANT! security # hole otherwise!) - fapi vserver myvserver.example.com:443 set vlans VLANNAME + fapi vserver myvserver.example.com:443 set vlan VLANNAME # Put the VirtualAddress of the vserver into a specific traffic group fapi vip myserver.example.com set tgroup some-traffic-group @@ -89,11 +89,11 @@ class FapiBase(object): ' vserver', ' vserver NAME create [protocol] [profile] [poolname] [mask]', ' vserver NAME delete', - ' vserver NAME get brief|detail|status', + ' vserver NAME get brief|detail|status|vlan', ' vserver NAME set nat|pat disabled|enabled', ' vserver NAME set pool POOLNAME', ' vserver NAME set snat automap|none' - ' vserver NAME set vlans [list,of,vlans,to,allow]', + ' vserver NAME set vlan [list,of,vlans,to,allow]', + reset, 'The following partially needs admininstrator privileges on / and /Common', style + @@ -431,6 +431,8 @@ class Fapi(FapiBase): return lambda: brief(f5) elif a.sub2 == 'status': return lambda: f5().get_object_status([name]) + elif a.sub2 == 'vlan': + return lambda: f5().get_vlan([name]) elif a.sub == 'create': protocol = a.sub2 if a.sub2 else 'PROTOCOL_TCP' if a.sub3: @@ -483,7 +485,7 @@ class Fapi(FapiBase): return lambda: f5().set_source_address_translation_none([name]) elif a.sub3 == 'automap': return lambda: f5().set_source_address_translation_automap([name]) - elif a.sub2 == 'vlans': + elif a.sub2 == 'vlan': vlans = a.sub3.split(',') if a.sub3 else [] vlan_filter_list = { 'state': 'STATE_ENABLED', |
