diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-10-31 23:34:34 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-10-31 23:34:34 +0900 |
commit | 8a22b48beb083b010d849e8e201ce4fb544afedc (patch) | |
tree | c1220b538ae506a10939bfcbe31ce0d2894cdb6c /server/server.go | |
parent | 024eec392258330c14236784878a22de745e06a2 (diff) |
server: fix AddPath to return uuid properly
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-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 03b9cbd2..b6cfbf0e 100644 --- a/server/server.go +++ b/server/server.go @@ -1285,6 +1285,7 @@ func (s *BgpServer) AddPath(vrfId string, pathList []*table.Path) (uuidBytes []b } if len(pathList) == 1 { pathList[0].AssignNewUUID() + uuidBytes = pathList[0].UUID().Bytes() } s.propagateUpdate(nil, pathList) return nil |