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() 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.
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

created_at = None

Timestamp when the network was created.

description = None

The network description.

dns_domain = None

DNS Domain for the network

ipv4_address_scope_id = None

The ID of the IPv4 address scope for the network.

ipv6_address_scope_id = None

The ID of the IPv6 address scope for the network.

is_admin_state_up = None

The administrative state of the network, which is up True or down False. Type: bool

is_default = None

Whether or not this is the default external network. Type: bool

is_port_security_enabled = None

The port security status, which is enabled True or disabled False. Type: bool Default: False

is_router_external = None

Whether or not the router is external. Type: bool Default: False

is_shared = None

Indicates whether this network is shared across all tenants. By default, only administrative users can change this value. Type: bool

mtu = None

Read-only. The maximum transmission unit (MTU) of the network resource.

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, or gre.

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.

revision_number = None

Revision number of the network. Type: int

status = None

The network status.

subnet_ids = None

The associated subnet IDs. Type: list of strs of the subnet IDs

updated_at = None

Timestamp when the network was last updated.