def build_network_settings(**settings):
 current_network_settings = _parse_rh_config(_RH_NETWORK_FILE)
 opts = _parse_network_settings(settings, current_network_settings)
 try:
  template = JINJA.get_template('network.jinja')
 except jinja2.exceptions.TemplateNotFound:
  log.error('Could not load template network.jinja')
  return ''
 network = template.render(opts)
 if settings['test']:
  return _read_temp(network)
 _write_file_network(network, _RH_NETWORK_FILE)
 return _read_file(_RH_NETWORK_FILE)

def build_network_settings ( ** settings ) : current_network_settings = _parse_rh_config ( _RH_NETWORK_FILE ) opts = _parse_network_settings ( settings , current_network_settings ) try : template = JINJA . get_template ( 'network.jinja' ) except jinja2 . exceptions . TemplateNotFound : log . error ( 'Could not load template network.jinja' ) return '' network = template . render ( opts ) if settings [ 'test' ] : return _read_temp ( network ) _write_file_network ( network , _RH_NETWORK_FILE ) return _read_file ( _RH_NETWORK_FILE )
build the global network script .