Splitting pydhcplib off into its own package
[invirt/packages/invirt-dhcp.git] / code / dhcpserver.py
old mode 100644 (file)
new mode 100755 (executable)
index 3133643..bcc02d4
@@ -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)