Esempio n. 1
0
    def get_netconf_protocol(self):
        self.last_connection_id += 1

        return NetconfProtocol(
            datastore=self.datastore,
            capabilities=self.capabilities(),
            additionnal_namespaces={"junos": NS_JUNOS},
            logger=logging.getLogger(
                "fake_switches.juniper.%s.%s.netconf" %
                (self.switch_configuration.name, self.last_connection_id)))
Esempio n. 2
0
    def get_netconf_protocol(self):
        self.last_connection_id += 1

        return NetconfProtocol(
            datastore=self.datastore,
            capabilities=[
                Candidate1_0, ConfirmedCommit1_0, Validate1_0, Url1_0,
                NetconfJunos1_0, DmiSystem1_0
            ],
            additionnal_namespaces={"junos": NS_JUNOS},
            logger=logging.getLogger(
                "fake_switches.juniper.%s.%s.netconf" %
                (self.switch_configuration.name, self.last_connection_id)))
Esempio n. 3
0
 def setUp(self):
     self.netconf = NetconfProtocol(logger=logging.getLogger())
     self.netconf.transport = Mock()