The Router class inherits from Resource.
openstack.network.v2.router.Router(_synchronized=False, connection=None, **attrs)¶The base resource
| Parameters: |
|
|---|
availability_zone_hints¶Availability zone hints to use when scheduling the router. Type: list of availability zone names
availability_zones¶Availability zones for the router. Type: list of availability zone names
created_at¶Timestamp when the router was created.
description¶The router description.
external_gateway_info¶The network_id, for the external gateway. Type: dict
flavor_id¶The ID of the flavor.
is_admin_state_up¶The administrative state of the router, which is up True
or down False. Type: bool
is_distributed¶The distributed state of the router, which is distributed True
or not False. Type: bool
is_ha¶The highly-available state of the router, which is highly available
True or not False. Type: bool
name¶The router name.
project_id¶The ID of the project this router is associated with.
revision_number¶Revision number of the router. Type: int
routes¶The extra routes configuration for the router.
status¶The router status.
updated_at¶Timestamp when the router was created.
add_interface(session, **body)¶Add an internal interface to a logical router.
| Parameters: |
|
|---|---|
| Returns: | The body of the response as a dictionary. |
remove_interface(session, **body)¶Remove an internal interface from a logical router.
| Parameters: |
|
|---|---|
| Returns: | The body of the response as a dictionary. |
add_gateway(session, **body)¶Add an external gateway to a logical router.
| Parameters: |
|
|---|---|
| Returns: | The body of the response as a dictionary. |
remove_gateway(session, **body)¶Remove an external gateway from a logical router.
| Parameters: |
|
|---|---|
| Returns: | The body of the response as a dictionary. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.