From 35fea4c042f521c74c3590384382eff070e2ac75 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 28 Feb 2020 17:39:44 +0100 Subject: [PATCH] MVC: add ProtocolField (introduced https://github.com/opnsense/plugins/issues/1720) --- source/development/frontend/models_fieldtypes.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/development/frontend/models_fieldtypes.rst b/source/development/frontend/models_fieldtypes.rst index 08dff1b4..d0ee1f0b 100644 --- a/source/development/frontend/models_fieldtypes.rst +++ b/source/development/frontend/models_fieldtypes.rst @@ -195,6 +195,14 @@ PortField Check if the input contains a valid portnumber or (optionally) predefined service name. Can be a range when :code:`EnableRanges` is set to :code:`Y`. + +ProtocolField +------------------------------------ + +List field type to validate if the provided value is a valid protocol name as defined by /etc/protocols +(e.g. TCP, UDP) extended with the :code:`any` option. + + TextField ------------------------------------