'Check all input params'

def check_params(self):

    if (self.vrf == '_public_'):
        self.module.fail_json(msg='Error:    The    vrf    name    _public_    is    reserved.')
    if (not self.get_vrf()):
        self.module.fail_json(msg='Error:    The    vrf    name    do    not    exist.')
    if (self.state == 'present'):
        if self.route_distinguisher:
            if (not is_valid_value(self.route_distinguisher)):
                self.module.fail_json(msg='Error:The    vrf    route    distinguisher    length    must    between    3    ~    21,i.e.    X.X.X.X:number<0-65535>    or    number<0-65535>:number<0-4294967295>or    number<0-65535>.number<0-65535>:number<0-65535>or    number<65536-4294967295>:number<0-65535>    but    not    be    0:0    or    0.0:0.')
        if (not self.vpn_target_state):
            if (self.vpn_target_value or self.vpn_target_type):
                self.module.fail_json(msg='Error:    The    vpn    target    state    should    be    exist.')
        if self.vpn_target_state:
            if ((not self.vpn_target_value) or (not self.vpn_target_type)):
                self.module.fail_json(msg='Error:    The    vpn    target    value    and    type    should    be    exist.')
        if self.vpn_target_value:
            if (not is_valid_value(self.vpn_target_value)):
                self.module.fail_json(msg='Error:The    vrf    target    value    length    must    between    3    ~    21,i.e.    X.X.X.X:number<0-65535>    or    number<0-65535>:number<0-4294967295>or    number<0-65535>.number<0-65535>:number<0-65535>or    number<65536-4294967295>:number<0-65535>    but    not    be    0:0    or    0.0:0.')
