CloudNetworks

class CloudNetworks.CloudNetworks(env, region=None)[source]

Bases: Cloud.Cloud

service = 'ServersOpenStack'
createNetwork(cidr, label)[source]

Creates a network for the specified tenant ID.

Arguments: cidr – ip block from which to allocate the network label – name of the new network

Returns: JSON results as python dict

getNetwork(nId)[source]

Fetches network information with an id input.

Arguments: nId – network id

Returns: JSON results as python dict

getNetworks()[source]

Lists the networks configured for a specified tenant ID.

Arguments: nId – network id

Returns: JSON results as python dict

deleteNetwork(nId)[source]

Deletes the specified network.

Arguments: nId – network ID

Returns: status code

provisionServer(server, imageRef, flavorRef, attrDict={})[source]

Provision a new server with the specified networks.

Arguments: server – Server name imageRef – image id flavorRef – flavor id(string) attrDict – dictionary the following a combination of the following var/vals:

networks – list of network uuid’s (inside of uuid key dictionaries) to provision server(s) to (Optional) OS-DCF:diskConfig – AUTO / MANUAL (Optional) metadata – dictionary of key-value meta-data (Optional) personality – list of dictionaries specifiying file path and contents (Optional)

Returns: JSON results as python dict

Previous topic

CloudMonitor

Next topic

CloudServersFG