diff options
| -rwxr-xr-x | src/fapi | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -126,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', @@ -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([a.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]]) |
