'Check all input params'

def check_params(self):

    if (not self.session_name):
        self.module.fail_json(msg='Error:    Missing    required    arguments:    session_name.')
    if self.session_name:
        if ((len(self.session_name) < 1) or (len(self.session_name) > 15)):
            self.module.fail_json(msg='Error:    Session    name    is    invalid.')
    if (self.local_discr is not None):
        if ((self.local_discr < 1) or (self.local_discr > 16384)):
            self.module.fail_json(msg='Error:    Session    local_discr    is    not    ranges    from    1    to    16384.')
    if (self.remote_discr is not None):
        if ((self.remote_discr < 1) or (self.remote_discr > 4294967295)):
            self.module.fail_json(msg='Error:    Session    remote_discr    is    not    ranges    from    1    to    4294967295.')
    if (self.min_tx_interval is not None):
        if ((self.min_tx_interval < 50) or (self.min_tx_interval > 1000)):
            self.module.fail_json(msg='Error:    Session    min_tx_interval    is    not    ranges    from    50    to    1000.')
    if (self.min_rx_interval is not None):
        if ((self.min_rx_interval < 50) or (self.min_rx_interval > 1000)):
            self.module.fail_json(msg='Error:    Session    min_rx_interval    is    not    ranges    from    50    to    1000.')
    if (self.detect_multi is not None):
        if ((self.detect_multi < 3) or (self.detect_multi > 50)):
            self.module.fail_json(msg='Error:    Session    detect_multi    is    not    ranges    from    3    to    50.')
    if (self.wtr_interval is not None):
        if ((self.wtr_interval < 1) or (self.wtr_interval > 60)):
            self.module.fail_json(msg='Error:    Session    wtr_interval    is    not    ranges    from    1    to    60.')
    if (self.tos_exp is not None):
        if ((self.tos_exp < 0) or (self.tos_exp > 7)):
            self.module.fail_json(msg='Error:    Session    tos_exp    is    not    ranges    from    0    to    7.')
    if self.description:
        if ((len(self.description) < 1) or (len(self.description) > 51)):
            self.module.fail_json(msg='Error:    Session    description    is    invalid.')
