grpc added simple throughputs stream events

This commit is contained in:
Blake Harnden 2019-05-31 14:19:23 -07:00
parent 5542dbbce2
commit 4c1d7bfb22
4 changed files with 109 additions and 2 deletions

View file

@ -276,6 +276,17 @@ class CoreGrpcClient(object):
stream = self.stub.Events(request)
start_streamer(stream, handler)
def throughputs(self, handler):
"""
Listen for throughput events with information for interfaces and bridges.
:param handler: handler for every event
:return: nothing
"""
request = core_pb2.ThroughputsRequest()
stream = self.stub.Throughputs(request)
start_streamer(stream, handler)
def add_node(self, session_id, node):
"""
Add node to session.