コード例 #1
0
    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()
コード例 #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)
コード例 #3
0
ファイル: __init__.py プロジェクト: stephanerobert/netman
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)
コード例 #4
0
    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()