def create_agent_config_map(config):
 try:
  bridge_mappings = q_utils.parse_mappings(config.OVS.bridge_mappings)
 except ValueError as e:
  raise ValueError((_('Parsing bridge_mappings failed: %s.') % e))
 kwargs = dict(integ_br=config.OVS.integration_bridge, tun_br=config.OVS.tunnel_bridge, local_ip=config.OVS.local_ip, bridge_mappings=bridge_mappings, root_helper=config.AGENT.root_helper, polling_interval=config.AGENT.polling_interval, enable_tunneling=config.OVS.enable_tunneling)
 if (kwargs['enable_tunneling'] and (not kwargs['local_ip'])):
  msg = _('Tunnelling cannot be enabled without a valid local_ip.')
  raise ValueError(msg)
 return kwargs

def create_agent_config_map ( config ) : try : bridge_mappings = q_utils . parse_mappings ( config . OVS . bridge_mappings ) except ValueError as e : raise ValueError ( ( _ ( 'Parsing bridge_mappings failed: %s.' ) % e ) ) kwargs = dict ( integ_br = config . OVS . integration_bridge , tun_br = config . OVS . tunnel_bridge , local_ip = config . OVS . local_ip , bridge_mappings = bridge_mappings , root_helper = config . AGENT . root_helper , polling_interval = config . AGENT . polling_interval , enable_tunneling = config . OVS . enable_tunneling ) if ( kwargs [ 'enable_tunneling' ] and ( not kwargs [ 'local_ip' ] ) ) : msg = _ ( 'Tunnelling cannot be enabled without a valid local_ip.' ) raise ValueError ( msg ) return kwargs
create a map of agent config parameters .