Uploaded image for project: 'honeycomb'
  1. honeycomb
  2. HONEYCOMB-420

Use Binding Specification v2

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • HC common
    • None

      Update api-parent to use mdsal-binding2-maven-api-gen-plugin instead of maven-sal-api-gen-plugin.

       

      Issues fixed in V2:

      Possible problems:

      • neither netconf nor bgpcep is using binding2, depending on the scope of V2, ODL projects should probably starts using binding2 first (interface incompatibility, bugs, etc.)
      • augmentation classes are not generated, instead getters for leaves/containers from augments are generated, e.g.:

      interface SimpleContainer {

      [...]

      java.lang.String getSimpleContainerName();

      ComplexAugmentContainer getComplexAugmentContainer();

      java.lang.String getSimpleAugmentLeaf();

       

      HC supports writers/readers for augmentation nodes, which will no longer be possible.

      This is not a big issue (a matter of typing) in case of augments that add containers.

      In case of augments that add just leaves, we don't have information that would allow registering reader/writer for just the leaves from augmentation.

      After switching to Binding v2 handler for parent node should also process leaves from augmentations, which introduces some maintainability penalty in case simple augmentation has to be used (model from rfc, etc.).

       

            Unassigned Unassigned
            mgradzki Marek Gradzki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: