'Check invalid args'

def check_args(self):

    if self.port_number:
        if self.port_number.isdigit():
            if ((int(self.port_number) < 1025) or (int(self.port_number) > 65535)):
                self.module.fail_json(msg='Error:    The    value    of    port_number    is    out    of    [1025    -    65535].')
        else:
            self.module.fail_json(msg='Error:    The    port_number    is    not    digit.')
    if (self.interface_type and self.interface_number):
        tmp_interface = (self.interface_type + self.interface_number)
        if (tmp_interface not in self.interface[0]):
            self.module.fail_json(msg=('Error:    The    interface    %s    is    not    in    the    device.' % tmp_interface))
