openBackhaul / ethernetContainer

Technology specific interface definition for an Ethernet Container
Apache License 2.0
1 stars 0 forks source link

Ethernet Container Yang not compiling #24

Closed sbarguil closed 3 years ago

sbarguil commented 4 years ago

There are errors in Yang File. Not able to compile it using pyang.

pyang -f tree ethernet-container-2-0.yang 
ethernet-container-2-0.yang:1: error: syntax error: illegal keyword: module ethernet-container-2-0 {
alexandrustancu commented 4 years ago

I believe this is a problem caused by the YANG file being edited under Windows.

You could try the following command first, and then re-run your pyang:

dos2unix -o ethernet-container-2-0.yang

It worked for me.

Jothi-upashana commented 4 years ago

pyang -f tree ethernet-container-2-0.yang ethernet-container-2-0.yang:9: error: module "core-model-1-4" not found in search path module: ethernet-container-2-0

In EthernetContainer_2.0.0-tsp.191123.1240+yang.1, only ethernet-container-2-0.yang found. No core-model.yang found.

alexandrustancu commented 4 years ago

The core-model-1-4.yang model is under the core repository.

Jothi-upashana commented 4 years ago

Issue resolved. Able to compile YANG using pyang. Thanks.

openBackhaul commented 3 years ago

YANG has already been corrected. Existing implementations are basing on the corrected YANG.

Decision on the 5G-xhaul call on 21st of April: Just closing the issue