The nova.network.quantumv2.api Module

class API(db_driver=None)

Bases: nova.db.base.Base

API for interacting with the quantum 2.x API.

add_dns_entry(context, address, name, dns_type, domain)

Create specified DNS entry for address.

add_fixed_ip_to_instance(context, instance, network_id)

Add a fixed ip to the instance from specified network.

add_network_to_project(context, project_id, network_uuid=None)

Force add a network to the project.

allocate_floating_ip(context, pool=None)

Add a floating ip to a project from a pool.

allocate_for_instance(context, instance, **kwargs)

Allocate all network resources for the instance.

associate_floating_ip(context, *args, **kwargs)

Associate a floating ip with a fixed ip.

create_private_dns_domain(context, domain, availability_zone)

Create a private DNS domain with nova availability zone.

create_public_dns_domain(context, domain, project=None)

Create a private DNS domain with optional nova project.

deallocate_for_instance(context, instance, **kwargs)

Deallocate all network resources related to the instance.

delete(context, network_uuid)
delete_dns_domain(context, domain)

Delete the specified dns domain.

delete_dns_entry(context, name, domain)

Delete the specified dns entry.

disassociate(context, network_uuid)
disassociate_floating_ip(context, *args, **kwargs)

Disassociate a floating ip from the fixed ip it is associated with.

get(context, network_uuid)
get_all(context)
get_dns_domains(context)

Return a list of available dns domains.

These can be used to create DNS entries for floating ips.

get_dns_entries_by_address(context, address, domain)

Get entries for address and domain.

get_dns_entries_by_name(context, name, domain)

Get entries for name and domain.

get_fixed_ip(context, id)
get_fixed_ip_by_address(context, address)
get_floating_ip(context, id)
get_floating_ip_by_address(context, address)
get_floating_ip_pools(context)
get_floating_ips_by_fixed_address(context, fixed_address)
get_floating_ips_by_project(context)
get_instance_id_by_floating_address(context, address)
get_instance_nw_info(context, *args, **kwargs)
get_instance_uuids_by_ip_filter(context, filters)

Return a list of dicts in the form of [{‘instance_uuid’: uuid}] that matched the ip filter.

get_vif_by_mac_address(context, mac_address)
get_vifs_by_instance(context, instance)
modify_dns_entry(context, name, address, domain)

Create specified DNS entry for address.

release_floating_ip(context, address, affect_auto_assigned=False)

Remove a floating ip with the given address from a project.

remove_fixed_ip_from_instance(context, instance, address)

Remove a fixed ip from the instance.

setup_networks_on_host(context, instance, host=None, teardown=False)

Setup or teardown the network structures.

validate_networks(context, requested_networks)

Validate that the tenant has the requested networks.

Previous topic

The nova.network.quantum.nova_ipam_lib Module

Next topic

The nova.network.sg Module

This Page