#NEWLINE# def _ipsecpolicy_list( request , expand_conns = False , **kwargs ) : #NEWLINE# #INDENT# ipsecpolicies = neutronclient ( request ) . list_ipsecpolicies ( ** kwargs ) . get ( 'ipsecpolicies' ) #NEWLINE# if kwargs : #NEWLINE# #INDENT# ipsecsiteconns = _ipsecsiteconnection_list ( request , ** kwargs ) #NEWLINE# for p in ipsecpolicies : #NEWLINE# #INDENT# p [ 'ipsecsiteconns' ] = [ c . id for c in ipsecsiteconns if ( c . ipsecpolicy_id == p [ 'id' ] ) ] #NEWLINE# #UNINDENT# #UNINDENT# return [ IPSecPolicy ( v ) for v in ipsecpolicies ]