interface_route


Description

This table contains route information for interfaces. It is parent table that is partitioned over zone schema.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id serial 10 nextval('zone.interface_route_id_seq'::regclass)

Unique identifier for interface_route record.

zone_id int4 10 null
zone.id fk_intf_route_zone R

Zone Id for interface_route record.

interface_id int4 10 null
interface.id fk_intf_route_interface C

Interface Id for iftable_vlan record. It maps to zone.interface.id

route_id int4 10 null
route.id fk_intf_route_route C

Id of route. It maps to zone.route.id

route cidr 2147483647 null

Route for this interface_route record. Same value can be found from route.id for matching route_id but it is inserted here as a form of denormalization for faster data retrieval.

last_update timestamp 29,6 now()

Timestamp when this record was created/updated

first_observed timestamptz 35,6 now()

Timestamp when this route was first seen. If the route is expired out and recreated, this will be the timestamp from when we last created it.

nexthop inet 2147483647 null

Next hop for this route.

asnum int4 10 null

AS Number for this route.

routetype_id int4 10 null
routetype.id fk_intf_route_type R

Route Type id. Maps to zone.routetype.id

routeprotocol_id int4 10 null
routeprotocol.id fk_intf_route_protocol R

Router Protocol id. Maps to zone.routerprotocol.id

aspath _int4 10 null

AS Path for this route.

withdrawn bool 1 false

Has this route been withdrawn by the discovering routing protocol (currently only BGP supports this)

Table contained 0 rows

Indexes

Constraint Name Type Sort Column(s)
pk_intf_route Primary key Asc id
idx_interface_interface_id Performance Asc interface_id
idx_interface_route_id Performance Asc route_id
idx_interface_route_protocol_id Performance Asc routeprotocol_id
idx_interface_routetype_id Performance Asc routetype_id
idx_zone_intf_route_nexthop Performance Asc nexthop
idx_zone_intf_route_route Performance Asc route
idx_zone_intf_route_route_ipr Performance

Relationships