summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/fapi.pod4
-rwxr-xr-xsrc/fapi2
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/fapi.pod b/docs/fapi.pod
index e7a7bd1..21b9683 100644
--- a/docs/fapi.pod
+++ b/docs/fapi.pod
@@ -121,6 +121,10 @@ A simple nPath service can be created as follows.
fapi vserver myvserver.example.com:443 create PROTOCOL_TCP nPath
fapi vserver myvserver.example.com:443 set pool foopool
+ # Restrict the vserver to a specific VLAN (IMPORTANT! security
+ # hole otherwise!)
+ fapi vserver myvserver.example.com:443 set vlans VLANNAME
+
# Put the VirtualAddress of the vserver into a specific traffic group
fapi vip myserver.example.com set tgroup some-traffic-group
diff --git a/src/fapi b/src/fapi
index 55c0bcc..5a8515c 100755
--- a/src/fapi
+++ b/src/fapi
@@ -93,7 +93,7 @@ class FapiBase(object):
' 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 vlans [list,of,vlans,to,allow]',
+ reset,
'The following partially needs admininstrator privileges on / and /Common',
style +