Closed marumer closed 1 year ago
$(DIRS):
mkdir -p $@
../load-dir/%.fxs: yang/%.yang
$(NCSC) ls $*-ann.yang > /dev/null 2>&1 && echo "-a $*-ann.yang"
\
--fail-on-warnings \
$(NCSCPATH) \
-c -o $@ $<
@ueasaksupa suggestion to remove "--fail-on-warnings" in the service Makefile addressed the issue
working on the ISIS service model, I am trying in the YANG module to refer to TenGigE/ interfaces using the leafref and for doing this, we are forced to import in the yang model the XR ned tailf-ned-cisco-ios-xr .
I have started having this issue with the free XR CLI NED and confirmed that the issue is still the same with the latest cisco-iosxr-cli-7.50 NED.
16 import tailf-ned-cisco-ios-xr { 17 prefix cisco-ios-xr; 18 }
48 list interfaces { 49 key "interface-name"; 50 leaf interface-name{ 51 tailf:info "Interface Name"; 52 type leafref { 53 path "deref(../../device)/../ncs:config/cisco-ios-xr:interface/cisco-ios-xr:TenGigE/cisco-ios-xr:id"; 54 } 57 }
The path is now accepted in compilation but I am still getting same errors with the NED.
The compilation is now reporting:
But the tailf:cli-drop-node-name is reported in too many places to fix and it is hard to find the right line because of the import in the YANG module that seems changing the line number reported in the error.
We may consider using the netconf instead of the cli yang but this should be a common error and there should be a workaround.