#NEWLINE# def __init__( self , hw_addr , ip_or_ips = None , name = '' ) : #NEWLINE# #INDENT# if isinstance ( hw_addr , basestring ) : #NEWLINE# #INDENT# hw_addr = EthAddr ( hw_addr ) #NEWLINE# #UNINDENT# ips = ( [ ] if ( ip_or_ips is None ) else ip_or_ips ) #NEWLINE# ips = ( ips if isinstance ( ips , list ) else [ ips ] ) #NEWLINE# for i in range ( len ( ips ) ) : #NEWLINE# #INDENT# if isinstance ( ips [ i ] , basestring ) : #NEWLINE# #INDENT# ips [ 0 ] = IPAddr ( ips [ i ] ) #NEWLINE# #UNINDENT# #UNINDENT# super ( HostInterface , self ) . __init__ ( hw_addr , ips , name )