Hi All,
I'm applying a template using _ncs.maapi APIs, is there any way to rollback the applied template ?
with maapi.single_write_trans("admin", "system", db=ncs.RUNNING) as th:
comp_vars = dict(comp_vars)
vars = ncs.template.Variables()
vars.add("NODE", comp_vars["NODE"])
vars.add("NAME", comp_vars["NAME"])
self.log.info('Applying kicker template for XXXXX-internal-oper-data changes: ', \
service.name)
_ncs.maapi.apply_template(th.maapi.msock,th.th, 'XXXXXX-oper-data-kicker', vars, 0, '/')