#NEWLINE# def to_json( self ) : #NEWLINE# #INDENT# 'Serialize to JSON dict' #NEWLINE# return { #NEWLINE# #INDENT# '__type__' : object_fullname ( self ) , #NEWLINE# 'name' : self . name , #NEWLINE# 'ips' : [ ip . toStr ( ) for ip in self . ips ] , #NEWLINE# 'hw_addr' : self . hw_addr . toStr ( ) , #NEWLINE# #UNINDENT# }