'Get snmp version'

def get_snmp_version(self):

    version = None
    conf_str = CE_GET_SNMP_VERSION
    recv_xml = self.netconf_get_config(conf_str=conf_str)
    if ('<data/>' in recv_xml):
        pass
    else:
        xml_str = recv_xml.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)
        version_info = root.find('data/snmp/engine')
        if version_info:
            for site in version_info:
                if (site.tag in ['version']):
                    version = site.text
    return version
