diff options
-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, |