Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-138

A request to add a license header to yang-tool-generated files (binding spec. v2)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

      +++ This bug was initially created as a clone of MDSAL-123 +++

      Hello:

      Would it be possible for you to add a Copyright & License headers to the top of the files that YangTools generates? This will be very helpful to our end users. Remember that a file that contains code and no license does not allow a recipient of such a file to anything with it. The license gives them written permission to do something. Right now, it is implied that, since the file came from ODL, that it is Eclipse licensed. It would be much better to make it so that it was explicit.

      I would leave implementation details to you, but I can see the following possible scenarios:

      • At a minimum, it would be nice to have a command line flag to turn on license generation. With that flag on you could designate the copyright to "OpenDaylight Project" and the standard "Eclipse Public License" header.
      • A more advance implementation would allow the user to include the copyright holder (Cisco, HP, Red Hat, etc) instead of, or in addition to a default of "OpenDaylight Project".
      • A further advanced implementation would allow for different license banner text (other than the Eclipse Public License text) in the event folks want to use YangTools for code generation outside of the scope of the OpenDaylight Project.

      Is this possible to do at some point in the not-too-distant future?... Maybe a feature request for Boron?

            Unassigned Unassigned
            martin.ciglan Martin Ciglan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: