Ignore:
Timestamp:
Jul 5, 2009, 8:16:47 PM (15 years ago)
Author:
broder
Message:

In invirt-dhcp:

  • Include the server identifier field in DHCPOFFERs (LP: #395696).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dhcp/invirt-dhcpserver

    r2347 r2361  
    88from pydhcplib.type_strlist import strlist
    99import socket
     10import os
    1011import IN
    1112
     
    1920                'router': config.dhcp.gateway,
    2021                'domain_name_server': ','.join(config.dhcp.dns),
    21                 'ip_address_lease_time': 60*60*24}
     22                'ip_address_lease_time': 60*60*24,
     23                'server_identifier': socket.gethostbyname(os.uname()[1])}
    2224
    2325class DhcpBackend:
Note: See TracChangeset for help on using the changeset viewer.