From a3ffcfac5b403e22d307ff58e2c6377d40a07720 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 1 May 2018 08:40:52 +0900 Subject: [PATCH] table: remove key member in Path structure Signed-off-by: FUJITA Tomonori --- table/path.go | 6 +----- 1 file changed, 1 insertion(+), 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 {