#NEWLINE# @ classmethod #NEWLINE# def __check_interface_name( cls , name ) : #NEWLINE# #INDENT# net_io = psutil . net_io_counters ( pernic = True ) #NEWLINE# if ( name in net_io ) : #NEWLINE# #INDENT# return name #NEWLINE# #UNINDENT# for curr_nif_name in net_io : #NEWLINE# #INDENT# if ( name in curr_nif_name ) : #NEWLINE# #INDENT# name = curr_nif_name #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# return name