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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: High High
    • None
    • 2.1.18
    • parser

      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

       

       

       

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

              Created:
              Updated:
              Resolved: