#NEWLINE# def _parse_interfaces( self ) : #NEWLINE# #INDENT# 'Scans the global config and returns the configured interfaces\n\n        Returns:\n            dict: A dict object that is intended to be merged into the\n                resource dict.\n        ' #NEWLINE# interfaces = dict ( ) #NEWLINE# names = re . findall ( '^interface (Po.+)$' , interfaces . config , re . M ) #NEWLINE# for name in names : #NEWLINE# #INDENT# config = self . get_block ( ( 'interface %s' % name ) ) #NEWLINE# match = re . search ( 'mlag (\\d+)' , config ) #NEWLINE# if match : #NEWLINE# #INDENT# interfaces [ name ] = dict ( mlag_id = match . group ( 1 ) ) #NEWLINE# #UNINDENT# #UNINDENT# return dict ( interfaces = interfaces )