Changes between Version 6 and Version 7 of Internal/OpenFlow/VendorTutorial


Ignore:
Timestamp:
Dec 28, 2012, 5:28:23 AM (11 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/VendorTutorial

    v6 v7  
    108108 1. Since vendor IDs may vary in length, we indicate the length in bytes that the vendor ID is when we instantiate the OFBasicVendorId. In (1) we provide the constructor with the value 4 along with the actual Vendor ID, indicating that the Nicira vendor ID is an integer (4 bytes long).
    109109 
    110  2. As seen above in (2) and (3), the class implementing the vendor data should include the method ''getInstantiable()''. `OFBasicVendorDataType`, is a container for an instantiator of a `OFVendorData` subclass. By allowing the custom class to provide it a format, `OFBasicVendorDataType` avoids making assumptions about the structure of the message payload.   
     110 2. As seen above in (2) and (3), the class implementing the vendor data should include a way to provide an instantiator. The instantiator provides `OFBasicVendorDataType` with a format that allows it to avoid making assumptions about the structure of the vendor data. The method ''getInstantiable()'' returns an instantiator for the class.   
    111111
    112 2. indicates that we also need a ''getInstantiable()'' in our vendor data. The following snippet was taken from `OFRoleRequestVendorData`, but the structure will pretty much be the same for any vendor data class (e.g. replace OFRoleRequestVendorData below with your class):
     112Point 2. indicates that we need a ''getInstantiable()'' (or something of equal function) in our vendor data. The following snippet was taken from `OFRoleRequestVendorData`, but the structure will pretty much be the same for any vendor data class (e.g. replace OFRoleRequestVendorData below with your class):
    113113{{{
    114114    protected static Instantiable<OFVendorData> instantiable =