cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
660
Views
2
Helpful
2
Replies

How to create a NETCONF service?

JM Montenot
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Jan Lindblad
Cisco Employee
Cisco Employee

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:

https://communities.cisco.com/community/developer/nso-developer-hub/blog/2017/08/23/porting-an-existing-service-to-use-a-netconf-ned

View solution in original post

2 Replies 2

Jan Lindblad
Cisco Employee
Cisco Employee

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:

https://communities.cisco.com/community/developer/nso-developer-hub/blog/2017/08/23/porting-an-existing-service-to-use-a-netconf-ned

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.