02-04-2021 12:48 AM
Hello,
I'm new in community. Play with NSO-5.3 local installation. Currently try to implement the following example: examples.ncs/getting-started/developing-with-ncs/17-mpls-vpn-python. But to understand the NSO dependencies I decided to setup the environment manually and a little bit simpler:
ncs-netsim create-network /opt/nso-5.3/packages/neds/cisco-ios-cli-3.0 6 ce
ncs-netsim add-to-network /opt/nso-5.3/packages/neds/cisco-iosxr-cli-3.0 3 pe
copied ios.xml andiosxr.xml to the appropriatenetsim/(ce/pe)/(ce/pe1…..x/cdb/ directory.
ncs-netsim start
ncs-setup --netsim-dir ./netsim --dest .
Generate skeleton:
cd /opt/walnso_vpn02/packages
ncs-make-package --service-skeleton python-and-template VPN02 --augment /ncs:services
Compile package
cd /opt/walnso_vpn02/packages/VPN02/src
make clean all
Create topology file using the simplified topology.xml from the example:
vi /opt/walnso_vpn02/ncs-cdb/topology.xml
Start ncs:
ncs
Result:
CDB boot error: failed to load ./ncs-cdb/topology.xml:2: unknown namespace: http://com/example/l3vpn in topology
Daemon died status=10
I've compared in skeleton automatic created /packages/VPN02/src/Makefile and in example, some differences.
Copied example Makefile, result the same.
Could you help me please.
Regards
wal77
02-04-2021 08:40 AM
02-04-2021 09:00 AM
In my yang module I have container "topology", the same as in the examples yang
container topology {
tailf:info "Topology CE-PE";
list role {
key "role";
tailf:cli-compact-syntax;
leaf role {
type enumeration {
enum ce;
enum pe;
enum p;
}
}
leaf-list device {
type leafref {
path "/ncs:devices/ncs:device/ncs:name";
}
}
}
list connection {
key "name";
leaf name {
type string;
}
container endpoint-1 {
tailf:cli-compact-syntax;
uses connection-grouping;
}
container endpoint-2 {
tailf:cli-compact-syntax;
uses connection-grouping;
}
leaf link-vlan {
type uint32;
}
}
}
Or you mean a separate yang model?
Which other namespaces could I use in this case? Or how can I add the namespace by myself?
Thanks in advance
02-04-2021 09:08 AM
02-08-2021 04:23 AM
I've changed to the following:
yang file:
namespace "http://com/example/VPN02";
topology.xml:
<config xmlns="http://tail-f.com/ns/config/1.0">
<topology xmlns="http://com/example/VPN02">
then
make clean all
But I still get:
[root@walnso_01 walnso_vpn02]# ncs
CDB boot error: failed to load ./ncs-cdb/topology.xml:2: unknown namespace: http://com/example/VPN02 in topology
Daemon died status=10
02-08-2021 02:38 PM
Missing: ">request package reload" ? You need to let NSO know about the compiled changes.
02-09-2021 12:30 AM
Thanks for the answer.
But to execute "package reload" ncs_cli is needed, and ncs_cli does need ncs well started.
ncs start terminated with:
CDB boot error: failed to load ./ncs-cdb/topology.xml:2: unknown namespace: http://com/example/VPN02 in topology
Daemon died status=10
02-10-2021 11:56 AM
You can run ncs with package reload:
#ncs --with-package-reload-force
You can see all ncs options via "man ncs"
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: