diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-04-13 21:46:14 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-07 21:18:04 +0900 |
commit | dd85cab1ecd3c21a5e2502858790befc6b7f0074 (patch) | |
tree | d208924e75ddb853768e7b5c47bdb87d79456bea /table | |
parent | 8347c6c94c441e6a2ec4869890a8808208610273 (diff) |
table: remove uuid member in originInfo structure
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/path.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/table/path.go b/table/path.go index b36f07eb..f6024ebc 100644 --- a/table/path.go +++ b/table/path.go @@ -28,8 +28,6 @@ import ( log "github.com/sirupsen/logrus" - uuid "github.com/satori/go.uuid" - "github.com/osrg/gobgp/config" "github.com/osrg/gobgp/packet/bgp" ) @@ -95,7 +93,6 @@ type originInfo struct { timestamp int64 validation *Validation key string - uuid uuid.UUID noImplicitWithdraw bool isFromExternal bool eor bool @@ -379,18 +376,6 @@ func (path *Path) SetIsFromExternal(y bool) { path.OriginInfo().isFromExternal = y } -func (path *Path) UUID() uuid.UUID { - return path.OriginInfo().uuid -} - -func (path *Path) SetUUID(id []byte) { - path.OriginInfo().uuid = uuid.FromBytesOrNil(id) -} - -func (path *Path) AssignNewUUID() { - path.OriginInfo().uuid, _ = uuid.NewV4() -} - func (path *Path) GetRouteFamily() bgp.RouteFamily { return bgp.AfiSafiToRouteFamily(path.OriginInfo().nlri.AFI(), path.OriginInfo().nlri.SAFI()) } @@ -1092,7 +1077,6 @@ func (path *Path) MarshalJSON() ([]byte, error) { SourceID: path.GetSource().ID, NeighborIP: path.GetSource().Address, Stale: path.IsStale(), - UUID: path.UUID().String(), ID: path.GetNlri().PathIdentifier(), }) } |