'Check all input params'

def check_params(self):

    if (not self.interface):
        self.module.fail_json(msg='Error:    Interface    name    cannot    be    empty.')
    if self.interface:
        intf_type = get_interface_type(self.interface)
        if (not intf_type):
            self.module.fail_json(msg=('Error:    Interface    name    of    %s    is    error.' % self.interface))
    if ((self.state == 'absent') and (self.reset or self.mode_enable or self.enable)):
        self.module.fail_json(msg="Error:    It's    better    to    use    state=present    when    configuring    or    unconfiguring    enable,    mode_enable    or    using    reset    flag.    state=absent    is    just    for    when    using    local_mac    param.")
    if ((self.state == 'absent') and (not self.local_mac)):
        self.module.fail_json(msg='Error:    Please    specify    local_mac    parameter.')
    if (self.state == 'present'):
        if ((self.dldp_intf_conf['dldpEnable'] == 'disable') and (not self.enable) and (self.mode_enable or self.local_mac or self.reset)):
            self.module.fail_json(msg='Error:    when    DLDP    is    already    disabled    on    this    port,    mode_enable,    local_mac    and    reset    parameters    are    not    expected    to    configure.')
        if ((self.enable == 'disable') and (self.mode_enable or self.local_mac or self.reset)):
            self.module.fail_json(msg='Error:    when    using    enable=disable,    mode_enable,    local_mac    and    reset    parameters    are    not    expected    to    configure.')
    if (self.local_mac and ((self.mode_enable == 'disable') or ((self.dldp_intf_conf['dldpCompatibleEnable'] == 'disable') and (self.mode_enable != 'enable')))):
        self.module.fail_json(msg='Error:    when    DLDP    compatible-mode    is    disabled    on    this    port,    Configuring    local_mac    is    not    allowed.')
    if self.local_mac:
        if (not self.check_macaddr()):
            self.module.fail_json(msg=('Error:    local_mac    has    invalid    value    %s.' % self.local_mac))
