#NEWLINE# def _host_lease( fixedip ) : #NEWLINE# #INDENT# 'Return a host string for an address in leasefile format.' #NEWLINE# timestamp = timeutils . utcnow ( ) #NEWLINE# seconds_since_epoch = calendar . timegm ( timestamp . utctimetuple ( ) ) #NEWLINE# return ( '%d %s %s %s *' % ( ( seconds_since_epoch + CONF . dhcp_lease_time ) , fixedip . virtual_interface . address , fixedip . address , ( fixedip . instance . hostname or '*' ) ) )