Beispiel #1
0
def qfx_copper_factory(switch_descriptor, lock):
    warnings.warn(
        "Use SwitchFactory.get_switch_by_descriptor directly to instanciate a switch",
        DeprecationWarning)

    return FlowControlSwitch(
        wrapped_switch=qfx_copper.netconf(switch_descriptor), lock=lock)
Beispiel #2
0
def factory_telnet(switch_descriptor, lock):
    warnings.warn("Use SwitchFactory.get_switch_by_descriptor directly to instantiate a switch", DeprecationWarning)
    return FlowControlSwitch(wrapped_switch=telnet(switch_descriptor), lock=lock)
Beispiel #3
0
def brocade_factory_ssh(switch_descriptor, lock):
    warnings.warn("Use SwitchFactory.get_switch_by_descriptor directly to instantiate a switch", DeprecationWarning)
    return FlowControlSwitch(
        wrapped_switch=brocade.ssh(switch_descriptor=switch_descriptor),
        lock=lock
    )