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: -
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
,vlan
orvxlan
.
-
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
vlan
network type and tunnel ID forgre
andvxlan
network types. Type: int
-