Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1284

Cannot parse yexte:initial-value "::" for ipv6 address

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Cannot Reproduce
    • 2.1.18
    • None
    • parser

    Description

      Hi,

       

      leaf ipv6Address {
        description "Eight fields, separated by colons. Each field consists of up to four hexadecimal characters. Value of each field is in range 0-FFFF. Leading zeroes can be omitted in a field, and multiple groups of 16 bits of zeroes can be compressed to :: The :: can appear only once in an address.";
        type inet:ipv6-address-no-zone;
        yexte:initial-value "::";
      }
      

       

       

      when we parse this we get a index out of bounds.

      If we change it to be "::\0" then parser accepts it.

       

      Why is default route ok but not :: ?

       

      br,

       

      //mikael

       

       

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            eraonel mikael petterson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: