Hello there,
I am working on a NSO service using the NSO Firewall Services repository which relies on XML templates to manage firewall rules. However, I would like to replace the template-based configuration approach with Python scripting that utilizes NSO's Maagic and Maapi APIs.
Could you please help me on how to adapt the repository’s template-based logic to Python, specifically using Maagic for model-driven interactions and Maapi for database access? The goal is to dynamically manage firewall rules entirely in Python without using XML templates. I read the NSO docs but had no luck finding anything that suits my interest.
Specifically, I need guidance on:
- How to insert and order firewall rules programmatically using Maagic or Maapi.
- How to move and reorder existing rules in Python.
Thank you for your help.