cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Pioneer NED Builder

1847
Views
0
Helpful
4
Comments
Cisco Employee

This video shows a demo of using the NSO Pioneer NED builder tool to build a NETCONF NED for a new device.

The script that was used in the demo is attached (build-and-install-ned.sh).

4 Comments
Beginner

I followed the Build process that is mentioned here: https://github.com/NSO-developer/pioneer

When I restart NCS, I dont see any of the pioneer command options.  I cloned this into (my runtime directory)/packages directory and ran the make command and got this as output:

 

[root@cisco-nso ncs-run]# make -C packages/pioneer/src/ clean all
make: Entering directory `/root/ncs-run/packages/pioneer/src'
rm -rf ../load-dir/* ../python/pioneer/namespaces/*.py
rm -rf ./src/*/*.pyc
/root/ncs-4.7/bin/ncsc `ls pioneer-ann.yang > /dev/null 2>&1 && echo "-a pioneer-ann.yang"` \
-c -o ../load-dir/pioneer.fxs yang/pioneer.yang
/root/ncs-4.7/bin/ncsc --emit-python ../python/pioneer/namespaces/pioneer.py ../load-dir/pioneer.fxs
test -f ../python/pioneer/namespaces/__init__.py || touch ../python/pioneer/namespaces/__init__.py
PYTHONPATH=../python:$PYTHONPATH python ../python/pioneer/action.py
cp xsl/ncs-import.xsl ../load-dir/ncs-import.xsl
cp xsl/ncs-extract-capas.xsl ../load-dir/ncs-extract-capas.xsl
cp xsl/ncs-extract-module.xsl ../load-dir/ncs-extract-module.xsl
cp xsl/ncs-extract-schemas.xsl ../load-dir/ncs-extract-schemas.xsl
cp xsl/ncs-import-from-top.xsl ../load-dir/ncs-import-from-top.xsl
cp xsl/ncs-import-as-template.xsl ../load-dir/ncs-import-as-template.xsl
make: Leaving directory `/root/ncs-run/packages/pioneer/src'

 

Anything here I did incorrectly?

Beginner

Resolved with packages reload at the CLI

Cisco Employee

I'm glad you got it resolved.  Thanks for posting both the question and the answer, so everybody can benefit.




.

Cisco Employee

Hi,

 

I am getting error while downloading the yang modules. May I know what is wrong?

 

admin@ncs# devices device LBUCS009-UAME pioneer netconf hello
hello-reply <?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:base:1.1</capability>
<capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
<capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>
<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.0</capability>
<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.1</capability>
<capability>urn:ietf:params:netconf:capability:xpath:1.0</capability>
<capability>urn:ietf:params:netconf:capability:url:1.0?scheme=ftp,sftp,file</capability>
<capability>urn:ietf:params:netconf:capability:validate:1.0</capability>
<capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
<capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
<capability>urn:ietf:params:netconf:capability:notification:1.0</capability>
<capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=report-all</capability>
<capability>urn:ietf:params:netconf:capability:yang-library:1.0?revision=2016-06-21&amp;module-set-id=506f5e6350ed63b2e73d1dbc69bacb0b</capability>
<capability>http://tail-f.com/ns/netconf/actions/1.0</capability>
<capability>http://tail-f.com/ns/netconf/extensions</capability>
<capability>http://tail-f.com/ns/aaa/1.1?module=tailf-aaa&amp;revision=2015-06-16</capability>
<capability>http://tail-f.com/ns/common/query?module=tailf-common-query&amp;revision=2017-04-27</capability>
<capability>http://tail-f.com/ns/kicker?module=tailf-kicker&amp;revision=2016-11-24</capability>
<capability>http://tail-f.com/ns/webui?module=tailf-webui&amp;revision=2013-03-07</capability>
<capability>http://tail-f.com/yang/acm?module=tailf-acm&amp;revision=2013-03-07</capability>
<capability>http://tail-f.com/yang/common?module=tailf-common&amp;revision=2017-08-21</capability>
<capability>http://tail-f.com/yang/common-monitoring?module=tailf-common-monitoring&amp;revision=2013-06-14</capability>
<capability>http://tail-f.com/yang/confd-monitoring?module=tailf-confd-monitoring&amp;revision=2013-06-14</capability>
<capability>http://tail-f.com/yang/netconf-monitoring?module=tailf-netconf-monitoring&amp;revision=2016-11-24</capability>
<capability>http://tail-f.com/yang/xsd-types?module=tailf-xsd-types&amp;revision=2017-11-20</capability>
<capability>http://www.cisco.com/usp/nfv/usp-fmr?module=usp-fmr&amp;revision=2017-10-25</capability>
<capability>http://www.cisco.com/usp/nfv/usp-nfvi-oper?module=usp-nfvi-oper&amp;revision=2017-06-01</capability>
<capability>http://www.cisco.com/usp/nfv/usp-nfvi-types?module=usp-nfvi-types&amp;revision=2017-06-01</capability>
<capability>http://www.cisco.com/usp/nfv/usp-nsds?module=usp-nsds&amp;revision=2017-10-25</capability>
<capability>http://www.cisco.com/usp/nfv/usp-secure-token?module=usp-secure-token&amp;revision=2017-01-06</capability>
<capability>http://www.cisco.com/usp/nfv/usp-transaction?module=usp-transaction&amp;revision=2017-01-06</capability>
<capability>http://www.cisco.com/usp/nfv/usp-uas-common?module=usp-uas-common&amp;revision=2016-08-25</capability>
<capability>http://www.cisco.com/usp/nfv/usp-uas-common-oper?module=usp-uas-common-oper&amp;revision=2016-10-14</capability>
<capability>http://www.cisco.com/usp/nfv/usp-uas-vnfd?module=usp-uas-vnfd&amp;revision=2017-10-15</capability>
<capability>http://www.cisco.com/usp/nfv/usp-vim?module=usp-vim&amp;revision=2017-06-01</capability>
<capability>http://www.cisco.com/usp/nfv/usp-vim-orch?module=usp-vim-orch&amp;revision=2017-06-01</capability>
<capability>http://www.cisco.com/usp/nfv/yang-types?module=usp-yang-types&amp;revision=2016-08-25</capability>
<capability>http://www.cisco.com/usp/usp-em-sdk/usfsdk?module=usfsdk&amp;revision=2016-10-11</capability>
<capability>http://www.cisco.com/usp/usp-em-sdk/vnf-artifacts?module=vnf-artifacts&amp;revision=2016-11-15</capability>
<capability>urn:ietf:params:xml:ns:yang:iana-crypt-hash?module=iana-crypt-hash&amp;revision=2014-08-06&amp;features=crypt-hash-sha-512,crypt-hash-sha-256,crypt-hash-md5</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&amp;revision=2013-07-15</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-acm?module=ietf-netconf-acm&amp;revision=2012-02-22</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&amp;revision=2010-10-04</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-notifications?module=ietf-netconf-notifications&amp;revision=2012-02-06</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-restconf-monitoring?module=ietf-restconf-monitoring&amp;revision=2016-08-15</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-yang-library?module=ietf-yang-library&amp;revision=2016-06-21</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&amp;revision=2013-07-15</capability>
<capability>urn:ietf:params:xml:ns:netconf:base:1.0?module=ietf-netconf&amp;revision=2011-06-01</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?module=ietf-netconf-with-defaults&amp;revision=2011-06-01</capability>
</capabilities>
<session-id>97</session-id>
</hello>

admin@ncs# devices device LBUCS009-UAME pioneer yang fetch-list
Retrieving module list from device
Device supports netconf-monitoring

Found out the names for a total of 34 modules
hello message: 34
netconf-monitoring subtree: 0
netconf-monitoring xpath: 0
Marked module ietf-netconf-monitoring for download
Marked module tailf-netconf-monitoring for download
Marked module tailf-webui for download
Marked module tailf-acm for download
Marked module iana-crypt-hash for download
Marked module ietf-netconf-acm for download
Marked module usp-nsds for download
Marked module ietf-netconf-with-defaults for download
Marked module tailf-aaa for download
Marked module ietf-restconf-monitoring for download
Marked module usp-vim-orch for download
Marked module ietf-inet-types for download
Marked module tailf-common-monitoring for download
Marked module usp-uas-common-oper for download
Marked module ietf-yang-library for download
Marked module usp-vim for download
Marked module ietf-yang-types for download
Marked module tailf-common for download
Marked module usp-secure-token for download
Marked module tailf-kicker for download
Marked module tailf-common-query for download
Marked module usp-uas-vnfd for download
Marked module ietf-netconf for download
Marked module vnf-artifacts for download
Marked module usp-yang-types for download
Marked module tailf-xsd-types for download
Marked module usp-nfvi-oper for download
Marked module usp-fmr for download
Marked module ietf-netconf-notifications for download
Marked module usp-nfvi-types for download
Marked module usp-uas-common for download
Marked module usp-transaction for download
Marked module tailf-confd-monitoring for download
Marked module usfsdk for download
message Marked 34 modules for download, skipped 0
yang-directory /tmp/download/LBUCS009-UAME
admin@ncs# devices device LBUCS009-UAME pioneer yang download
Downloading 34 modules to /tmp/download/LBUCS009-UAME
1/34 Downloading module ietf-netconf-monitoring -- failed, not found
2/34 Downloading module tailf-netconf-monitoring -- failed, not found
3/34 Downloading module tailf-webui -- failed, not found
4/34 Downloading module tailf-acm -- failed, not found
5/34 Downloading module iana-crypt-hash -- failed, not found
6/34 Downloading module ietf-netconf-acm -- failed, not found
7/34 Downloading module usp-nsds -- failed, not found
8/34 Downloading module ietf-netconf-with-defaults -- failed, not found
9/34 Downloading module tailf-aaa -- failed, not found
10/34 Downloading module ietf-restconf-monitoring -- failed, not found
11/34 Downloading module usp-vim-orch -- failed, not found
12/34 Downloading module ietf-inet-types -- failed, not found
13/34 Downloading module tailf-common-monitoring -- failed, not found
14/34 Downloading module usp-uas-common-oper -- failed, not found
15/34 Downloading module ietf-yang-library -- failed, not found
16/34 Downloading module usp-vim -- failed, not found
17/34 Downloading module ietf-yang-types -- failed, not found
18/34 Downloading module tailf-common -- failed, not found
19/34 Downloading module usp-secure-token -- failed, not found
20/34 Downloading module tailf-kicker -- failed, not found
21/34 Downloading module tailf-common-query -- failed, not found
22/34 Downloading module usp-uas-vnfd -- failed, not found
23/34 Downloading module ietf-netconf -- failed, not found
24/34 Downloading module vnf-artifacts -- failed, not found
25/34 Downloading module usp-yang-types -- failed, not found
26/34 Downloading module tailf-xsd-types -- failed, not found
27/34 Downloading module usp-nfvi-oper -- failed, not found
28/34 Downloading module usp-fmr -- failed, not found
29/34 Downloading module ietf-netconf-notifications -- failed, not found
30/34 Downloading module usp-nfvi-types -- failed, not found
31/34 Downloading module usp-uas-common -- failed, not found
32/34 Downloading module usp-transaction -- failed, not found
33/34 Downloading module tailf-confd-monitoring -- failed, not found
34/34 Downloading module usfsdk -- failed, not found
message Downloaded 0 modules, failed 34, skipped 0:
Failed ietf-netconf-monitoring rpc error
Failed tailf-netconf-monitoring rpc error
Failed tailf-webui rpc error
Failed tailf-acm rpc error
Failed iana-crypt-hash rpc error
Failed ietf-netconf-acm rpc error
Failed usp-nsds rpc error
Failed ietf-netconf-with-defaults rpc error
Failed tailf-aaa rpc error
Failed ietf-restconf-monitoring rpc error
Failed usp-vim-orch rpc error
Failed ietf-inet-types rpc error
Failed tailf-common-monitoring rpc error
Failed usp-uas-common-oper rpc error
Failed ietf-yang-library rpc error
Failed usp-vim rpc error
Failed ietf-yang-types rpc error
Failed tailf-common rpc error
Failed usp-secure-token rpc error
Failed tailf-kicker rpc error
Failed tailf-common-query rpc error
Failed usp-uas-vnfd rpc error
Failed ietf-netconf rpc error
Failed vnf-artifacts rpc error
Failed usp-yang-types rpc error
Failed tailf-xsd-types rpc error
Failed usp-nfvi-oper rpc error
Failed usp-fmr rpc error
Failed ietf-netconf-notifications rpc error
Failed usp-nfvi-types rpc error
Failed usp-uas-common rpc error
Failed usp-transaction rpc error
Failed tailf-confd-monitoring rpc error
Failed usfsdk rpc error

yang-directory /tmp/download/LBUCS009-UAME
admin@ncs#

 

 

admin@ncs# show running-config devices device LBUCS009-UAME
devices device LBUCS009-UAME
address <IP>
port 2022
ssh host-key ssh-rsa
key-data "<data>"
!
authgroup UAME
device-type netconf
state admin-state unlocked
!
admin@ncs#