nautobot-app-firewall-models
nautobot-app-firewall-models copied to clipboard
NatPolicy View fails to load
Environment
- Python version: 3.9.2
- Nautobot version: 2.2.4
- nautobot-firewall-models version: 2.0.3
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
- I'm not sure I can tell you how to produce it elsewhere as the demo site doesn't have this problem.