Environment
- Python version: 3.11.9
- Nautobot version: 2.3.1
- nautobot-firewall-models version: 2.2.2 (latest release as of 21-08-2025)
Expected Behavior
After a change to one of the policy rules in a policy which is currently attached to a Device and for which a CapircaPolicy already exists, said CapircaPolicy should be refreshed when running the generation job and reflect new changes.
Observed Behavior
Whenever a CapircaPolicy already exists, no subsequent changes to the Policy Rules and/or Policy will be reflected by running the generation job. Instead, the CapircaPolicy stays the same as the 1st version ever generated.
Steps to Reproduce
- Assuming an existing Policy with Policy Rules attached to a Device and for which a CapircaPolicy already exists and has been successfully generated,
- Rename one of the Policy Rules
- Run "Generate FW Config via Capirca" job
- Generated CapircaPolicy does not contain the rename and instead stays as the 1st version