感谢朋友支持本博客。欢迎共同探讨交流。因为能力和时间有限。错误之处在所难免,欢迎指正!

假设转载,请保留作者信息。

博客地址:http://blog.csdn.net/qq_21398167

原博文地址:http://blog.csdn.net/qq_21398167/article/details/46620261

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.

Parameters: network – The ID of the
Network
to associate (optional).
associate_host(network,host)

Associate a specific network with a host.

Parameters:
  • network – The ID of the
    Network
    .
  • host – The 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 – The 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
  • 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 Network

delete(network)

Delete a specific network.

Parameters: network – The ID of the
Network
to delete.
disassociate(network,disassociate_host=True,
disassociate_project=True)

Disassociate a specific network from project and/or host.

Parameters:
  • network – The ID of the
    Network
    .
  • disassociate_host – Whether to disassociate the host
  • disassociate_project – Whether to disassociate the project
get(network)

Get a specific network.

Parameters: network – The ID of the
Network
to get.
Return type: Network
list()

Get a list of all networks.

Return type: list of Network.
resource_class

alias of Network

openstack中Nova组件Networks的全部python API 汇总的更多相关文章

  1. openstack中Nova组件images的全部python API 汇总

    感谢朋友支持本博客.欢迎共同探讨交流,因为能力和时间有限,错误之处在所难免.欢迎指正! 假设转载,请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地 ...

  2. openstack中glance组件images的全部python API 汇总

    感谢朋友支持本博客,欢迎共同探讨交流.因为能力和时间有限.错误之处在所难免,欢迎指正! 假设转载,请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地 ...

  3. openstack中Nova组件简解

    一.Nova组件概述 计算节点通过Nova Computer进行虚拟机创建,通过libvirt调用kvm创建虚拟机,nova之间通信通过rabbitMQ队列进行通信. Nova位于Openstack架 ...

  4. openstack中nova组件Hypervisors、Floating_ips的全部python API 汇总

    感谢朋友支持本博客,欢迎共同探讨交流,因为能力和时间有限.错误之处在所难免,欢迎指正! 假设转载.请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地 ...

  5. Openstack计算Nova组件

    欢迎来到虚拟机的世界,如果我们将Openstack环境里运行在各个无力节点上的各种服务看座生命体,而不是死的指令集合,那么就是一个虚拟机的世界. Openstack的计算组件,也就是Nova项目实现了 ...

  6. OpenStack 的Nova组件详解

    Open Stack Compute Infrastructure (Nova) Nova是OpenStack云中的计算组织控制器.支持OpenStack云中实例(instances)生命周期的所有活 ...

  7. openstack中Neutron组件简解

    一.Neutron概述 Neutron 的设计目标是实现"网络即服务(Networking as a Service)".为了达到这一目标,在设计上遵循了基于 SDN 实现网络虚拟 ...

  8. openstack中Keystone组件简解

    一.Keystone服务概述 在Openstack框架中,keystone(Openstack Identity Service)的功能是负责验证身份.校验服务规则和发布服务令牌的,它实现了Opens ...

  9. openstack中Glance组件简解

    一.Glance组件介绍 1.概念 Glance是OpenStack镜像服务,用来注册.登陆和检索虚拟机镜像.Glance服务提供了一个REST API,使你能够查询虚拟机镜像元数据和检索的实际镜像. ...

随机推荐

  1. 第2章 安装Nodejs 2-4 Linux下安装Nodejs

    linux下编译安装Nodejs  GCC和G++分别是GNU的C和C++编译器.它们在执行编译工作的时候把源代码通过预处理转化成汇编语言生成.i后缀的文件,再由汇编变成目标机器代码,最后连接目标代码 ...

  2. aspectc中this可以获取的东西

    this->kind  操作类型 this->targetName 被调用函数名称 this->funcName 调用函数名称 this->argsCount 参数个数 thi ...

  3. tp的redis驱动

    1.增加分布式支持 使用方法:将文件存放在ThinkPHP框架根目录下的Library\Think\Session\Driver\目录下 config配置参数: //Redis Session配置 ' ...

  4. Python启动浏览器Firefox\Chrome\IE

    # -*- coding:utf-8 -*- import os import selenium from selenium import webdriver from selenium.webdri ...

  5. 使用 SqlBulkCopy 批量插入数据

    /// <summary> /// 使用SqlBulkCopy将DataTable中的数据批量插入数据库中 /// </summary> /// <param name= ...

  6. SQLServer2008 关于数据转换

    全进位 select cast(ceiling(2.1111) as dec(18,0)) 结果:3

  7. 用CSS伪类制作一个不断旋转的八卦图?

    前言 介绍一下如何制作一个不断旋转的八卦图.快速预览代码及效果,点击:八卦图 代码如下: HTML部分 <!DOCTYPE html> <html> <head> ...

  8. javascript跨域的几种方法

    以下的例子包含的文件均为为 http://www.a.com/a.html .http://www.a.com/c.html 与 http://www.b.com/b.html,要做的都是从a.htm ...

  9. do…while语句

    有些情况下,不论条件是否满足,循环过程必须至少执行一次,这时可以采用do...while语句.就像如图7.4所示登录账号一样,需要先输入密码和账户名,后进行判断:如果密码始终不正确,则循环要求用户输入 ...

  10. OpenCV:OpenCV图像旋转的代码

    OpenCV图像旋转的代码 cv::transpose( bfM, bfM ) 前提:使用两个矩阵Mat型进行下标操作是不行的,耗费的时间太长了.直接使用两个指针对拷贝才是王道.不知道和OpenCV比 ...