Route Tables

Network route tables contain a set of rules, called routes, that are used to determine where network traffic is directed. Each subnet in your VPC must be associated with a route table; the table controls the routing for the subnet. A subnet can only be associated with one route table at a time, but you can associate multiple subnets with the same route table. This class inherits from Resource and has direct access to the resource’s database object. The following attributes are directly accessible:

attr resource_id:
 The provider ID of this route table
attr organization_service_id:
 The ID of the organization service (cloud) this access list belongs to
attr region_name:
 The region where this resource resides in
attr name:The name of this route table
attr network_resource_id:
 The resource ID of the parent (network)
attr vpc_association_id:
 The the virtual private cloud that this route table is associated with
attr routes:The routes that belong to this table
attr route_table_id:
 The provider id for this route table
class DivvyResource.Resources.routetable.RouteTable(resource_id)

Bases: DivvyResource.Resources.resource.Resource

Route Table Operations

Delete this resource. If wrapped in a with JobQueue() block, this will queue the deletion job to the wrapped queue, otherwise it
calls immediately.
static get_db_class()

Retrieve the network ID that the route table belongs to

static get_provider_id_field()
static get_resource_type()

Retrieve the VPC association ID of the route

handle_resource_created(user_resource_id=None, project_resource_id=None)

This should be called when a resource is created/discovered after the basic data is added to the database. This gives an opportunity for post-addition hooks (assignment to groups, alerts, etc)


This should be called when a resource is destroyed before the basic data is removed from the database. This gives an opportunity for pre-destruction hooks (removal from groups, alerts, etc)

handle_resource_modified(resource, *args, **kwargs)

This should be called when a resource is modified after the new data has been updated in the DB session This gives an opportunity for post-modification hooks