summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-10-31 23:34:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-10-31 23:34:34 +0900
commit8a22b48beb083b010d849e8e201ce4fb544afedc (patch)
treec1220b538ae506a10939bfcbe31ce0d2894cdb6c
parent024eec392258330c14236784878a22de745e06a2 (diff)
server: fix AddPath to return uuid properly
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--server/server.go1
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