diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-01 08:40:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-07 21:18:04 +0900 |
commit | a3ffcfac5b403e22d307ff58e2c6377d40a07720 (patch) | |
tree | d29d5cdfd5fcf5dcae1a466174ac19bc1747f314 | |
parent | dd85cab1ecd3c21a5e2502858790befc6b7f0074 (diff) |
table: remove key member in Path structure
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | table/path.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/table/path.go b/table/path.go index f6024ebc..2020b2f5 100644 --- a/table/path.go +++ b/table/path.go @@ -92,7 +92,6 @@ type originInfo struct { source *PeerInfo timestamp int64 validation *Validation - key string noImplicitWithdraw bool isFromExternal bool eor bool @@ -574,10 +573,7 @@ func (path *Path) String() string { } func (path *Path) getPrefix() string { - if path.OriginInfo().key == "" { - path.OriginInfo().key = path.GetNlri().String() - } - return path.OriginInfo().key + return path.GetNlri().String() } func (path *Path) GetAsPath() *bgp.PathAttributeAsPath { |