diff options
| author | Paul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de> | 2014-08-21 14:50:19 +0200 |
|---|---|---|
| committer | Paul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de> | 2014-08-21 14:50:19 +0200 |
| commit | 31d7cdf265fcff14c5e60627f621143a050f5253 (patch) | |
| tree | 122bd3ec42a6d5eb8a9bb7dbd2606414c7b41420 | |
| parent | 1aea05961a4d047587f4e5d8790060cd11b837b1 (diff) | |
can set vlans of selfips
| -rwxr-xr-x | src/fapi | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -95,6 +95,7 @@ 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', @@ -732,6 +733,9 @@ class Fapi(FapiBase): if a.sub2 == 'tgroup': tgroup = a.sub3 return lambda: f5().set_traffic_group([a.name], [tgroup]) + elif a.sub2 == 'vlan': + vlan = a.sub3 + return lambda: f5().set_vlan([name], [vlan]) elif a.sub == 'create': _, ip, _ = self.lookup(a.name) netmask = a.sub2 @@ -817,6 +821,7 @@ class Fapi(FapiBase): if a.sub3 == 'threshold': trunk = a.sub4 threshold = a.sub5 + print trunk return lambda: f5().set_trunk_attribute_threshold([a.name], [[trunk]], [[threshold]]) |
