Browse Source

Fixes #3725: Enforce client validation for minimum service port number

Jeremy Stretch 6 năm trước cách đây
mục cha
commit
7a4b202064
2 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 1 0
      docs/release-notes/version-2.6.md
  2. 4 0
      netbox/ipam/forms.py

+ 1 - 0
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)
 

+ 4 - 0
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
     )