From aca6fd6ad4409b4cb63682bff3c79fca8ca2800d Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 24 May 2016 05:47:52 +0000 Subject: server: refactoring for monitorbestchanged api. use watcher infra Signed-off-by: ISHIDA Wataru --- openswitch/openswitch.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openswitch') diff --git a/openswitch/openswitch.go b/openswitch/openswitch.go index 1792fc9e..c6ff5e55 100644 --- a/openswitch/openswitch.go +++ b/openswitch/openswitch.go @@ -567,15 +567,15 @@ func (m *OpsManager) GobgpMonitor(ready *bool) { time.Sleep(time.Duration(time.Second * 2)) reqCh := m.grpcCh family := bgp.RF_IPv4_UC - arg := &api.Arguments{ - Resource: api.Resource_GLOBAL, - Family: uint32(family), + arg := &api.Table{ + Type: api.Resource_GLOBAL, + Family: uint32(family), } for { if !*ready { return } - req := server.NewGrpcRequest(server.REQ_MONITOR_GLOBAL_BEST_CHANGED, "", bgp.RouteFamily(0), arg) + req := server.NewGrpcRequest(server.REQ_MONITOR_RIB, "", bgp.RouteFamily(arg.Family), arg) reqCh <- req res := <-req.ResponseCh if err := res.Err(); err != nil { -- cgit v1.2.3