From 9e855ac6cd169fdd56e0a57c14673db89c0b9a46 Mon Sep 17 00:00:00 2001 From: kobayashi Date: Tue, 21 Jan 2020 00:30:47 -0500 Subject: [PATCH] 3960 legacy device status --- docs/release-notes/version-2.7.md | 1 + netbox/templates/dcim/device.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-2.7.md b/docs/release-notes/version-2.7.md index ed9fdd28d..83e88cf59 100644 --- a/docs/release-notes/version-2.7.md +++ b/docs/release-notes/version-2.7.md @@ -10,6 +10,7 @@ * [#3721](https://github.com/netbox-community/netbox/issues/3721) - Allow Unicode characters in tag slugs * [#3951](https://github.com/netbox-community/netbox/issues/3951) - Fix exception in webhook worker due to missing constant * [#3953](https://github.com/netbox-community/netbox/issues/3953) - Fix validation error when creating child devices +* [#3960](https://github.com/netbox-community/netbox/issues/3960) - Fix legacy device status choice --- diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 883cefd32..fa37f1ac5 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -84,7 +84,7 @@ {% if perms.dcim.napalm_read %} - {% if device.status != 1 %} + {% if device.status != 'active' %} {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='Device must be in active status' %} {% elif not device.platform %} {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='No platform assigned to this device' %}