#NEWLINE# def serialize( self ) : #NEWLINE# #INDENT# ( prefix , prefix_length ) = self . prefix . split ( '/' ) #NEWLINE# prefix = addrconv . ipv4 . text_to_bin ( prefix ) #NEWLINE# prefix_length = int ( prefix_length ) #NEWLINE# return struct . pack ( self . _VALUE_PACK_STR , OSPF_EXTENDED_PREFIX_TLV , ( self . _VALUE_PACK_LEN - 4 ) , self . route_type , prefix_length , self . address_family , 0 , self )