openstack.network.v2.segment¶
The Segment Class¶
The Segment class inherits from Resource.
-
class
openstack.network.v2.segment.Segment(attrs=None, loaded=False)¶ Caution
This API is a work in progress and is subject to change.
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) –
Trueif this Resource exists on the server,Falseif it does not.
-
network_id= None¶ The ID of the network associated with this segment.
-
network_type= None¶ The type of network associated with this segment, such as
flat,gre,vlanorvxlan.
-
physical_network= None¶ The name of the physical network associated with this segment.
-
segmentation_id= None¶ The segmentation ID for this segment. The network type defines the segmentation model, VLAN ID for
vlannetwork type and tunnel ID forgreandvxlannetwork types. Type: int