#NEWLINE# def validate_provider_segment( self , segment ) : #NEWLINE# #INDENT# network_type = segment [ api . NETWORK_TYPE ] #NEWLINE# driver = self . drivers . get ( segment ) #NEWLINE# if driver : #NEWLINE# #INDENT# driver . obj . validate_provider_segment ( segment ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = ( _ ( "network_type value '%s' not supported" ) % network_type ) #NEWLINE# raise exc . InvalidInput ( error_message = msg )