Revision fb5ebbe2 utils/proxy.py

b/utils/proxy.py
55 55
            self.filter = settings.ROUTE_FILTER%route_name
56 56
    
57 57
    def fetch_xml(self):
58
        with manager.connect(host=self.device, port=self.port, username=self.username, password=self.password, unknown_host_cb=fod_unknown_host_cb) as m:
58
        with manager.connect(host=self.device, port=self.port, username=self.username, password=self.password, hostkey_verify=False) as m:
59 59
            xmlconfig = m.get_config(source='running', filter=('subtree',self.filter)).data_xml
60 60
        return xmlconfig
61 61
    
......
194 194
        commit_confirmed_is_successful = False
195 195
        commit_is_successful = False
196 196
        if configuration:
197
            with manager.connect(host=self.device, port=830, username=self.username, password=self.password, unknown_host_cb=fod_unknown_host_cb) as m:
197
            with manager.connect(host=self.device, port=self.port, username=self.username, password=self.password, hostkey_verify=False) as m:
198 198
                assert(":candidate" in m.server_capabilities)
199 199
                with m.locked(target='candidate'):
200 200
                    m.discard_changes()

Also available in: Unified diff