diff options
Diffstat (limited to 'cli/objects')
-rw-r--r-- | cli/objects/client.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/objects/client.py b/cli/objects/client.py index d438742..58f8094 100644 --- a/cli/objects/client.py +++ b/cli/objects/client.py @@ -121,3 +121,17 @@ class OgClient(): 'livedir': 'ogLive' } rest.post('/client/add', payload=payload) + + @staticmethod + def delete_client(rest, args): + parser = argparse.ArgumentParser(prog='ogcli delete client') + parser.add_argument('--ip', + action='append', + default=[], + required=True, + help='Client IP') + parsed_args = parser.parse_args(args) + payload = { + 'clients': parsed_args.ip, + } + rest.post('/client/delete', payload=payload) |