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

Device Templates & Compliance Report Questions

previousqna
Level 5
Level 5

Hi,

During a recent customer NSO PoC my customer raised two questions I need some help with:

  1. My customer would like to know if NSO can apply a device template to all of the interfaces on a device without having to explicitly define each of those interfaces in the template?  For example, assume the customer would like to modify the interface MTU on a router that has four TenGigE interfaces and 24 GigE interfaces. Is there a way to build a device template that will iterate over each of the interfaces without having to specially include all twenty eight interfaces in the template config?
  2. My customer would also like to know if there is a way to modify and/or decrease the output included in compliance reports.  They feel like the compliance reports include a lot of extraneous data that isn’t needed.

 

Regards,

6 Replies 6

previousqna
Level 5
Level 5

Hi,

I haven’t received a reply to my earlier questions. Any guidance will be greatly appreciated.

1)

I think not in a template, but with a bit of python code it would be easy. Note it depends a bit on the device. For example in IOS you can rely on all interfaces appearing in the config which makes this really easy, but that is not generally true of every device.

2)

I just read the NSO user manual, firstly you can configure what is reported on, so that gives one kind of handle. Secondly the report can be output as XML, I’ve not looked into the structure there but then you could possibly apply XSLT or XPATH or custom code to reformat/filter as required.

Would be good to understand what your customer finds unnecessary.

1)

I think not in a template, but with a bit of python code it would be easy. Note it depends a bit on the device. For example in IOS you can rely on all interfaces appearing in the config which makes this really easy, but that is not generally true of every device.

With the right XPATH expression (in the template OR on the NSO CLI command line), you actually can. But not everyone will consider it easier to come up with that expression vs. programming a loop in python or java.

Thank you for the email.

Adding [NAME] to the loop to see if he can answer your question.

@Hello [NAME],

Will you be able to answer [NAME] questions?

During a recent customer NSO PoC my customer raised two questions I need some help with:

  1. My customer would like to know if NSO can apply a device template to all of the interfaces on a device without having to explicitly define each of those interfaces in the template?  For example, assume the customer would like to modify the interface MTU on a router that has four TenGigE interfaces and 24 GigE interfaces. Is there a way to build a device template that will iterate over each of the interfaces without having to specially include all twenty eight interfaces in the template config?
  2. My customer would also like to know if there is a way to modify and/or decrease the output included in compliance reports.  They feel like the compliance reports include a lot of extraneous data that isn’t needed.

I think this is possible. I will try to take a look this week.

2) I just read the NSO user manual, firstly you can configure what is reported on, so that gives one kind of handle. Secondly the report can be output as XML, I’ve not looked into the structure there but then you could possibly apply XSLT or XPATH or custom code to reformat/filter as required.

Would be good to understand what your customer finds unnecessary.

  1. 1. compliance report strucutre is given by:

  1. 2. the file “compliance.xml” file included in