X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dhcp.git/blobdiff_plain/4ac9701f4fd2847f00970f3b1447de95a8a6d655..475475b7ae19363abca2be227427fb44ef6036cb:/code/dhcpserver.py diff --git a/code/dhcpserver.py b/code/dhcpserver.py index 3133643..bcc02d4 100755 --- a/code/dhcpserver.py +++ b/code/dhcpserver.py @@ -1,6 +1,5 @@ #!/usr/bin/python import sys -sys.path.append('pydhcplib/') import pydhcplib import pydhcplib.dhcp_network from pydhcplib.dhcp_packet import * @@ -32,6 +31,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)