diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-20 18:06:31 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-20 18:06:31 +0900 |
commit | 3e6eb608a2de03af275082d16e425e365a0e7739 (patch) | |
tree | 3e41a7bea9ea6c884bb8569f5e5daf7da7ed85f5 /server | |
parent | 267a23c19086a795eb0a35c1ae4ebe4237015ac0 (diff) |
server: fix AddPath to return uuid
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index b1bfae7d..8198294d 100644 --- a/server/server.go +++ b/server/server.go @@ -1593,6 +1593,7 @@ func (s *BgpServer) AddPath(vrfId string, pathList []*table.Path) (uuidBytes []b path := pathList[0] id, _ := uuid.NewV4() s.uuidMap[id] = pathTokey(path) + uuidBytes = id.Bytes() } s.propagateUpdate(nil, pathList) return nil |