10-10-2017 01:35 AM - edited 03-01-2019 04:01 AM
Hello all,
In a few days, I am supposed to receive my NSO licences and I will create my very first NETCONF service with NSO. Before this, I am thinking about the way to proceed. This is the opportunity for me to ask my first question to the community since I am stucked on a basic understanding question.
I am going to work with ISR4k routers. I think I understood the process to build the NETCONF NED and establish netconf connection up to sync-from thanks to the pioneer package on GitHub.
My question deals with the service itself. I understand how to create a service using a CLI NED (create a package skeleton, modify XML and yang data model). But my question is: what would be the equivalence for a NETCONF based service? For example, how to proceed to create an ACL or a PBR rule on a router?
Thank you in advance all for your help.
Solved! Go to Solution.
10-10-2017 03:28 AM
If you set up your device as a NETCONF device and do a sync-from, then go to the device CLI to configure the things you want in your template(s), then run a compare-config and display the output as xml, you basically have your template ready. Just need to go in there and replace concrete values with variables from the service code or model.
You can see some examples of this technique this blog post series:
10-10-2017 03:28 AM
If you set up your device as a NETCONF device and do a sync-from, then go to the device CLI to configure the things you want in your template(s), then run a compare-config and display the output as xml, you basically have your template ready. Just need to go in there and replace concrete values with variables from the service code or model.
You can see some examples of this technique this blog post series:
10-11-2017 01:09 AM
Thank you Jan. I think I understand, it's quite the same process as for CLI services. I try and come back to you if I face a major issue.
Thank you again.
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