06-17-2017 02:10 PM - edited 03-01-2019 03:52 AM
I'm trying to load a VNFD file into NSO. I go into config mode and do a load merge on the file. I get a namespace error as soon as I do.
Any help or suggestions would be greatly appreciated.
Here is the error:
Error: on line 1: unknown namespace: http://tail-f.com/ns/config/3.0 in config
Here are the steps I've taken:
1) done a make clean all on the /esc-ned/src Makefile
2) rebuild the ESC ned
3) reloaded the NED (successfully)
4) done a sync-from on ESC (successfully)
Here is the VNFD file:
<config xmlns="http://tail-f.com/ns/config/3.0">
<mano xmlns="http://www.cisco.com/yang/nso/mano/vnfd">
<vnfd>
<name>ASA-ESC1</name>
<version>1</version>
<connection-points>
<connection-point-id>left</connection-point-id>
<flavour xmlns="http://cisco.com/yang/nso/tail-f-vnfd">flavor1</flavour>
<vdu xmlns="http://cisco.com/yang/nso/tail-f-vnfd">vdu1</vdu>
<nic-id xmlns="http://cisco.com/yang/nso/tail-f-vnfd">1</nic-id>
</connection-points>
<flavours>
<flavour-id>m1.medium</flavour-id>
<vdus>
<vdu-id>vdu1</vdu-id>
<vm-spec>
<pkg-uri>file:///rwhitt/asav941-205.qcow2</pkg-uri>
<disk-format xmlns="http://cisco.com/yang/nso/vnf-catalogue-esc">qcow2</disk-format>
</vm-spec>
<storage>
<storage-id>root-disk</storage-id>
<size-gb>0</size-gb>
<storage-type xmlns="http://cisco.com/yang/nso/vnf-catalogue-esc">root</storage-type>
</storage>
<cpu>
<num-vpu>2</num-vpu>
</cpu>
<memory>
<total-memory-gb>2048</total-memory-gb>
</memory>
<device-type xmlns="http://cisco.com/yang/nso/tail-f-vnfd">
<cli>
<ned-id xmlns:ios-id="urn:ios-id">ios-id:cisco-asa</ned-id>
</cli>
</device-type>
<authgroup xmlns="http://cisco.com/yang/nso/tail-f-vnfd" xmlns:ios-id="urn:ios-id">ASA</authgroup>
<disk-bus xmlns="http://cisco.com/yang/nso/vnf-catalogue-esc">virtio</disk-bus>
<serial-console xmlns="http://cisco.com/yang/nso/vnf-catalogue-esc">true</serial-console>
<e1000-net xmlns="http://cisco.com/yang/nso/vnf-catalogue-esc">true</e1000-net>
<day0 xmlns="http://cisco.com/yang/nso/tail-f-vnfd">
<destination-file>iosxe_config.txt</destination-file>
<source-url>file:///rwhitt/asa-day0-mercury1.txt</source-url>
</day0>
</vdus>
</flavours>
</vnfd>
</mano>
<devices xmlns="http://tail-f.com/ns/ncs">
<authgroups>
<group>
<name>ASA-TEST</name>
<default-map>
<remote-name>admin</remote-name>
<remote-password>$4$wIo7Yd068FRwhYYI0d4IDw==</remote-password>
</default-map>
</group>
</authgroups>
</devices>
</config>
Solved! Go to Solution.
06-19-2017 12:44 AM
Have you added the NFVO packages which contains (among other things) the VNFD YANG model?
06-19-2017 12:44 AM
Have you added the NFVO packages which contains (among other things) the VNFD YANG model?
06-19-2017 03:32 AM
Hi Fredrik,
Thanks so much for the quick reply. Here is what I did:
I followed the procedure in the document nso-esc.pdf to build an ESC NED:
Step 1 Prepare a directory with the ESC YANG files
Step 2 Run ncs-make-package to build a NETCONF NED based on these YANG files.
Step 3 make the NED package
Step 4 Edit the metadata file for the generated NED
This produced a NED based on these YANG files:
esc_config_data.yang* esc_opdata_interface.yang*
esc_datamodel.yang* esc_opdata_networks.yang*
esc_disk.yang* esc_opdata_state_machines.yang*
esc_extension.yang* esc_opdata_system_config.yang*
esc_flavor.yang* esc_opdata_tenant.yang*
esc_info.yang* esc_opdata_volumes.yang*
esc_interface.yang* esc_opdata.yang*
esc_kpi.yang* esc_policies.yang*
esc_locators.yang* esc_port_forwarding.yang*
esc_network.yang* esc_property.yang*
esc_notifications.yang* esc_rules.yang*
esc_opdata_default_locators.yang* esc_scaling.yang*
esc_opdata_devstats.yang* esc_types.yang*
esc_opdata_flavor_state_machine.yang* esc_vim_connector.yang*
esc_opdata_flavors.yang* esc_volume.yang*
esc_opdata_image_state_machine.yang* esc.yang*
esc_opdata_images.yang*
I then added ESC as a device and was able to connect and sync with ESC.
So currently the only packages I have in the ncs-run directory are these:
nsoadmin@nso:~/ncs-run/packages$ ls -F
cisco-ios@ cisco-iosxr@ esc-ned/
Am I missing a package?
06-19-2017 03:40 AM
Yes, you're missing the NFVO Function Pack. It can be downloaded on software.cisco.com:
Select "Network Services Orchestrator ETSI Rel2 NFVO", that archive contains the NFVO FP, which is what you need.
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