def build_pxe_config(deployment_id, deployment_key, deployment_iscsi_iqn, deployment_aki_path, deployment_ari_path, aki_path, ari_path):
 LOG.debug((_('Building PXE config for deployment %s.') % deployment_id))
 pxe_options = {'deployment_id': deployment_id, 'deployment_key': deployment_key, 'deployment_iscsi_iqn': deployment_iscsi_iqn, 'deployment_aki_path': deployment_aki_path, 'deployment_ari_path': deployment_ari_path, 'aki_path': aki_path, 'ari_path': ari_path, 'pxe_append_params': CONF.baremetal.pxe_append_params}
 cheetah = _get_cheetah()
 pxe_config = str(cheetah(open(CONF.baremetal.pxe_config_template).read(), searchList=[{'pxe_options': pxe_options, 'ROOT': '${ROOT}'}]))
 return pxe_config

def build_pxe_config ( deployment_id , deployment_key , deployment_iscsi_iqn , deployment_aki_path , deployment_ari_path , aki_path , ari_path ) : LOG . debug ( ( _ ( 'Building PXE config for deployment %s.' ) % deployment_id ) ) pxe_options = { 'deployment_id' : deployment_id , 'deployment_key' : deployment_key , 'deployment_iscsi_iqn' : deployment_iscsi_iqn , 'deployment_aki_path' : deployment_aki_path , 'deployment_ari_path' : deployment_ari_path , 'aki_path' : aki_path , 'ari_path' : ari_path , 'pxe_append_params' : CONF . baremetal . pxe_append_params } cheetah = _get_cheetah ( ) pxe_config = str ( cheetah ( open ( CONF . baremetal . pxe_config_template ) . read ( ) , searchList = [ { 'pxe_options' : pxe_options , 'ROOT' : '${ROOT}' } ] ) ) return pxe_config
build the pxe config file for a node this method builds the pxe boot configuration file for a node .