mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Removed exception for empty methods
I'll create a seperate ticket for that
This commit is contained in:
parent
813262ff88
commit
b6fb10e5c2
@ -374,9 +374,6 @@ class DeviceViewSet(CustomFieldModelViewSet):
|
||||
"""
|
||||
Execute a NAPALM method on a Device
|
||||
"""
|
||||
if not request.GET.get('method'):
|
||||
raise ServiceUnavailable('No NAPALM methods were specified.')
|
||||
|
||||
device = get_object_or_404(Device, pk=pk)
|
||||
if not device.primary_ip:
|
||||
raise ServiceUnavailable("This device does not have a primary IP address configured.")
|
||||
|
Loading…
Reference in New Issue
Block a user