Ignore:
Timestamp:
May 4, 2009, 9:17:19 PM (15 years ago)
Author:
broder
Message:

In invirt-dhcp:

  • Don't throw a sqlalchemy.exceptions.InvalidRequestError? exception if we get a DHCPREQUEST for a MAC address that's not in our database.
Location:
trunk/packages/invirt-dhcp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dhcp/debian/changelog

    r1432 r2347  
     1invirt-dhcp (0.0.2) unstable; urgency=low
     2
     3  * Don't throw a sqlalchemy.exceptions.InvalidRequestError exception if
     4    we get a DHCPREQUEST for a MAC address that's not in our database.
     5
     6 -- Evan Broder <broder@mit.edu>  Mon, 04 May 2009 21:14:26 -0400
     7
    18invirt-dhcp (0.0.1) unstable; urgency=low
    29
  • trunk/packages/invirt-dhcp/invirt-dhcpserver

    r1431 r2347  
    2626    def findNIC(self, mac):
    2727        database.clear_cache()
    28         return database.NIC.query().filter_by(mac_addr=mac).one()
     28        return database.NIC.query().filter_by(mac_addr=mac).first()
    2929    def find_interface(self, packet):
    3030        chaddr = hwmac(packet.GetHardwareAddress())
Note: See TracChangeset for help on using the changeset viewer.