1 | import PrefixMap from '../routing/prefix-map'
|
2 | import { Route } from '../types/routing'
|
3 | import { uuid } from '../lib/utils'
|
4 |
|
5 | export interface RouteUpdate {
|
6 | epoch: number,
|
7 | prefix: string
|
8 | route?: Route
|
9 | }
|
10 |
|
11 | export default class ForwardingRoutingTable extends PrefixMap<RouteUpdate> {
|
12 | public routingTableId: string = uuid()
|
13 | public log: (RouteUpdate | null)[] = []
|
14 | public currentEpoch: number = 0
|
15 | }
|