diff options
| author | Paul C. Buetow <paul@buetow.org> | 2014-04-12 13:17:32 +0200 |
|---|---|---|
| committer | Paul C. Buetow <paul@buetow.org> | 2014-04-12 13:17:32 +0200 |
| commit | 745c78f5d18c2f70ef40abf21c817e22c7756927 (patch) | |
| tree | 13d875ea8a31734d0ac9e63f34d4400524eac24f /src | |
| parent | 6e509e340169fc7363244feef7ef437fea932058 (diff) | |
some more extra info output
Diffstat (limited to 'src')
| -rwxr-xr-x | src/fapi.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fapi.py b/src/fapi.py index eabe478..19cb3eb 100755 --- a/src/fapi.py +++ b/src/fapi.py @@ -84,13 +84,13 @@ class Fapi(object): if a.arg == 'show': if a.subarg == 'status': - self.info('Getting node monitor status') + self.info('Getting node monitor status of \'%s\'' % nodename) nodename = a.subarg2 print f.LocalLB.NodeAddressV2.get_monitor_status([nodename]) return True else: - self.info('Get node list') + self.info('Getting node list') print f.LocalLB.NodeAddressV2.get_list() return True @@ -119,13 +119,13 @@ class Fapi(object): if a.arg == 'show': if a.subarg == 'status': - self.info('Getting pool status') + self.info('Getting pool status of \'%s\'' % poolname) poolname = a.subarg2 print f.LocalLB.Pool.get_object_status([poolname]) return True elif a.subarg == 'members': - self.info('Get pool members') + self.info('Get pool members of \'%s\'' % poolname) poolname = a.subarg2 print f.LocalLB.Pool.get_member_v2([poolname]) return True @@ -147,11 +147,13 @@ class Fapi(object): pm['address'] = str(y[0]) pm['port'] = int(y[1]) poolmembers.append(pm) + self.info('Creating pool \'%s\'' % poolname) f.LocalLB.Pool.create_v2([poolname],[method],[poolmembers]) return True elif a.arg == 'delete': poolname = a.subarg + self.info('Deleting pool \'%s\'' % poolname) f.LocalLB.Pool.delete_pool([poolname]) return True |
