#NEWLINE# def find_bridge_by_id( self , datapath_id , must_exist ) : #NEWLINE# #INDENT# assert self . cache_valid #NEWLINE# for vsctl_bridge in self . bridges . values ( ) : #NEWLINE# #INDENT# if ( vsctl_bridge . br_cfg . datapath_id [ 0 ] . strip ( '"' ) == datapath_id ) : #NEWLINE# #INDENT# self . verify_bridges ( ) #NEWLINE# return vsctl_bridge #NEWLINE# #UNINDENT# #UNINDENT# if must_exist : #NEWLINE# #INDENT# vsctl_fatal ( ( 'no bridge id %s' % datapath_id ) ) #NEWLINE# #UNINDENT# return None