'Check all input params'

def check_params(self):

    if ((not self.vlan_id) and self.description):
        self.module.fail_json(msg='Error:    Vlan    description    could    be    set    only    at    one    vlan.')
    if ((not self.vlan_id) and self.name):
        self.module.fail_json(msg='Error:    Vlan    name    could    be    set    only    at    one    vlan.')
    if self.vlan_id:
        if (not self.vlan_id.isdigit()):
            self.module.fail_json(msg='Error:    Vlan    id    is    not    digit.')
        if ((int(self.vlan_id) <= 0) or (int(self.vlan_id) > 4094)):
            self.module.fail_json(msg='Error:    Vlan    id    is    not    in    the    range    from    1    to    4094.')
    if self.description:
        if ((len(self.description) > 81) or (len(self.description.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    vlan    description    is    not    in    the    range    from    1    to    80.')
    if self.name:
        if ((len(self.name) > 31) or (len(self.name.replace('    ', '')) < 1)):
            self.module.fail_json(msg='Error:    Vlan    name    is    not    in    the    range    from    1    to    31.')
