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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.