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

Enumeration value defined in yang model is translated without underscore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 2641

      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.

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

              Created:
              Updated:
              Resolved: