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

No Packages in NSO

previousqna
Level 5
Level 5

Hi all,

I have a local install

JABELK-M-D3BK:neds jabelk$ ls -la

total 8

drwxr-xr-x  3 jabelk  staff  102 Apr 12 08:08 .

drwxr-xr-x  4 jabelk  staff  136 Apr 12 08:08 ..

lrwxr-xr-x  1 jabelk  staff   53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

JABELK-M-D3BK:neds jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages/neds

JABELK-M-D3BK:neds jabelk$

JABELK-M-D3BK:cisco-ios jabelk$ ls -la

total 424

drwxr-xr-x  12 jabelk  staff     408 Apr 11 18:23 .

drwxr-xr-x  16 jabelk  staff     544 Apr 11 18:16 ..

-rw-r--r--   1 jabelk  staff  174264 Apr  6 23:34 CHANGES

-rw-r--r--   1 jabelk  staff     166 Apr  6 23:34 LICENSE

-rw-r--r--   1 jabelk  staff   25635 Apr  6 23:34 README

-rw-r--r--   1 jabelk  staff     686 Apr  6 23:37 build-meta-data.xml

drwxr-xr-x   7 jabelk  staff     238 Apr  6 23:36 load-dir

drwxr-xr-x  24 jabelk  staff     816 Apr  6 23:37 netsim

-rw-r--r--   1 jabelk  staff    1255 Apr 11 18:23 package-meta-data.xml

drwxr-xr-x   3 jabelk  staff     102 Apr  6 23:36 private-jar

drwxr-xr-x   3 jabelk  staff     102 Apr  6 23:36 shared-jar

drwxr-xr-x   8 jabelk  staff     272 Apr 11 18:23 src

JABELK-M-D3BK:cisco-ios jabelk$

JABELK-M-D3BK:neds jabelk$ ls -la

total 89368

drwxr-xr-x  16 jabelk  staff       544 Apr 11 18:16 .

drwxr-xr-x   6 jabelk  staff       204 Apr 11 22:22 ..

-rw-r--r--@  1 jabelk  staff      6148 Apr 11 18:16 .DS_Store

-rw-r--r--   1 jabelk  staff      1792 Apr  7 08:27 README.signature

drwxr-xr-x  13 jabelk  staff       442 Mar 21 07:57 a10-acos

drwxr-xr-x  12 jabelk  staff       408 Apr 11 18:23 cisco-ios

drwxr-xr-x  12 jabelk  staff       408 Mar 21 07:57 cisco-ios-old

drwxr-xr-x  13 jabelk  staff       442 Mar 21 07:57 cisco-iosxr

drwxr-xr-x  13 jabelk  staff       442 Mar 21 07:57 cisco-nx

-rw-r--r--   1 jabelk  staff     10696 Nov 25 07:25 cisco_x509_verify_release.py

drwxr-xr-x  13 jabelk  staff       442 Mar 21 07:57 dell-ftos

drwxr-xr-x  10 jabelk  staff       340 Mar 21 07:57 juniper-junos

-rw-r--r--@  1 jabelk  staff  22847968 Apr 11 18:14 ncs-4.4-cisco-ios-5.1.2.signed.bin

-rw-r--r--   1 jabelk  staff  22871442 Apr  6 21:37 ncs-4.4-cisco-ios-5.1.2.tar.gz

-rw-r--r--   1 jabelk  staff       256 Apr  7 08:27 ncs-4.4-cisco-ios-5.1.2.tar.gz.signature

-rw-r--r--   1 jabelk  staff      1383 Nov 25 07:25 tailf.cer

JABELK-M-D3BK:neds jabelk$

here is the result of the ios NED make:

JABELK-M-D3BK:ncs-run jabelk$ cd /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

JABELK-M-D3BK:cisco-ios jabelk$ cd src/

JABELK-M-D3BK:src jabelk$ ls -la

total 24

drwxr-xr-x   8 jabelk  staff   272 Apr 11 18:23 .

drwxr-xr-x  12 jabelk  staff   408 Apr 11 18:23 ..

-rw-r--r--   1 jabelk  staff  2791 Apr  6 23:34 Makefile

drwxr-xr-x   5 jabelk  staff   170 Apr  6 23:36 java

drwxr-xr-x   3 jabelk  staff   102 Apr  6 23:34 ncsc-out

-rw-r--r--   1 jabelk  staff  1112 Apr 11 18:23 ned-data-snippet.fxs

-rw-r--r--   1 jabelk  staff  2452 Apr  6 23:34 ned-yang-filter.mk

drwxr-xr-x   7 jabelk  staff   238 Apr  6 23:34 yang

JABELK-M-D3BK:src jabelk$ make

YANG COMPILER SUPPORTS ned-data. Disabling commit-queue lock from package-meta-data.xml

/Users/jabelk/ncs-all/ncs-4.4/bin/ncsc --ncs-compile-module tmp-yang/tailf-ned-cisco-ios.yang \

                --ncs-device-dir ncsc-out \

    --ncs-skip-statistics \

                --ncs-device-type cli-ned \

  && \

   cp ncsc-out/modules/fxs/tailf-ned-cisco-ios.fxs ../load-dir

tmp-yang/tailf-ned-cisco-ios.yang:55104: warning: the path expression ../../vlan-list/name for 'tailf:cli-diff-dependency' is a circular dependency

tmp-yang/tailf-ned-cisco-ios.yang:57164: warning: when tailf:cli-drop-node-name is given, it is recommended that tailf:cli-suppress-mode is used in combination. using tailf:cli-drop-nodename in a list child without using tailf:cli-suppress-mode on the list, might lead to confusing behaviour, where the user enters the submode without being able to give further configuration.

tmp-yang/tailf-ned-cisco-ios.yang:65242: warning: when tailf:cli-drop-node-name is given, it is recommended that tailf:cli-suppress-mode is used in combination. using tailf:cli-drop-nodename in a list child without using tailf:cli-suppress-mode on the list, might lead to confusing behaviour, where the user enters the submode without being able to give further configuration.

augmented/tailf-ned-cisco-ios@2017-04-07.yang:101340: warning: when tailf:cli-sequence-commands is given, it is recommended that tailf:cli-compact-syntax is used in combination. or that tailf:cli-hide-in-submode is given in at least one of the child nodes

augmented/tailf-ned-cisco-ios@2017-04-07.yang:104617: warning: when tailf:cli-drop-node-name is given, it is recommended that tailf:cli-suppress-mode is used in combination. using tailf:cli-drop-nodename in a list child without using tailf:cli-suppress-mode on the list, might lead to confusing behaviour, where the user enters the submode without being able to give further configuration.

augmented/tailf-ned-cisco-ios@2017-04-07.yang:112869: warning: when tailf:cli-drop-node-name is given, it is recommended that tailf:cli-suppress-mode is used in combination. using tailf:cli-drop-nodename in a list child without using tailf:cli-suppress-mode on the list, might lead to confusing behaviour, where the user enters the submode without being able to give further configuration.

/Users/jabelk/ncs-all/ncs-4.4/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/tailfCiscoIos.java ncsc-out/modules/fxs/tailf-ned-cisco-ios.fxs

cd java && ant -q all

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

    [javac] 1 warning

BUILD SUCCESSFUL

Total time: 1 second

pushd ../netsim && /Library/Developer/CommandLineTools/usr/bin/make all && popd

~/ncs-all/ncs-4.4/packages/neds/cisco-ios/netsim ~/ncs-all/ncs-4.4/packages/neds/cisco-ios/src

make[1]: Nothing to be done for `all'.

~/ncs-all/ncs-4.4/packages/neds/cisco-ios/src

rm -f *.yang

rm -rf tmp-yang

JABELK-M-D3BK:src jabelk$

admin@ncs# show packages

% No entries found.

admin@ncs# packages reload

admin@ncs# show packages

% No entries found.

admin@ncs#

JABELK-M-D3BK:ncs-run jabelk$ ncs --with-package-reload

JABELK-M-D3BK:ncs-run jabelk$ ncs --version

4.4

JABELK-M-D3BK:ncs-run jabelk$ ncs_cli -u admin -C

admin connected from 127.0.0.1 using console on JABELK-M-D3BK

admin@ncs# show packages

% No entries found.

admin@ncs#

I do not understand why I still cannot see any packages in my fresh install, when I followed the steps for install here:

https://wwwin-github.cisco.com/pages/nsopl/doc/html/nso_installation_guide/ch02s02.html

and

Installation of NCS/NSO Natively on a MAC - Cisco

From what I can tell, it should be picking up the new packages:

https://wwwin-github.cisco.com/pages/nsopl/doc/html/nso_admin_guide/ug.package_mgmt.overview.html

from the default

/ncs-config/load-path

which has:

<load-path>

    <dir>./packages</dir>

    <dir>${NCS_DIR}/etc/ncs</dir>

    <!-- To disable northbound snmp altogether -->

    <!-- comment out the path below -->

    <dir>${NCS_DIR}/etc/ncs/snmp</dir>

  </load-path>

are settings being used, the linked directory into packages should show up, correct?

1 Accepted Solution

Accepted Solutions

previousqna
Level 5
Level 5

figured it out, I was linking the packages under a NED folder to mirror the 4.4 install:

JABELK-M-D3BK:neds jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages/neds

JABELK-M-D3BK:neds jabelk$

JABELK-M-D3BK:neds jabelk$ ls -l

total 8

lrwxr-xr-x  1 jabelk  staff  53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

JABELK-M-D3BK:neds jabelk$

when what I needed to do was link the cisco-ios package under "packages" directly, with no NED sub folder, NSO must have hard coded to look for it without NED folder, which is confusing since the install directory has the sub-folder:

JABELK-M-D3BK:packages jabelk$ ls -l

total 8

lrwxr-xr-x  1 jabelk  staff   53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

drwxrwxrwx  3 jabelk  staff  102 Apr 12 08:08 neds

JABELK-M-D3BK:packages jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages

JABELK-M-D3BK:packages jabelk$

So the above bolded linked cisco-ios package (NED) under no subfolder showed up in the packages reload, but if under the NED sub-folder, it was never showing up.

Just to be clear, there should be no neds folder in the packages :

JABELK-M-D3BK:packages jabelk$ ls -l

total 8

lrwxr-xr-x  1 jabelk  staff  53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

JABELK-M-D3BK:packages jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages

JABELK-M-D3BK:packages jabelk$

View solution in original post

1 Reply 1

previousqna
Level 5
Level 5

figured it out, I was linking the packages under a NED folder to mirror the 4.4 install:

JABELK-M-D3BK:neds jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages/neds

JABELK-M-D3BK:neds jabelk$

JABELK-M-D3BK:neds jabelk$ ls -l

total 8

lrwxr-xr-x  1 jabelk  staff  53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

JABELK-M-D3BK:neds jabelk$

when what I needed to do was link the cisco-ios package under "packages" directly, with no NED sub folder, NSO must have hard coded to look for it without NED folder, which is confusing since the install directory has the sub-folder:

JABELK-M-D3BK:packages jabelk$ ls -l

total 8

lrwxr-xr-x  1 jabelk  staff   53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

drwxrwxrwx  3 jabelk  staff  102 Apr 12 08:08 neds

JABELK-M-D3BK:packages jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages

JABELK-M-D3BK:packages jabelk$

So the above bolded linked cisco-ios package (NED) under no subfolder showed up in the packages reload, but if under the NED sub-folder, it was never showing up.

Just to be clear, there should be no neds folder in the packages :

JABELK-M-D3BK:packages jabelk$ ls -l

total 8

lrwxr-xr-x  1 jabelk  staff  53 Apr 12 08:08 cisco-ios -> /Users/jabelk/ncs-all/ncs-4.4/packages/neds/cisco-ios

JABELK-M-D3BK:packages jabelk$ pwd

/Users/jabelk/ncs-all/ncs-run/packages

JABELK-M-D3BK:packages jabelk$