diff options
Diffstat (limited to 'openswitch/openswitch.go')
-rw-r--r-- | openswitch/openswitch.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 { |