Changeset 230 for trunk/dhcp


Ignore:
Timestamp:
Oct 29, 2007, 1:20:29 AM (17 years ago)
Author:
ecprice
Message:

DHCP hostname change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dhcp/dhcpserver.py

    r202 r230  
    105105        chaddr = hwmac(packet.GetHardwareAddress())
    106106        nic = self.findNIC(str(chaddr))
    107         if nic is None:
     107        if nic is None or nic.machine is None:
    108108            return False
    109109        ip = nic.ip
    110110        if ip is None:  #Deactivated?
    111111            return False
    112         hostname = nic.hostname
     112        hostname = nic.machine.name
    113113        if hostname is not None:
    114114            hostname += ".servers.csail.mit.edu"
Note: See TracChangeset for help on using the changeset viewer.