How to produce RESTCONF API Documentation based on swagger using yanger?
I have made some services in nso, which work as intended, and I would like to make swagger documentation using yanger. However, I have difficulty figuring out how to do it right so that the output from yanger is accepted by the swagger editor.
My nso is a Local install on my Mac in /Users/user1/ncs-220.127.116.11. The services are in /Users/user1/ncs-run/packages.
And based on that I would think that my yanger command would look something like this:
yanger \ --swagger-path-filter=/data/tailf-ncs-services:services/xxyyzz:xxyyzz \ --format=swagger \ -t expand \ --output=/Users/user1/nso/swagger-restconf/xxyyzz.swagger \ --swagger-host 127.0.0.1:8080 \ /Users/user1/ncs-18.104.22.168/src/ncs/yang/tailf-ncs.yang \ /Users/user1/ncs-run/packages/xxyyzz/src/yang/xxyyzz.yang
/Users/user1/ncs-run/packages/xxyyzz/src/yang/xxyyzz.yang:0: error: Too many modules given, only one data module is supported for Swagger.
Do you have experiences that you think will benefit the NSO developer community?
Take the opportunity to give a talk at Developer Days in June while joining industry peers from around the world for our days of learning and collaboration.
Call for P...
Hi All I am new to developing as you will see from my code :P, I am a network engineer trying to learn Devops, and I am struggling a bit with create services that apply configs to multiple devices.I am trying to create my own code to create a l3vpn s...
We are proud to announce the release of the latest version of the Cisco VNF MANO solution, including Cisco NSO Network Function Virtualization Orchestrator (NFVO) 4.2 and Cisco Elastic Services Controller (ESC) 5.1. These are used in many of our NSO custo...
If you missed the event or did not have time to attend all sessions I recommend checking out the Cisco Live content calendar. One of my favorites is Hank Prestons Working 9 to 5 as NetDevOps Engineer and Expand your automation journey with new C...
Unable to write xml file in NSO 5.3 CDB using maapi.load_config with below command"maapi.load_config(m['s'],m['th'], maapi.CONFIG_XML, "Test.xml")"
Creating the transaction object as, th = _ncs.maapi.start_trans(s, _ncs.RUNNING ,_ncs.READ_WRITE)