projects
/
invirt/packages/invirt-dhcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb7d84
)
Clear the sql cache for dns and dhcp, fixing #42.
sipb-xen-dhcp/1
author
Eric Price
<ecprice@mit.edu>
Sat, 29 Mar 2008 01:49:31 +0000
(21:49 -0400)
committer
Eric Price
<ecprice@mit.edu>
Sat, 29 Mar 2008 01:49:31 +0000
(21:49 -0400)
svn path=/trunk/packages/sipb-xen-dhcp/; revision=300
code/dhcpserver.py
patch
|
blob
|
history
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)