projects
/
invirt/packages/invirt-dhcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clear the sql cache for dns and dhcp, fixing #42.
[invirt/packages/invirt-dhcp.git]
/
code
/
dhcpserver.py
diff --git
a/code/dhcpserver.py
b/code/dhcpserver.py
index
3133643
..
439a6f2
100755
(executable)
--- a/
code/dhcpserver.py
+++ b/
code/dhcpserver.py
@@
-32,6
+32,7
@@
class DhcpBackend:
self.database = database
sipb_xen_database.connect(create_engine(database))
def findNIC(self, mac):
+ sipb_xen_database.clear_cache()
for i in range(3):
try:
value = sipb_xen_database.NIC.get_by(mac_addr=mac)