summaryrefslogtreecommitdiffhomepage
path: root/server/zclient.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-26 10:23:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-26 10:23:51 +0900
commitebac86e07ac40d19037ca100c42bac7ba94aae12 (patch)
treec46d8b94dfcd98b99bb9e20fc28279c33fd6664d /server/zclient.go
parent511f487dd1dcdf836d15a231293189aaf0dbf528 (diff)
export Watch feature
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/zclient.go')
-rw-r--r--server/zclient.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/zclient.go b/server/zclient.go
index 23b74963..0e20c7f9 100644
--- a/server/zclient.go
+++ b/server/zclient.go
@@ -176,15 +176,15 @@ func (z *zebraClient) loop() {
}
}
case ev := <-w.Event():
- msg := ev.(*watcherEventBestPathMsg)
+ msg := ev.(*WatchEventBestPath)
if table.UseMultiplePaths.Enabled {
- for _, dst := range msg.multiPathList {
+ for _, dst := range msg.MultiPathList {
if m := newIPRouteMessage(dst); m != nil {
z.client.Send(m)
}
}
} else {
- for _, path := range msg.pathList {
+ for _, path := range msg.PathList {
if m := newIPRouteMessage([]*table.Path{path}); m != nil {
z.client.Send(m)
}