removed unused code in graph and coreclient
This commit is contained in:
parent
aec1126a14
commit
fa76bbf01b
2 changed files with 0 additions and 31 deletions
|
@ -372,23 +372,6 @@ class CoreClient:
|
|||
response = self.client.stop_session(session_id=self.session_id)
|
||||
logging.debug("coregrpc.py Stop session, result: %s", response.result)
|
||||
|
||||
# # TODO no need, might get rid of this
|
||||
# def add_link(self, id1, id2, type1, type2, edge):
|
||||
# """
|
||||
# Grpc client request add link
|
||||
#
|
||||
# :param int session_id: session id
|
||||
# :param int id1: node 1 core id
|
||||
# :param core_pb2.NodeType type1: node 1 core node type
|
||||
# :param int id2: node 2 core id
|
||||
# :param core_pb2.NodeType type2: node 2 core node type
|
||||
# :return: nothing
|
||||
# """
|
||||
# if1 = self.create_interface(type1, edge.interface_1)
|
||||
# if2 = self.create_interface(type2, edge.interface_2)
|
||||
# response = self.client.add_link(self.session_id, id1, id2, if1, if2)
|
||||
# logging.info("created link: %s", response)
|
||||
|
||||
def launch_terminal(self, node_id):
|
||||
response = self.client.get_node_terminal(self.session_id, node_id)
|
||||
logging.info("get terminal %s", response.terminal)
|
||||
|
|
|
@ -31,12 +31,6 @@ class ScaleOption(enum.Enum):
|
|||
TILED = 4
|
||||
|
||||
|
||||
CORE_NODES = ["router"]
|
||||
CORE_WIRED_NETWORK_NODES = []
|
||||
CORE_WIRELESS_NODE = ["wlan"]
|
||||
CORE_EMANE = ["emane"]
|
||||
|
||||
|
||||
class CanvasGraph(tk.Canvas):
|
||||
def __init__(self, master, core, cnf=None, **kwargs):
|
||||
if cnf is None:
|
||||
|
@ -670,14 +664,6 @@ class CanvasNode:
|
|||
self.canvas.core.launch_terminal(node_id)
|
||||
else:
|
||||
self.canvas.canvas_action.display_configuration(self)
|
||||
# if self.node_type in CORE_NODES:
|
||||
# self.canvas.canvas_action.node_to_show_config = self
|
||||
# self.canvas.canvas_action.display_node_configuration()
|
||||
# elif self.node_type in CORE_WIRED_NETWORK_NODES:
|
||||
# return
|
||||
# elif self.node_type in CORE_WIRELESS_NODE:
|
||||
# return
|
||||
# elif self
|
||||
|
||||
def update_coords(self):
|
||||
self.x_coord, self.y_coord = self.canvas.coords(self.id)
|
||||
|
|
Loading…
Add table
Reference in a new issue