mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
table: remove key member in Path structure
Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
+1
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user