#NEWLINE# def get_os_items( self ) : #NEWLINE# #INDENT# addresses = address_api . describe_addresses ( self . context ) #NEWLINE# self . ec2_addresses = collections . defaultdict ( list ) #NEWLINE# for address in addresses [ 'addressesSet' ] : #NEWLINE# #INDENT# if ( 'networkInterfaceId' in address ) : #NEWLINE# #INDENT# self . ec2_addresses [ address [ 'networkInterfaceId' ] ] . append ( address ) #NEWLINE# #UNINDENT# #UNINDENT# self . security_groups = security_group_api . _format_security_groups_ids_names ( self . context ) #NEWLINE# neutron = clients . neutron ( self . context ) #NEWLINE# return neutron . list_ports ( tenant_id = self . context . project_id ) [ 'ports' ]