Revision 94fb8123 utils/proxy.py
b/utils/proxy.py | ||
---|---|---|
43 | 43 |
else: |
44 | 44 |
device = self.proccess_xml() |
45 | 45 |
if device.routing_options: |
46 |
cache.set("device", device, 600)
|
|
46 |
cache.set("device", device) |
|
47 | 47 |
return device |
48 | 48 |
else: |
49 | 49 |
return False |
... | ... | |
188 | 188 |
logger.info("Successfully committed @ %s" % self.device) |
189 | 189 |
newconfig = m.get_config(source='running', filter=('subtree',settings.ROUTES_FILTER)).data_xml |
190 | 190 |
retrieve = Retriever(xml=newconfig) |
191 |
cache.set("device", retrieve.proccess_xml(), 600)
|
|
191 |
cache.set("device", retrieve.proccess_xml()) |
|
192 | 192 |
|
193 | 193 |
if not commit_is_successful: |
194 | 194 |
raise Exception() |
Also available in: Unified diff