The nova.virt.netutils Module

Network-releated utilities for supporting libvirt connection code.

get_injected_network_template(network_info, use_ipv6=False, template='/build/buildd/nova-2012.2.1+stable-20121212-a99a802e/nova/virt/interfaces.template')

return a rendered network template for the given network_info

Parameters:network_infoget_instance_nw_info()

Note: this code actually depends on the legacy network_info, but will convert the type itself if necessary.

get_ip_version(cidr)
get_net_and_mask(cidr)
get_net_and_prefixlen(cidr)

Previous topic

The nova.virt.libvirt.volume_nfs Module

Next topic

The nova.virt.powervm.command Module

This Page