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

Enumeration value defined in yang model is translated without underscore

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 2641

    Description

      In my yang model I have enum defined as follows :

      typedef deployment-mode {
      type enumeration {
      enum REACTIVE_MODE

      { description "Default deployment mode. "; }

      enum PROACTIVE_MODE

      { description "Hybrid deployment mode."; }

      enum INTEGRATED_MODE

      { description "Integrated mode."; }

      }
      }

      generated sources, generated using org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl contains values for this enumeration without underscore - REACTIVEMODE,PROACTIVEMODE,INTEGRATEDMODE. It would be nice to have way, how to preserve underscore in enum values.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakubtoth-0 Jakub Toth
              mbobak@cisco.com Martin Bobak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: