'Check invalid cli args'

def check_cli_args(self):

    if self.connect_port:
        if ((int(self.connect_port) != 161) and ((int(self.connect_port) > 65535) or (int(self.connect_port) < 1025))):
            self.module.fail_json(msg=('Error:    The    value    of    connect_port    %s    is    out    of    [161,    1025    -    65535].' % self.connect_port))
