Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-906

Unable to parse ietf-access-control-list yang and its throwing java.lang.IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      Issue with Netconf version: 3.0.5

      It is not parsing  ietf-access-control-list yang and it is throwing the below error message.

      Caused by: java.lang.IllegalArgumentException: Schema tree child  (urn:ietf:params:xml:ns:yang:ietf-access-control-list?revision=2019-03-04)lower-port not present in schema parent (urn:ietf:params:xml:ns:yang:ietf-access-control-list?revision=2019-03-04)port-range-or-operator
      at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.notPresent(SchemaInferenceStack.java:1058) ~[?:?]    at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.lambda$pushSchema$5(SchemaInferenceStack.java:835) ~[?:?]
          at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
          at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushSchema(SchemaInferenceStack.java:835) ~[?:?]

      And it works fine Netconf 2.0.5. Able to see this issue in recent version of Netconf(4.0.2)

       

        1. Error_Screenshot.png
          Error_Screenshot.png
          134 kB
        2. ietf-access-control-list.yang
          20 kB
        3. ietf-interfaces.yang
          38 kB
        4. ietf-packet-fields.yang
          17 kB
        5. ietf-yang-types.yang
          18 kB
        6. karaf_log_access_control_list_yang_parsing
          36 kB

            Unassigned Unassigned
            KowsalyaChandru Kowsalya Saravanan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: