From 5c8ed73608e00445ece5e96d575ce9e841d635ad Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 11 Dec 2020 08:56:02 -0500 Subject: [PATCH] Closes #5439: Add CS and SN fiber port types --- docs/release-notes/version-2.9.md | 1 + netbox/dcim/choices.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes/version-2.9.md b/docs/release-notes/version-2.9.md index 9187f9ff7..eeab02259 100644 --- a/docs/release-notes/version-2.9.md +++ b/docs/release-notes/version-2.9.md @@ -5,6 +5,7 @@ ### Enhancements * [#5424](https://github.com/netbox-community/netbox/issues/5424) - Allow passing Python code to `nbshell` using `--command` +* [#5439](https://github.com/netbox-community/netbox/issues/5439) - Add CS and SN fiber port types ### Bug Fixes diff --git a/netbox/dcim/choices.py b/netbox/dcim/choices.py index 639230f70..3b7c7d04e 100644 --- a/netbox/dcim/choices.py +++ b/netbox/dcim/choices.py @@ -861,6 +861,8 @@ class PortTypeChoices(ChoiceSet): TYPE_LSH = 'lsh' TYPE_LSH_APC = 'lsh-apc' TYPE_SPLICE = 'splice' + TYPE_CS = 'cs' + TYPE_SN = 'sn' CHOICES = ( ( @@ -888,6 +890,8 @@ class PortTypeChoices(ChoiceSet): (TYPE_SC, 'SC'), (TYPE_SC_APC, 'SC/APC'), (TYPE_ST, 'ST'), + (TYPE_CS, 'CS'), + (TYPE_SN, 'SN'), (TYPE_SPLICE, 'Splice'), ) )