Exception when creating FHRP group #5669

Closed
opened 2025-12-29 19:31:06 +01:00 by adam · 1 comment
Owner

Originally created by @candlerb on GitHub (Nov 16, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1-beta1

Python version

3.8

Steps to Reproduce

On https://beta-demo.netbox.dev:

  • Select IPAM > FHRP Groups > Add (/ipam/fhrp-groups/add/)
  • Select protocol VRRPv2
  • Set Group ID 2
  • In address enter 11.22.33.44
  • Click "Create"

Expected Behavior

Either the FHRP group to be created; or a validation error that the given IP address doesn't exist.

Observed Behavior

A KeyError exception is raised.

image

Originally created by @candlerb on GitHub (Nov 16, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1-beta1 ### Python version 3.8 ### Steps to Reproduce On <https://beta-demo.netbox.dev>: * Select IPAM > FHRP Groups > Add (`/ipam/fhrp-groups/add/`) * Select protocol VRRPv2 * Set Group ID 2 * In address enter `11.22.33.44` * Click "Create" ### Expected Behavior Either the FHRP group to be created; or a validation error that the given IP address doesn't exist. ### Observed Behavior A KeyError exception is raised. ![image](https://user-images.githubusercontent.com/44789/142061464-7de9b006-c514-4273-93cb-1aab2363a04c.png)
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:31:06 +01:00
adam closed this issue 2025-12-29 19:31:07 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 16, 2021):

The error occurs because validation of the IP address fails (no mask was specified), however the form's clean() method expects a value to be present in the cleaned data.

@jeremystretch commented on GitHub (Nov 16, 2021): The error occurs because validation of the IP address fails (no mask was specified), however the form's `clean()` method expects a value to be present in the cleaned data.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5669