From 8a22b48beb083b010d849e8e201ce4fb544afedc Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 31 Oct 2017 23:34:34 +0900 Subject: server: fix AddPath to return uuid properly Signed-off-by: FUJITA Tomonori --- server/server.go | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3