04-24-2019 01:35 AM
From documentation, I found how to do service-device mappings using java with a @ServiceCallback method. It works by instantiating templates from the service context like so:
@ServiceCallback(...) public Properties create(ServiceContext context, ...) { ...
// instantiate the template Template template = new Template(context, "template-name"); // where a file called template-name.xml must exist in the service package directory structure (context) // then populate the template with variables
... }
Now, is it possible (from this service context) to grab a template from another directory?
The idea is to be able to grab templates from a common directory to re-use in multiple services in NSO without duplicating templates in each service.
Thanks
Roland
Solved! Go to Solution.
04-24-2019 03:39 AM
04-24-2019 03:39 AM
04-24-2019 05:22 AM
04-24-2019 05:38 AM
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