summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--table/path.go6
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 {