diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-28 14:00:33 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-28 22:28:12 +0900 |
commit | da488beb005f99ab6a82aca1301726e71d60eb50 (patch) | |
tree | 72f068d6c81aa7a02b217e9349c0b88710bd3f35 /table/adj.go | |
parent | aef984c85c81af35aa83e334dbd834d214f9a628 (diff) |
table: remove unused id in AdjRib strcture
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/adj.go')
-rw-r--r-- | table/adj.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/table/adj.go b/table/adj.go index 86e760b7..8c7f0de7 100644 --- a/table/adj.go +++ b/table/adj.go @@ -22,18 +22,16 @@ import ( ) type AdjRib struct { - id string accepted map[bgp.RouteFamily]int table map[bgp.RouteFamily]map[string]*Path } -func NewAdjRib(id string, rfList []bgp.RouteFamily) *AdjRib { +func NewAdjRib(rfList []bgp.RouteFamily) *AdjRib { table := make(map[bgp.RouteFamily]map[string]*Path) for _, rf := range rfList { table[rf] = make(map[string]*Path) } return &AdjRib{ - id: id, table: table, accepted: make(map[bgp.RouteFamily]int), } |