nautobot-app-firewall-models icon indicating copy to clipboard operation
nautobot-app-firewall-models copied to clipboard

Policy rules with same index value can be assigned to same policy

Open collin-wicker opened this issue 8 months ago • 0 comments

Environment

  • Python version: 3.9.18
  • Nautobot version: 2.2.0b1
  • nautobot-firewall-models version: 2.0.3

Expected Behavior

Expected a warning message that explains that a policy is unable to contain two policy rules with the exact same index value.

Observed Behavior

The policy rules with the same index values were permitted to be added to the same policy.

Steps to Reproduce

  1. Create a policy
  2. Create a policy rule with index value of 10 and assign it to the policy that was just created
  3. Create a second policy rule with an index value of 10 and assign it to the policy that was just created

collin-wicker avatar Jun 03 '24 14:06 collin-wicker