updated network to network link to not look for Rj45, since that wont happen, removed unwanted grpc client function
This commit is contained in:
parent
053d2a0b10
commit
7366738023
2 changed files with 1 additions and 17 deletions
|
@ -204,18 +204,6 @@ class CoreGrpcClient:
|
||||||
request = core_pb2.GetSessionOptionsRequest(session_id=session_id)
|
request = core_pb2.GetSessionOptionsRequest(session_id=session_id)
|
||||||
return self.stub.GetSessionOptions(request)
|
return self.stub.GetSessionOptions(request)
|
||||||
|
|
||||||
def get_session_options_group(self, session_id):
|
|
||||||
"""
|
|
||||||
Retrieve session options in a group list.
|
|
||||||
|
|
||||||
:param int session_id: id of session
|
|
||||||
:return: response with a list of configuration groups
|
|
||||||
:rtype: core_pb2.GetSessionOptionsGroupResponse
|
|
||||||
:raises grpc.RpcError: when session doesn't exist
|
|
||||||
"""
|
|
||||||
request = core_pb2.GetSessionOptionsGroupRequest(session_id=session_id)
|
|
||||||
return self.stub.GetSessionOptionsGroup(request)
|
|
||||||
|
|
||||||
def set_session_options(self, session_id, config):
|
def set_session_options(self, session_id, config):
|
||||||
"""
|
"""
|
||||||
Set options for a session.
|
Set options for a session.
|
||||||
|
|
|
@ -355,11 +355,7 @@ class Session:
|
||||||
net_one.name,
|
net_one.name,
|
||||||
net_two.name,
|
net_two.name,
|
||||||
)
|
)
|
||||||
if isinstance(net_two, Rj45Node):
|
interface = net_one.linknet(net_two)
|
||||||
interface = net_two.linknet(net_one)
|
|
||||||
else:
|
|
||||||
interface = net_one.linknet(net_two)
|
|
||||||
|
|
||||||
link_config(net_one, interface, link_options)
|
link_config(net_one, interface, link_options)
|
||||||
|
|
||||||
if not link_options.unidirectional:
|
if not link_options.unidirectional:
|
||||||
|
|
Loading…
Reference in a new issue