#NEWLINE# def devname_from_index( self , if_index ) : #NEWLINE# #INDENT# 'Return interface name from interface index' #NEWLINE# for ( devname , iface ) in self . items ( ) : #NEWLINE# #INDENT# if ( iface . win_index == if_index ) : #NEWLINE# #INDENT# return iface . name #NEWLINE# #UNINDENT# #UNINDENT# raise ValueError ( ( 'Unknown network interface index %r' % if_index ) )