From 7a4b202064ed8a7d634290d09a1962eb130d2e9e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 5 Dec 2019 21:22:34 -0500 Subject: [PATCH] Fixes #3725: Enforce client validation for minimum service port number --- docs/release-notes/version-2.6.md | 1 + netbox/ipam/forms.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes/version-2.6.md b/docs/release-notes/version-2.6.md index cf03ea8f2..66e047661 100644 --- a/docs/release-notes/version-2.6.md +++ b/docs/release-notes/version-2.6.md @@ -17,6 +17,7 @@ * [#3709](https://github.com/netbox-community/netbox/issues/3709) - Prevent exception when importing an invalid cable definition * [#3720](https://github.com/netbox-community/netbox/issues/3720) - Correctly indicate power feed terminations on cable list * [#3724](https://github.com/netbox-community/netbox/issues/3724) - Fix API filtering of interfaces by more than one device name +* [#3725](https://github.com/netbox-community/netbox/issues/3725) - Enforce client validation for minimum service port number # v2.6.7 (2019-11-01) diff --git a/netbox/ipam/forms.py b/netbox/ipam/forms.py index bedbe3463..68529a7f0 100644 --- a/netbox/ipam/forms.py +++ b/netbox/ipam/forms.py @@ -1250,6 +1250,10 @@ class VLANFilterForm(BootstrapMixin, TenancyFilterForm, CustomFieldFilterForm): # class ServiceForm(BootstrapMixin, CustomFieldForm): + port = forms.IntegerField( + min_value=1, + max_value=65535 + ) tags = TagField( required=False )