Exemplo n.º 1
0
def addSwitch():
    SwitchQueue = Queue()
    name = input("Enter the name of the Switch in Single small Letter")
    switch = Switch(SwitchQueue, "Active", name)
    toSwitchConnectionObjects = switch.toHostPipe()
    NETWORK_Connection_Register[1].append(
        (name, switch, toSwitchConnectionObjects))