added get_interfaces to grpc client
This commit is contained in:
parent
34fa3d8448
commit
769572de02
1 changed files with 10 additions and 2 deletions
|
@ -2,8 +2,6 @@
|
||||||
gRpc client for interfacing with CORE, when gRPC mode is enabled.
|
gRpc client for interfacing with CORE, when gRPC mode is enabled.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
@ -1020,6 +1018,16 @@ class CoreGrpcClient:
|
||||||
)
|
)
|
||||||
return self.stub.EmaneLink(request)
|
return self.stub.EmaneLink(request)
|
||||||
|
|
||||||
|
def get_interfaces(self):
|
||||||
|
"""
|
||||||
|
Retrieves a list of interfaces available on the host machine that are not
|
||||||
|
a part of a CORE session.
|
||||||
|
|
||||||
|
:return: core_pb2.GetInterfacesResponse
|
||||||
|
"""
|
||||||
|
request = core_pb2.GetInterfacesRequest()
|
||||||
|
return self.stub.GetInterfaces(request)
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
"""
|
"""
|
||||||
Open connection to server, must be closed manually.
|
Open connection to server, must be closed manually.
|
||||||
|
|
Loading…
Reference in a new issue