cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
572
Views
1
Helpful
1
Replies

tailf:code-name on the conflicting enums, bits, or nodes

saumya003
Level 1
Level 1

I have NSO-571 and i am trying to compile a NED where in i have tailf-common.yang & tailf-cli-extensions.yang files.

I am getting below error when i 'make'..

----------------------------------------------

/home/nsoadmin/nso-5-7-1/bin/ncsc --ncs-compile-bundle yang \
--ncs-device-dir ncsc-out \
--fail-on-warnings \
\
\
--ncs-device-type netconf \
\
--ncs-ned-id cisco-asr1k-test-nc-nc-1.0:cisco-asr1k-test-nc-nc-1.0 \

cp ncsc-out/modules/fxs/*.fxs ../load-dir
for f in `echo ../load-dir/*.fxs`; do \
n=`basename $f | sed 's/\.fxs//'`; \
/home/nsoadmin/nso-5-7-1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.ciscoasr1ktestnc.namespaces --emit-java java/src/com/example/ciscoasr1ktestnc/namespaces/${n}.java $f || exit 1; \
/home/nsoadmin/nso-5-7-1/bin/ncsc --fail-on-warnings \
--emit-python ../python/cisco_asr1k_test_nc $f || \
exit 1; \
true; \
done
Warning: the following symbols have been suppressed due to a
conflict with an enum or bit with the same mapped name but a different value:
'invalid-class'.
Use tailf:code-name on the conflicting enums, bits, or nodes
to avoid the conflict.
make: *** [Makefile:53: ncsc-out/.done] Error 1

------------------------------------------------------------------

Any help please.. Thanks. 

1 Reply 1

snovello
Cisco Employee
Cisco Employee
You can change your Makefile or any included Makefile so you don’t use the --fail-on-warnings flag.