Add empty method calls for remaining all commands
This commit is contained in:
@@ -23,7 +23,8 @@ def main():
|
||||
api = LibraAPI(args.os_username, args.os_password, args.os_tenant_name,
|
||||
args.os_auth_url, args.os_region_name)
|
||||
|
||||
method = getattr(api, '{cmd}_lb'.format(cmd=args.command))
|
||||
cmd = args.command.replace('-', '_')
|
||||
method = getattr(api, '{cmd}_lb'.format(cmd=cmd))
|
||||
|
||||
method(args)
|
||||
|
||||
|
||||
@@ -45,6 +45,30 @@ class LibraAPI(object):
|
||||
'sessionPersistence', 'connectionThrottle']
|
||||
self._render_dict(column_names, columns, body)
|
||||
|
||||
def delete_lb(self, args):
|
||||
pass
|
||||
|
||||
def create_lb(self, args):
|
||||
pass
|
||||
|
||||
def modify_lb(self, args):
|
||||
pass
|
||||
|
||||
def node_list_lb(self, args):
|
||||
pass
|
||||
|
||||
def node_delete_lb(self, args):
|
||||
pass
|
||||
|
||||
def node_add_lb(self, args):
|
||||
pass
|
||||
|
||||
def node_modify_lb(self, args):
|
||||
pass
|
||||
|
||||
def node_status_lb(self, args):
|
||||
pass
|
||||
|
||||
def _render_list(self, column_names, columns, data):
|
||||
table = prettytable.PrettyTable(column_names)
|
||||
for item in data:
|
||||
|
||||
Reference in New Issue
Block a user