• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
导航菜单
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx
您的位置:首页 > 服务器 >云计算 > openstack中Nova组件Networks的所有python API 汇总,openstacknova

openstack中Nova组件Networks的所有python API 汇总,openstacknova

作者:网友 字体:[增加 减小] 来源:互联网

本文主要包含openstack nova,openstack nova api,openstack nova boot,openstack组件,openstack组件介绍等服务器相关知识,网友希望可以进行参考

openstack中Nova组件Networks的所有python API 汇总,openstacknova


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.

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 《转》OpenStack Ceilometer 安装配置和API说明,《转》openstack
  • openstack中Nova组件images的所有python API 汇总,openstacknova
  • openstack中Nova组件Networks的所有python API 汇总,openstacknova
  • openstack中Nova组件servers的所有python API 汇总,openstacknova
  • Openstack Nova(九)----Instance 创建(Computer API & Conductor ),openstacknovaapi

相关文章

  • Ceph集群磁盘没有剩余空间的解决方法,ceph集群
  • 超人学院Hadoop大数据资源分享,超人学院hadoop分享
  • logstash 学习小记,logstash小记
  • Nova client源码分析---nova list命令,nova---nova
  • 程序员必备的代码审查(Code Review)清单,codereview
  • Machine Learning On Spark——第一节:基础数据结构(一),learningspark
  • MapReduce处理表的自连接,mapreduce处理表
  • 多网卡PC装OVS改造成OpenFlow交换机配置脚本,ovsopenflow
  • spark视频教程免费下载,spark视频教程
  • Scala 有几种其它的循环结构,scala几种循环结构

文章分类

  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx

最近更新的内容

    • 用Bash Script编写Hadoop MapReduce Streaming,hadoopmapreduce
    • Hadoop之——HDFS随笔,hadoophdfs
    • MapReduce处理二次排序(分区-排序-分组),mapreduce二次
    • 关于Oozie的input-events和done-flag,oozieinput-events
    • Java服务端限制下载速度,java服务端下载速度
    • -bash:jps:command not found,-bashjps
    • Flume 配置文件概述
    • 在streaming process中为什么需要类似sql查询语言,streamingprocess
    • 关于 unable to load shared object 'C:\Program Files\R\R-3.0.3\library\stats\libs\i386\stats.dll',r-3.0.3stats.dll
    • RPC原理,rpc

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有