The nova.network.quantumv2.api Module

class API

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, *args, **kwargs)

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, *args, **kwargs)

Allocate network resources for the instance.

TODO(someone): document the rest of these parameters.

Parameters:macs – None or a set of MAC addresses that the instance should use. macs is supplied by the hypervisor driver (contrast with requested_networks which is user supplied). NB: QuantumV2 currently assigns hypervisor supplied MAC addresses to arbitrary networks, which requires openflow switches to function correctly if more than one network is being used with the bare metal hypervisor (which is the only one known to limit MAC addresses).
allocate_port_for_instance(context, *args, **kwargs)
associate_floating_ip(context, *args, **kwargs)

Associate a floating ip with a fixed ip.

conductor_api = <nova.conductor.api.API object at 0x10961b10>
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.

deallocate_port_for_instance(context, *args, **kwargs)
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 instance.

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)

Returns the instance id a floating ip’s fixed ip is allocated to.

get_instance_nw_info(context, instance, conductor_api=None, networks=None)
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)
list_ports(context, **search_opts)
migrate_instance_finish(context, instance, migration)

Finish migrating the network of an instance.

migrate_instance_start(context, instance, migration)

Start to migrate the network of an 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, *args, **kwargs)

Remove a fixed ip from the instance.

security_group_api = <nova.api.openstack.compute.contrib.security_groups.NativeNovaSecurityGroupAPI object at 0x10961990>
setup_networks_on_host(context, instance, host=None, teardown=False)

Setup or teardown the network structures.

show_port(context, port_id)
trigger_instance_add_security_group_refresh(context, instance_ref)
trigger_instance_remove_security_group_refresh(context, instance_ref)
trigger_security_group_members_refresh(context, instance_ref)
validate_networks(context, requested_networks)

Validate that the tenant can use the requested networks.

Previous topic

The nova.network.nova_ipam_lib Module

Next topic

The nova.network.rpcapi Module

This Page