openstack.network.v2.segment

The Segment Class

The Segment class inherits from Resource.

class openstack.network.v2.segment.Segment(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() and Resource.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.
description = None

The segment description.

name = None

The segment name.

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, geneve, gre, local, vlan or vxlan.

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 for geneve, gre and vxlan network types. Type: int