[NETCONF-906] Unable to parse ietf-access-control-list yang and its throwing java.lang.IllegalArgumentException Created: 28/Oct/22  Updated: 28/Oct/22

Status: Open
Project: netconf
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Kowsalya Saravanan Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Error_Screenshot.png     File ietf-access-control-list.yang     File ietf-interfaces.yang     File ietf-packet-fields.yang     File ietf-yang-types.yang     HTML File karaf_log_access_control_list_yang_parsing    

 Description   

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)

 


Generated at Wed Feb 07 20:16:12 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.