Networks

1. networks()

Get the list of Network

Parameters:

Name Type Description
id string could be None if you need all

Return value: Network list

Return value example::

istack/network/v2/network Network
status : ACTIVE
subnets : [u'0d35b610-1e5d-4dd3-b42a-f95397b53abe']
name : net
provider:physical_network : None
admin_state_up : True
tenant_id : 7a49391ba7bf4fee9dd17af066e6dbd5
mtu : 0
router:external : False
shared : False
provider:network_type : vxlan
id : 76efeb41-4e04-48c2-b33f-3b2dfea972f6
provider:segmentation_id : 43

2. create_network(**attrs)

Create a network instance

Parameters:

Name Type Description
status string The network status.
router:external (Optional) boolean Indicates whether this network is externally accessible.
availability_zone_hints array The availability zone candidate for the network.
availability_zones array The availability zone for the network.
name string Human-readable name of the resource.
admin_state_up boolean The administrative state of the resource, which is up (true) or down (false).
tenant_id string The ID of the tenant who owns the resource.
mtu integer The MTU of a network resource.
qos_policy_id (Optional) string The UUID of the QoS policy.
subnets array The associated subnets.
shared (Optional) boolean Admin-only. Indicates whether this network is shared across all tenants.
id string The UUID of the network.

Parameter Example:

network = self.cloud.network.create_network(name='PythonTestNetwork',admin_state_up='true')

Return value: Network Object

Return value example::

istack/network/v2/network Network
status : ACTIVE
subnets : [u'0d35b610-1e5d-4dd3-b42a-f95397b53abe']
name : net
provider:physical_network : None
admin_state_up : True
tenant_id : 7a49391ba7bf4fee9dd17af066e6dbd5
mtu : 0
router:external : False
shared : False
provider:network_type : vxlan
id : 76efeb41-4e04-48c2-b33f-3b2dfea972f6
provider:segmentation_id : 43

3. update_network(network, **attrs)

Update a network instance

Parameters:

Name Type Description
router:external (Optional) boolean Indicates whether this network is externally accessible.
admin_state_up boolean The administrative state of the resource, which is up (true) or down (false).
shared (Optional) boolean Admin-only. Indicates whether this network is shared across all tenants.
port_security_enabled (Optional) boolean The port security status. A valid value is enabled (true) or disabled (false).
name string Human-readable name of the resource.
network_id string The UUID of the network, must be specified in the network object.

Parameter Example:

network = self.cloud.network.update_network(network, name='YoYo')
# the network is an object with at least id inside, followed by the attributes need to 
# change

Return value: Network Object

Return value example::

istack/network/v2/network Network
status : ACTIVE
subnets : [u'0d35b610-1e5d-4dd3-b42a-f95397b53abe']
name : net
provider:physical_network : None
admin_state_up : True
tenant_id : 7a49391ba7bf4fee9dd17af066e6dbd5
mtu : 0
router:external : False
shared : False
provider:network_type : vxlan
id : 76efeb41-4e04-48c2-b33f-3b2dfea972f6
provider:segmentation_id : 43

4. delete_network(network)

Delete a network instance

Parameters: Network Object

Name Type Description
id string uuid must be the least specified information to delete the give Network Object

Return value: None

results matching ""

    No results matching ""