@classmethod
def _get_namespace_index(cls, libvirt_network_if):
    matcher = re.match('^tt(\\d+)$', libvirt_network_if)
    return (int(matcher.groups()[0]) if (matcher is not None) else 0)
@classmethod
def _get_namespace_index(cls, libvirt_network_if):
    matcher = re.match('^tt(\\d+)$', libvirt_network_if)
    return (int(matcher.groups()[0]) if (matcher is not None) else 0)