summaryrefslogtreecommitdiffhomepage
path: root/openswitch/openswitch.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-06 09:37:17 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-20 04:25:25 +0900
commit804973bff5110b1c925167d6e8da6b188b63eb0a (patch)
tree13893e49735c0fa81a1f1f3ba765238cc364d22d /openswitch/openswitch.go
parentd59f1b147eba8199458df22bba1d2462b65a2308 (diff)
remove REQ_GRPC_DELETE_NEIGHBOR
replace REQ_GRPC_DELETE_NEIGHBOR with REQ_DEL_NEIGHBOR Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'openswitch/openswitch.go')
-rw-r--r--openswitch/openswitch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/openswitch/openswitch.go b/openswitch/openswitch.go
index f1339123..f7206b91 100644
--- a/openswitch/openswitch.go
+++ b/openswitch/openswitch.go
@@ -320,13 +320,13 @@ func (m *OpsManager) handleBgpRouterUpdate(update ovsdb.TableUpdate) []*server.G
newNeighMap := v.New.Fields["bgp_neighbors"].(ovsdb.OvsMap).GoMap
for k, _ := range oldNeighMap {
if _, ok := newNeighMap[k]; !ok {
- reqs = append(reqs, server.NewGrpcRequest(server.REQ_GRPC_DELETE_NEIGHBOR, "", bgp.RouteFamily(0), &api.DeleteNeighborRequest{
+ m.grpcServer.DeleteNeighbor(context.Background(), &api.DeleteNeighborRequest{
Peer: &api.Peer{
Conf: &api.PeerConf{
NeighborAddress: k.(string),
},
},
- }))
+ })
}
}
}