From 095171d70c4e3359c19f55a5d46e6f275e169e10 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (lxpbuetow.webde.local)" Date: Mon, 7 Jul 2014 15:02:43 +0200 Subject: fix the a argument --- src/fapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fapi b/src/fapi index 0a5189a..765058b 100755 --- a/src/fapi +++ b/src/fapi @@ -429,7 +429,7 @@ class Fapi(FapiBase): else: fqdn_or_ip, ip, port = self.lookup(a.name) if a.a: - name = fqdn_or_ip + name = a.name else: name = fqdn_or_ip + '_' + port if a.sub == 'get': -- cgit v1.2.3 From 04afd66cfe089e727a5832f586ce78bfc0167e8a Mon Sep 17 00:00:00 2001 From: "Paul Buetow (lxpbuetow.webde.local)" Date: Mon, 7 Jul 2014 15:22:40 +0200 Subject: fix --- src/fapi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/fapi b/src/fapi index 765058b..1db236f 100755 --- a/src/fapi +++ b/src/fapi @@ -420,17 +420,17 @@ class Fapi(FapiBase): a = self._args if not a.name: return lambda: f5().get_list() - # Check for Pattern like /partition/foo-bar.example.com_443 - m = re.match('^(.*)_(\d+)$', a.name) - if m: - fqdn_or_ip = m.group(1) - port = m.group(2) - _, ip, _ = self.lookup(fqdn_or_ip) - else: - fqdn_or_ip, ip, port = self.lookup(a.name) if a.a: name = a.name else: + # Check for Pattern like /partition/foo-bar.example.com_443 + m = re.match('^(.*)_(\d+)$', a.name) + if m: + fqdn_or_ip = m.group(1) + port = m.group(2) + _, ip, _ = self.lookup(fqdn_or_ip) + else: + fqdn_or_ip, ip, port = self.lookup(a.name) name = fqdn_or_ip + '_' + port if a.sub == 'get': if a.sub2 == 'detail': -- cgit v1.2.3 From 2b7a4ca84f4101dc13c0a19d37abe66f637dbfe4 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (lxpbuetow.webde.local)" Date: Mon, 7 Jul 2014 16:35:19 +0200 Subject: fix docu --- src/fapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fapi b/src/fapi index 1db236f..cbe7eac 100755 --- a/src/fapi +++ b/src/fapi @@ -122,7 +122,7 @@ class FapiBase(object): ' -f Common -b balancer.example.com selfip', ' -f Common -b balancer.example.com selfip NAME create NETMASK VLANNAME [TGROUP]', ' -f Common -b balancer.example.com selfip NAME delete', - ' -f Common -b balancer.example.com selfip NAME get detail|tgroup', + ' -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 vlan', ' -f Common -b balancer.example.com vlan NAME create tagged VLANID internal|external|...', -- cgit v1.2.3 From 237fdd9bb11ab3fc61b39fd0804e8d6464214771 Mon Sep 17 00:00:00 2001 From: "Paul C. Buetow (mars.fritz.box)" Date: Mon, 7 Jul 2014 18:43:41 +0200 Subject: New release --- .version | 2 +- debian/changelog | 6 ++++++ debian/files | 2 +- docs/extended-synopsis.txt | 2 +- docs/fapi.1 | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.version b/.version index a602fc9..b0bb878 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.9.4 +0.9.5 diff --git a/debian/changelog b/debian/changelog index e5600e0..8f9cb3c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +fapi (0.9.5) stable; urgency=low + + * Fixes the -a argument, didn't really work + + -- Paul Buetow Mon, 07 Jul 2014 18:43:09 +0200 + fapi (0.9.4) stable; urgency=low * Fix fapi.buetow.org HP (Synopsis text) diff --git a/debian/files b/debian/files index 6d9b871..ef8f2ed 100644 --- a/debian/files +++ b/debian/files @@ -1 +1 @@ -fapi_0.9.4_all.deb utils optional +fapi_0.9.5_all.deb utils optional diff --git a/docs/extended-synopsis.txt b/docs/extended-synopsis.txt index eb1e87d..ab1014b 100644 --- a/docs/extended-synopsis.txt +++ b/docs/extended-synopsis.txt @@ -32,7 +32,7 @@ The following partially needs admininstrator privileges on / and /Common: -f Common -b balancer.example.com selfip -f Common -b balancer.example.com selfip NAME create NETMASK VLANNAME [TGROUP] -f Common -b balancer.example.com selfip NAME delete - -f Common -b balancer.example.com selfip NAME get detail|tgroup + -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 vlan -f Common -b balancer.example.com vlan NAME create tagged VLANID internal|external|... diff --git a/docs/fapi.1 b/docs/fapi.1 index d742ef5..fe8ee73 100644 --- a/docs/fapi.1 +++ b/docs/fapi.1 @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "FAPI 1" -.TH FAPI 1 "2014-05-27" "fapi 0.9.4" "User Commands" +.TH FAPI 1 "2014-05-27" "fapi 0.9.5" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l -- cgit v1.2.3 From 6799dbf086f147e1d15f39a5d1cdc5a4e892bc8b Mon Sep 17 00:00:00 2001 From: "Paul Buetow (lxpbuetow.webde.local)" Date: Mon, 14 Jul 2014 13:12:15 +0200 Subject: Today is National Existential Ennui Awareness Day. --- docs/fapi.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fapi.1 b/docs/fapi.1 index fe8ee73..2c7ff0b 100644 --- a/docs/fapi.1 +++ b/docs/fapi.1 @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "FAPI 1" -.TH FAPI 1 "2014-05-27" "fapi 0.9.5" "User Commands" +.TH FAPI 1 "2014-06-18" "fapi 0.9.5" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l -- cgit v1.2.3