def setUp(self):
        specs = next(s for s in available_models
                     if s["switch_descriptor"].model == "juniper")

        self.switch = netconf(specs["switch_descriptor"])
        self.switch.connect()
        self.switch.start_transaction()
Exemple #2
0
def standard_factory(switch_descriptor, lock):
    warnings.warn(
        "Use SwitchFactory.get_switch_by_descriptor directly to instanciate a switch",
        DeprecationWarning)

    return FlowControlSwitch(
        wrapped_switch=standard.netconf(switch_descriptor), lock=lock)
Exemple #3
0
def standard_factory(switch_descriptor, lock):
    warnings.warn("Use SwitchFactory.get_switch_by_descriptor directly to instanciate a switch", DeprecationWarning)

    return FlowControlSwitch(wrapped_switch=standard.netconf(switch_descriptor), lock=lock)
    def setUp(self):
        specs = next(s for s in available_models if s["switch_descriptor"].model == "juniper")

        self.switch = netconf(specs["switch_descriptor"])
        self.switch.connect()
        self.switch.start_transaction()