'check if vrf is need to change'

def get_vrf(self):

    getxmlstr = CE_NC_GET_VRF
    xml_str = get_nc_config(self.module, getxmlstr)
    xml_str = xml_str.replace('\r', '').replace('\n', '').replace('xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"', '').replace('xmlns="http://www.huawei.com/netconf/vrp"', '')
    root = ElementTree.fromstring(xml_str)
    vpn_instances = root.findall('data/l3vpn/l3vpncomm/l3vpnInstances/l3vpnInstance')
    if vpn_instances:
        for vpn_instance in vpn_instances:
            if (vpn_instance.find('vrfName').text == self.vrf):
                if (vpn_instance.find('vrfDescription').text == self.description):
                    if (self.state == 'present'):
                        return False
                    else:
                        return True
                else:
                    return True
        return (self.state == 'present')
    else:
        return (self.state == 'present')
