#NEWLINE# def _urn_to_dpid( urn ) : #NEWLINE# #INDENT# '\n    Change from a switch URN to a dpid.\n    ' #NEWLINE# m = external_switch_re . search ( urn ) #NEWLINE# if ( not m ) : #NEWLINE# #INDENT# raise BadURNError ( urn ) #NEWLINE# #UNINDENT# return m . group ( 'dpid' )