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()
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 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)