'Check all input params'

def check_params(self):

    if self.eth_trunk_id:
        if (not self.eth_trunk_id.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    eth_trunk_id    is    an    integer.')
        if ((int(self.eth_trunk_id) < 0) or (int(self.eth_trunk_id) > 511)):
            self.module.fail_json(msg='Error:    The    value    of    eth_trunk_id    is    not    in    the    range    from    0    to    511.')
    if self.dfs_group_id:
        if (self.dfs_group_id != '1'):
            self.module.fail_json(msg='Error:    The    value    of    dfs_group_id    must    be    1.')
    if self.mlag_id:
        if (not self.mlag_id.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    mlag_id    is    an    integer.')
        if ((int(self.mlag_id) < 1) or (int(self.mlag_id) > 2048)):
            self.module.fail_json(msg='Error:    The    value    of    mlag_id    is    not    in    the    range    from    1    to    2048.')
    if self.mlag_system_id:
        if (not self.check_macaddr()):
            self.module.fail_json(msg=('Error:    mlag_system_id    has    invalid    value    %s.' % self.mlag_system_id))
    if self.mlag_priority_id:
        if (not self.mlag_priority_id.isdigit()):
            self.module.fail_json(msg='Error:    The    value    of    mlag_priority_id    is    an    integer.')
        if ((int(self.mlag_priority_id) < 0) or (int(self.mlag_priority_id) > 254)):
            self.module.fail_json(msg='Error:    The    value    of    mlag_priority_id    is    not    in    the    range    from    0    to    254.')
    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))
