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

MacAddress flaws

    XMLWordPrintable

Details

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

    Description

      Greetings,
      in ietf-yang-types project there is generated class MacAddress having following flaws:

      • Pattern is not thread safe - should not be compiled once in static block
      • field patterns is not accessible so it can't be really validated

      Questions/Suggestions:

      • why is it not validated in contructor (string version)?
      • if it is not efficient to validate at creation time, can the regex pattern list be exposed to validate later?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            michal.rehak Michal Rehak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: