#NEWLINE# def serialize( self ) : #NEWLINE# #INDENT# id_ = addrconv . ipv4 . text_to_bin ( self . id ) #NEWLINE# adv_router = addrconv . ipv4 . text_to_bin ( self . adv_router ) #NEWLINE# return bytearray ( struct . pack ( self . _PACK_STR , self . type_ , id_ , adv_router ) )