nautobot / nautobot-app-firewall-models

Model Firewall policies in Nautobot
https://docs.nautobot.com/projects/firewall-models/en/latest/
Other
32 stars 12 forks source link

NatPolicy View fails to load #245

Open grahamjohnston opened 4 months ago

grahamjohnston commented 4 months ago

Environment

Expected Behavior

I expect that I can click on the name of a NAT Policy in the /plugins/firewall/nat-policy/ page and get a read-only view of the Nat Policy in question.

Observed Behavior

Clicking on the link to get a view of the NAT Policy rule produced an error.

<class 'django.urls.exceptions.NoReverseMatch'>

Reverse for 'natpolicy_set_device_weight' not found. 'natpolicy_set_device_weight' is not a valid view function or pattern name.

Python version: 3.9.2
Nautobot version: 2.2.4

I'm not sure if this is an issue related to an install base that has been upgrade from pre 2.x to 2.x and something that didn't translate/upgrade properly. Glenn M shared this link via slack as it may be where a change is needed.

https://github.com/nautobot/nautobot-app-firewall-models/blob/develop/nautobot_firewall_models/templates/nautobot_firewall_models/inc/nat_policy_device_weight.html#L9

Glenn M also said "it looks like in 2.0.x that should be something like natpolicy_devices instead"

Steps to Reproduce

  1. I'm not sure I can tell you how to produce it elsewhere as the demo site doesn't have this problem.