def _host_lease(fixedip):
 timestamp = timeutils.utcnow()
 seconds_since_epoch = calendar.timegm(timestamp.utctimetuple())
 return ('%d %s %s %s *' % ((seconds_since_epoch + CONF.dhcp_lease_time), fixedip.virtual_interface.address, fixedip.address, (fixedip.instance.hostname or '*')))

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