gui: removed host from node model types and updated node config to only display type
This commit is contained in:
parent
26f0848cb4
commit
1fa0ac25b5
2 changed files with 3 additions and 8 deletions
|
@ -230,13 +230,8 @@ class NodeConfigDialog(Dialog):
|
||||||
if nutils.is_model(self.node):
|
if nutils.is_model(self.node):
|
||||||
label = ttk.Label(frame, text="Type")
|
label = ttk.Label(frame, text="Type")
|
||||||
label.grid(row=row, column=0, sticky=tk.EW, padx=PADX, pady=PADY)
|
label.grid(row=row, column=0, sticky=tk.EW, padx=PADX, pady=PADY)
|
||||||
combobox = ttk.Combobox(
|
entry = ttk.Entry(frame, textvariable=self.type, state=tk.DISABLED)
|
||||||
frame,
|
entry.grid(row=row, column=1, sticky=tk.EW)
|
||||||
textvariable=self.type,
|
|
||||||
values=list(nutils.NODE_MODELS),
|
|
||||||
state=combo_state,
|
|
||||||
)
|
|
||||||
combobox.grid(row=row, column=1, sticky=tk.EW)
|
|
||||||
row += 1
|
row += 1
|
||||||
|
|
||||||
# container image field
|
# container image field
|
||||||
|
|
|
@ -23,7 +23,7 @@ RJ45_NODES: Set[NodeType] = {NodeType.RJ45}
|
||||||
BRIDGE_NODES: Set[NodeType] = {NodeType.HUB, NodeType.SWITCH}
|
BRIDGE_NODES: Set[NodeType] = {NodeType.HUB, NodeType.SWITCH}
|
||||||
IGNORE_NODES: Set[NodeType] = {NodeType.CONTROL_NET}
|
IGNORE_NODES: Set[NodeType] = {NodeType.CONTROL_NET}
|
||||||
MOBILITY_NODES: Set[NodeType] = {NodeType.WIRELESS_LAN, NodeType.EMANE}
|
MOBILITY_NODES: Set[NodeType] = {NodeType.WIRELESS_LAN, NodeType.EMANE}
|
||||||
NODE_MODELS: Set[str] = {"router", "host", "PC", "mdr", "prouter"}
|
NODE_MODELS: Set[str] = {"router", "PC", "mdr", "prouter"}
|
||||||
ROUTER_NODES: Set[str] = {"router", "mdr"}
|
ROUTER_NODES: Set[str] = {"router", "mdr"}
|
||||||
ANTENNA_ICON: Optional[PhotoImage] = None
|
ANTENNA_ICON: Optional[PhotoImage] = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue