summaryrefslogtreecommitdiffhomepage
path: root/server/watcher.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-07 07:03:46 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-07 07:19:15 +0900
commit64fdc90646db6824e37625d373c7468b8f74a3af (patch)
tree31727d0848309bd86dbbe5edb2a827abc23632d9 /server/watcher.go
parentc9959836a6e3ed44a9179e589731b026a4f15ac6 (diff)
server: add API to monitor incoming updates
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/watcher.go')
-rw-r--r--server/watcher.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/watcher.go b/server/watcher.go
index 6cf2abc8..591d5d89 100644
--- a/server/watcher.go
+++ b/server/watcher.go
@@ -19,6 +19,7 @@ import (
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/packet"
+ "github.com/osrg/gobgp/table"
"gopkg.in/tomb.v2"
"net"
"os"
@@ -42,6 +43,7 @@ const (
WATCHER_BMP
WATCHER_ZEBRA
WATCHER_GRPC_BESTPATH
+ WATCHER_GRPC_INCOMING
)
type watcherEventType uint8
@@ -68,6 +70,7 @@ type watcherEventUpdateMsg struct {
timestamp time.Time
payload []byte
postPolicy bool
+ pathList []*table.Path
}
type watcherEventStateChangedMsg struct {