All Python API summaries for the Nova component networks in OpenStack

Source: Internet
Author: User

Networks

Network interface.

class Novaclient.v2.networks. Network ( manager, info, loaded=false )

Bases: novaclient.openstack.common.apiclient.base.Resource

A Network.

Populate and bind to a manager.

Parameters:
  • Manager –basemanager Object
  • Info –dictionary representing resource attributes
  • loaded –prevent lazy-loading if set to True
human_id = True

name_attr = ' label '

Delete ( )

class Novaclient.v2.networks. NetworkManager ( API )

Bases: novaclient.base.ManagerWithFind

Manage Network resources.

add ( network=none )

Associates The current project with a network. Network can be chosenautomatically or provided explicitly.

parameter S: network , Haven ID of the network to associate (optional).
associate_host ( network , host )

Associate a specific network with a host.

parameter S:
  • network , Haven ID of The network .
  • host , haven name of the host to associate the network with
Associate_project ( network )

Associate a specific network with a project.

The project is defined by the project authenticated against

Parameters: network , Haven ID of the network.
Create ( **kwargs )

Create (allocate) a network. The following parameters areoptional except for label; CIDR or CIDR_V6 must be specified, too.

Parameters:
    • label –str
    • bridge –str
    • Bridge_interface –str
    • CIDR –str
    • cidr_v6 –str
    • Strong>dns1 –str
    • dns2 –str
    • fixed_cidr –str
    • gateway –str
    • gateway_v6 –str
    • multi_host –str
    • Priority –str
    • project_id –str
    • VLAN –int
    • Vlan_start –int
    • Vpn_start –int
    • MTU –int
    • enable_dhcp –int
    • dhcp_server –str
    • share_address –int
    • Allowed_start –str
    • allowed_end –str
Return Type:

Object of the Network

Delete ( network )

Delete a specific network.

Parameters: network , Haven ID of the network to delete.
disassociate ( network , Disassociate_h Ost=true , disassociate_project=true )

Disassociate a specific network from Project and/or host.

parameter S:
  • network , Haven ID of The network .
  • Disassociate_host –whether to disassociate the host
  • Disassociate_project –whether to disassociate the project
get ( network )

Get a specific network.

parameter S: network , Haven ID of the network to get.
return type: network
/dl>
List ( )

Get a list of all networks.

Return Type: List of the Network.
Resource_class

Alias of Network

All Python API summaries for the Nova component networks in OpenStack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.