summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Norris (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-11-17 15:06:59 +0100
committerChuck Norris (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-11-17 15:06:59 +0100
commit611890ae16bfa5eba690af829a4793cf04281286 (patch)
treef4e6b54b673d8102b8dc770813b1d395b34d40a6
parent31d7cdf265fcff14c5e60627f621143a050f5253 (diff)
some foo
-rwxr-xr-xsrc/fapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fapi b/src/fapi
index 93f7b8f..c070f8b 100755
--- a/src/fapi
+++ b/src/fapi
@@ -95,7 +95,6 @@ class FapiBase(object):
' vip NAME get arp|detail|status|tgroup',
' vip NAME set arp enabled|disabled',
' vip NAME set tgroup TGROUP',
- ' vip NAME set vlan VLAN',
' vserver',
' vserver NAME create [protocol] [profile] [poolname] [mask]',
' vserver NAME delete',
@@ -127,6 +126,7 @@ class FapiBase(object):
' -f Common -b balancer.example.com selfip NAME delete',
' -f Common -b balancer.example.com selfip NAME get address|detail|tgroup',
' -f Common -b balancer.example.com selfip NAME set tgroup TGROUP',
+ ' -f Common -b balancer.example.com selfip NAME set vlan VLAN',
' -f Common -b balancer.example.com vlan',
' -f Common -b balancer.example.com vlan NAME create tagged VLANID internal|external|...',
' -f Common -b balancer.example.com vlan NAME delete',
@@ -735,7 +735,7 @@ class Fapi(FapiBase):
return lambda: f5().set_traffic_group([a.name], [tgroup])
elif a.sub2 == 'vlan':
vlan = a.sub3
- return lambda: f5().set_vlan([name], [vlan])
+ return lambda: f5().set_vlan([a.name], [vlan])
elif a.sub == 'create':
_, ip, _ = self.lookup(a.name)
netmask = a.sub2