pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes | Static Public Attributes
CloudNetworkClient Class Reference

This is the base client for creating and managing Cloud Networks. More...

Inheritance diagram for CloudNetworkClient:
BaseClient

List of all members.

Public Member Functions

def __init__
def create
 Wraps the basic create() call to handle specific failures.
def delete
 Wraps the standard delete() method to catch expected exceptions and raise the appropriate pyrax exceptions.
def find_network_by_label
 This is inefficient; it gets all the networks and then filters on the client side to find the matching name.
def get_server_networks
 Creates the dict of network UUIDs required by Cloud Servers when creating a new server with isolated networks.

Public Attributes

 name
 PUBLIC_NET_ID
 SERVICE_NET_ID
 PSEUDO_NETWORKS

Static Public Attributes

 find_network_by_name = find_network_by_label

Detailed Description

This is the base client for creating and managing Cloud Networks.


Constructor & Destructor Documentation

def __init__ (   self,
  args,
  kwargs 
)

Member Function Documentation

def create (   self,
  label = None,
  name = None,
  cidr = None 
)

Wraps the basic create() call to handle specific failures.

def delete (   self,
  network 
)

Wraps the standard delete() method to catch expected exceptions and raise the appropriate pyrax exceptions.

Reimplemented from BaseClient.

def find_network_by_label (   self,
  label 
)

This is inefficient; it gets all the networks and then filters on the client side to find the matching name.

def get_server_networks (   self,
  network,
  public = False,
  private = False 
)

Creates the dict of network UUIDs required by Cloud Servers when creating a new server with isolated networks.

By default only the specified network is included. If you wish to create a server that has either the public (internet) or private (ServiceNet) networks, you have to pass those parameters in with values of True.


Member Data Documentation

Reimplemented from BaseClient.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties