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