#NEWLINE# def getbulk( self , bulkpdu ) : #NEWLINE# #INDENT# comm = self . sessiondata . get_community ( RO ) #NEWLINE# if ( not comm ) : #NEWLINE# #INDENT# comm = self . sessiondata . get_community ( RW ) #NEWLINE# if ( not comm ) : #NEWLINE# #INDENT# raise SNMPBadCommunity ( 'No community!' ) #NEWLINE# #UNINDENT# #UNINDENT# mo = CommunityBasedMessage ( comm , comm , self . sessiondata . version ) #NEWLINE# resp = self . _send_and_receive ( mo ) #NEWLINE# if resp . pdu . error_status : #NEWLINE# #INDENT# raise EXCEPTION_MAP [ resp . pdu . error_status ] ( resp . pdu . error_index ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return resp . pdu . varbinds