From 4286c45877630c7c5614d5cbd32d2a22302d472a Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 30 Nov 2023 21:50:00 +0100 Subject: client: remove --netmask This set from the room --netmask, this is obsolete, remove it. --- cli/objects/client.py | 9 +-------- 1 file changed, 1 insertion(+), 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, -- cgit v1.2.3-18-g5258