mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
linting error
This commit is contained in:
parent
478b27ae18
commit
73891479ae
@ -350,7 +350,7 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
|
||||
self.add_error(
|
||||
'primary_for_parent', "Only IP addresses assigned to an interface can be designated as primary IPs."
|
||||
)
|
||||
|
||||
|
||||
# Do not allow assigning a network ID or broadcast address to an interface.
|
||||
if interface:
|
||||
if address := self.cleaned_data.get('address'):
|
||||
|
Loading…
Reference in New Issue
Block a user