03-21-2021 04:55 AM - edited 03-21-2021 04:56 AM
Hi,
I am having compile error while using ned cisco-ios-xr-cli-7.18 with NSO5.2 , the other NEDs of ios xr including ned cisco-ios-xr-cli-3.0 and ned cisco-ios-xr-cli-3.5 seem to be working ok.the reason I have to use ned cisco-ios-xr-cli-7.18 is because segment routing commands are not supported in older iosxr neds. kindly advise any solution to this error. OS is ubuntu 16.04 . thanks.
the error is as below.
Bad configuration: /home/ahmad/ncs-run/xr-segmentrouting-local/ncs.conf:0: ./state/packages-in-use/1/cisco-iosxr-cli-7.18/load-dir/ietf-interfaces.fxs: Must be recompiled!
ahmad@ahmad:~/ncs-run/xr-segmentrouting-local$ make stop clean all start
ncs-netsim stop
DEVICE pe0 STOPPED
DEVICE pe1 STOPPED
DEVICE pe2 STOPPED
DEVICE pe3 STOPPED
ncs --stop
for i in sr ti-lfa sr-ms disable-ldp; do \
make -C packages/${i}/src clean || exit 1; \
done
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr/src' rm -rf ../load-dir/* ../python/_namespaces/* make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr/src'
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/ti-lfa/src' rm -rf ../load-dir/* ../python/_namespaces/* make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/ti-lfa/src'
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr-ms/src' rm -rf ../load-dir/* ../python/_namespaces/* make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr-ms/src'
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/disable-ldp/src' rm -rf ../load-dir/* ../python/_namespaces/*
make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/disable-ldp/src' rm -f README.ncs README.netsim
rm -rf netsim running.DB logs state ncs-cdb *.trace
rm -f packages/cisco-iosxr-cli-7.18
rm -rf bin
rm -f clicmd.tmp waiter.sh
for i in sr ti-lfa sr-ms disable-ldp; do \
make -C packages/${i}/src all || exit 1; \
done
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr/src'
/home/ahmad/nso-5.2/bin/ncsc `ls sr-ann.yang > /dev/null 2>&1 && echo "-a sr-ann.yang"` \
-c -o ../load-dir/sr.fxs yang/sr.yang
/home/ahmad/nso-5.2/bin/ncsc --emit-python ../python/_namespaces/sr.py ../load-dir/sr.fxs
make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr/src'
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/ti-lfa/src'
/home/ahmad/nso-5.2/bin/ncsc `ls ti-lfa-ann.yang > /dev/null 2>&1 && echo "-a ti-lfa-ann.yang"` \
-c -o ../load-dir/ti-lfa.fxs yang/ti-lfa.yang
/home/ahmad/nso-5.2/bin/ncsc --emit-python ../python/_namespaces/ti-lfa.py ../load-dir/ti-lfa.fxs
make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/ti-lfa/src'
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr-ms/src'
/home/ahmad/nso-5.2/bin/ncsc `ls sr-ms-ann.yang > /dev/null 2>&1 && echo "-a sr-ms-ann.yang"` \
-c -o ../load-dir/sr-ms.fxs yang/sr-ms.yang
/home/ahmad/nso-5.2/bin/ncsc --emit-python ../python/_namespaces/sr-ms.py ../load-dir/sr-ms.fxs
make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/sr-ms/src'
make[1]: Entering directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/disable-ldp/src' /home/ahmad/nso-5.2/bin/ncsc `ls disable-ldp-ann.yang > /dev/null 2>&1 && echo "-a disable-ldp-ann.yang"` \ -c -o ../load-dir/disable-ldp.fxs yang/disable-ldp.yang /home/ahmad/nso-5.2/bin/ncsc --emit-python ../python/_namespaces/disable-ldp.py ../load-dir/disable-ldp.fxs
make[1]: Leaving directory '/home/ahmad/ncs-run/xr-segmentrouting-local/packages/disable-ldp/src' ncs-netsim --dir netsim create-network /home/ahmad/nso-5.2/packages/neds/cisco-iosxr-cli-7.18 4 pe
DEVICE pe0 CREATED
DEVICE pe1 CREATED
DEVICE pe2 CREATED
DEVICE pe3 CREATED
cp initial_data/iosxr.xml netsim/pe/pe0/cdb
cp initial_data/iosxr.xml netsim/pe/pe1/cdb
cp initial_data/iosxr.xml netsim/pe/pe2/cdb
cp initial_data/iosxr.xml netsim/pe/pe3/cdb
ncs-setup --netsim-dir netsim --dest .
Using netsim dir netsim
ncs-netsim ncs-xml-init > ncs-cdb/netsim_devices_init.xml
cp initial_data/python.xml ncs-cdb
cp initial_data/device-icons.xml
ncs-cdb ncs-netsim start
Bad configuration: confd.conf:0: ./aaa.fxs: Must be recompiled!
Daemon died status=21
DEVICE pe0 FAIL
Bad configuration: confd.conf:0: ./aaa.fxs: Must be recompiled!
Daemon died status=21
DEVICE pe1 FAIL
Bad configuration: confd.conf:0: ./aaa.fxs: Must be recompiled!
Daemon died status=21
DEVICE pe2 FAIL
Bad configuration: confd.conf:0: ./aaa.fxs: Must be recompiled!
Daemon died status=21
DEVICE pe3 FAIL
ncs
Bad configuration: /home/ahmad/ncs-run/xr-segmentrouting-local/ncs.conf:0: ./state/packages-in-use/1/cisco-iosxr-cli-7.18/load-dir/ietf-interfaces.fxs: Must be recompiled!
Daemon died status=21
Makefile:50: recipe for target 'start' failed
make: *** [start] Error 21
ahmad@ahmad:~/ncs-run/xr-segmentrouting-local$
Solved! Go to Solution.
03-24-2021 02:00 AM
Where did you get the package "/home/ahmad/nso-5.2/packages/neds/cisco-iosxr-cli-7.18" from? Did you verify that it is indeed compiled for your NSO version?
As you can see, the netsim devices also cannot start with your version of NSO, because it seems the ned was compiled for a different major version of NSO.
Try recompiling the package with NSO-5.2 (ie., something like this:)
make -C /home/ahmad/nso-5.2/packages/neds/cisco-iosxr-cli-7.18/src clean all
Or, the easier way, imo, is to download the correct NED version (ie., one that is compiled for NSO-5.2).
/Ram
03-24-2021 02:00 AM
Where did you get the package "/home/ahmad/nso-5.2/packages/neds/cisco-iosxr-cli-7.18" from? Did you verify that it is indeed compiled for your NSO version?
As you can see, the netsim devices also cannot start with your version of NSO, because it seems the ned was compiled for a different major version of NSO.
Try recompiling the package with NSO-5.2 (ie., something like this:)
make -C /home/ahmad/nso-5.2/packages/neds/cisco-iosxr-cli-7.18/src clean all
Or, the easier way, imo, is to download the correct NED version (ie., one that is compiled for NSO-5.2).
/Ram
03-24-2021 04:36 AM
Hi Ram,
Thanks for your reply, The problem was fixed when I used ned cisco-iosxr-cli-7.15, that was built for NSO5.2, where as cisco-iosxr-cli-7.18 was built for NSO5.3.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide