diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 21:50:00 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 22:22:45 +0100 |
commit | 4286c45877630c7c5614d5cbd32d2a22302d472a (patch) | |
tree | 73ecb59263dfa535cfeea9be972f9bb06b9b406b | |
parent | b91ab6ef7813a313e1944e8d01057414166962d8 (diff) |
client: remove --netmask
This set from the room --netmask, this is obsolete, remove it.
-rw-r--r-- | cli/objects/client.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cli/objects/client.py b/cli/objects/client.py index 58f8094..5931ed0 100644 --- a/cli/objects/client.py +++ b/cli/objects/client.py @@ -65,10 +65,6 @@ class OgClient(): nargs='?', required=True, help='specify the id of the repo') - parser.add_argument('--netmask', - nargs='?', - required=True, - help='specify netmask address') parser.add_argument('--room-id', nargs='?', type=int, @@ -96,9 +92,6 @@ class OgClient(): parsed_args = parser.parse_args(args) err = False - if not check_address(parsed_args.netmask): - print('netmask address is not valid', file=sys.stderr) - err = True if not check_address(parsed_args.ip): print('client\'s ip address is not valid', file=sys.stderr) err = True @@ -110,7 +103,7 @@ class OgClient(): sys.exit(1) payload = { 'name': parsed_args.hostname, - 'netmask': parsed_args.netmask, + 'netmask': '0', 'ip': parsed_args.ip, 'mac': parsed_args.mac.replace(":", ""), 'repo_id': parsed_args.repo_id, |