#NEWLINE# def getall( self ) : #NEWLINE# #INDENT# 'Returns a dict object to all Switchports\n\n        This method will return all of the configured switchports as a\n        dictionary object keyed by the interface identifier.\n\n        Returns:\n            A Python dictionary object that represents all configured\n                switchports in the current running configuration\n        ' #NEWLINE# interfaces_re = re . compile ( '(?<=^interface\\s)([Et|Po].+)$' , re . M ) #NEWLINE# response = dict ( ) #NEWLINE# for name in interfaces_re . findall ( self . config ) : #NEWLINE# #INDENT# interface = self . get ( name ) #NEWLINE# if interface : #NEWLINE# #INDENT# response [ name ] = interface #NEWLINE# #UNINDENT# #UNINDENT# return response