Skip to content

Capirca Policies do not get refreshed after changes and generation job re-run #321

@loulecrivain

Description

@loulecrivain

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

  1. Assuming an existing Policy with Policy Rules attached to a Device and for which a CapircaPolicy already exists and has been successfully generated,
  2. Rename one of the Policy Rules
  3. Run "Generate FW Config via Capirca" job
  4. Generated CapircaPolicy does not contain the rename and instead stays as the 1st version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions