def neutron_public_url(catalog):
 for i in catalog['access']['serviceCatalog']:
  if (i['type'] == 'network'):
   for endpoint in i['endpoints']:
    return endpoint['publicURL']

def neutron_public_url ( catalog ) : for i in catalog [ 'access' ] [ 'serviceCatalog' ] : if ( i [ 'type' ] == 'network' ) : for endpoint in i [ 'endpoints' ] : return endpoint [ 'publicURL' ]
get neutron publicurl .