10-16-2018 12:28 AM
Im running NSO 4.5.6 and currently having ios ned version 3.0.0.3. I deleted the old ios package in ncs-run/packages and extracted my new ned ncs-4.5.6-cisco-ios-6.0.11.tar.gz to ncs-run/packages/
I tried to do a make with clean all option. The command failed as below:
[root@localhost src]# pwd
/root/ncs-run/packages/cisco-ios/src
[root@localhost src]# make clean all
rm -rf artefacts ; rm -rf tmp-yang ; rm -f *.fxs ; rm -f schema/jsondump.pyc
rm -rf ncsc-out/* ../load-dir/*
rm -f ../private-jar/ios.jar
rm -f java/src/com/tailf/packages/ned/ios/namespaces/*.java
cd java && ant clean
/bin/bash: ant: command not found
make: *** [clean] Error 127
So, I issued, simple make. I could see some error highlighted below.
[root@localhost src]# make
...............................................
/root/nso-4.5.6/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.tailf.packages.ned.ios.namespaces --emit-java java/src/com/tailf/packages/ned/ios/namespaces/ios.java ncsc-out/modules/fxs/tailf-ned-cisco-ios.fxs
cd java && ant -q -Dpackage.name=ios -Dpackage.dir=com/tailf/packages/ned/ios all
/bin/bash: ant: command not found
make: *** [javac] Error 127
rm tmp-yang/tailf-ned-cisco-ios-meta.yang tmp-yang/tailf-ned-secrets.yang tmp-yang/cliparser-extensions-v11.yang tmp-yang/ietf-interfaces.yang tmp-yang/tailf-ned-cisco-ios-stats.yang tmp-yang/tailf-ned-cisco-ios-oper.yang tmp-yang/ietf-ip.yang tmp-yang/tailf-ned-cisco-ios-id.yang
[root@localhost src]#
I got below message in my CLI prompt window when I had done make as outlined about in root prompt.
admin@ncs#
>>> System upgrade is starting.
>>> Sessions in configure mode must exit to operational mode.
>>> No configuration changes can be performed until upgrade has completed.
>>> System upgrade has been cancelled.
I got below output saying to check if package is compiled correctly when I issued package reload:
admin@ncs> request packages reload
Error: The following Java classes look suspicious:
cisco-ios: com/tailf/packages/ned/ios/namespaces/iosId.class has modificationtim e older than the corresponding .java file
....................
cisco-ios: com.tailf.packages.ned.ios.IOSDp is declared in package-meta-data.xml but not found
Check that the corresponding packages have been properly compiled.
If this is intended, proceed with 'force' parameter.
[error][2018-10-16 03:11:02]
Can you please help with exact steps to execute make without failure so that my latest NED reflects in the system?
Solved! Go to Solution.
10-16-2018 01:14 AM
10-16-2018 01:14 AM
10-16-2018 01:39 AM
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