openstack.network.v2.router¶
The Router Class¶
The Router
class inherits from Resource
.
-
class
openstack.network.v2.router.
Router
(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()
andResource.existing()
.Parameters: -
availability_zone_hints
= None¶ Availability zone hints to use when scheduling the router. Type: list of availability zone names
-
availability_zones
= None¶ Availability zones for the router. Type: list of availability zone names
-
description
= None¶ The router description.
-
external_gateway_info
= None¶ The
network_id
, for the external gateway. Type: dict
-
is_admin_state_up
= None¶ The administrative state of the router, which is up
True
or downFalse
. Type: bool
-
is_distributed
= None¶ The distributed state of the router, which is distributed
True
or notFalse
. Type: bool Default: False
-
is_ha
= None¶ The highly-available state of the router, which is highly available
True
or notFalse
. Type: bool Default: False
-
name
= None¶ The router name.
-
project_id
= None¶ The ID of the project this router is associated with.
-
routes
= None¶ The extra routes configuration for the router.
-
status
= None¶ The router status.
-