openstack.network.v2.network

The Network Class

The Network class inherits from Resource.

class openstack.network.v2.network.Network(_synchronized=False, connection=None, **attrs)

The base resource

Parameters
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

availability_zone_hints

Availability zone hints to use when scheduling the network. Type: list of availability zone names

availability_zones

Availability zones for the network. Type: list of availability zone names

created_at

Timestamp when the network was created.

description

The network description.

dns_domain

The DNS domain associated.

ipv4_address_scope_id

The ID of the IPv4 address scope for the network.

ipv6_address_scope_id

The ID of the IPv6 address scope for the network.

is_admin_state_up

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

is_default

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

is_port_security_enabled

The port security status, which is enabled True or disabled False. Type: bool Default: False Available for multiple provider extensions.

is_router_external

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

is_shared

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

mtu

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

name

The network name.

project_id

The ID of the project this network is associated with.

provider_network_type

The type of physical network that maps to this network resource. For example, flat, vlan, vxlan, or gre. Available for multiple provider extensions.

provider_physical_network

The physical network where this network object is implemented. Available for multiple provider extensions.

provider_segmentation_id

An isolated segment ID on the physical network. The provider network type defines the segmentation model. Available for multiple provider extensions.

qos_policy_id

The ID of the QoS policy attached to the port.

segments

A list of provider segment objects. Available for multiple provider extensions.

status

The network status.

subnet_ids

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

updated_at

Timestamp when the network was last updated.

is_vlan_transparent

Indicates the VLAN transparency mode of the network