openstack.network.v2.network¶
The Network Class¶
The Network
class inherits from Resource
.
-
class
openstack.network.v2.network.
Network
(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()
andResource.existing()
.Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
True
if this Resource exists on the server,False
if it does not.
-
admin_state_up
= None¶ The administrative state of the network, which is up
True
or downFalse
. Type: bool
-
availability_zone_hints
= None¶ Availability zone hints to use when scheduling the network. Type: list of availability zone names
-
availability_zones
= None¶ Availability zones for the network. Type: list of availability zone names
-
name
= None¶ The network name.
-
project_id
= None¶ The ID of the project this network is associated with.
-
provider_network_type
= None¶ The type of physical network that maps to this network resource. For example,
flat
,vlan
,vxlan
, orgre
.
-
provider_physical_network
= None¶ The physical network where this network object is implemented.
-
provider_segmentation_id
= None¶ An isolated segment ID on the physical network. The provider network type defines the segmentation model.
-
router_external
= None¶ Whether or not the router is external. Type: bool
-
router_type
= None¶ Whether or not the router is ‘External’ or ‘Internal’.
Indicates whether this network is shared across all tenants. By default, only administrative users can change this value. Type: bool
-
status
= None¶ The network status.
-
subnet_ids
= None¶ The associated subnet IDs. Type: list of strs of the subnet IDs
-
mtu
= None¶ Read-only. The maximum transmission unit (MTU) of the network resource.
-
is_port_security_enabled
= None¶ The port security status, which is enabled
True
or disabledFalse
. Type: bool Default: False