def _host_dhcp(data):
 if CONF.use_single_default_gateway:
  return ('%s,%s.%s,%s,%s' % (data['vif_address'], data['instance_hostname'], CONF.dhcp_domain, data['address'], ('net:' + _host_dhcp_network(data))))
 else:
  return ('%s,%s.%s,%s' % (data['vif_address'], data['instance_hostname'], CONF.dhcp_domain, data['address']))

def _host_dhcp ( data ) : if CONF . use_single_default_gateway : return ( '%s,%s.%s,%s,%s' % ( data [ 'vif_address' ] , data [ 'instance_hostname' ] , CONF . dhcp_domain , data [ 'address' ] , ( 'net:' + _host_dhcp_network ( data ) ) ) ) else : return ( '%s,%s.%s,%s' % ( data [ 'vif_address' ] , data [ 'instance_hostname' ] , CONF . dhcp_domain , data [ 'address' ] ) )
return a host string for an address in dhcp-host format .