From 339821f121d86ef8c670cc2f5beea0c553a2fc9b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 12 Dec 2020 14:18:10 +0100 Subject: xml: use "u32:" keyword when identifying port ranges This will render the completion help more nicely. --- interface-definitions/bcast-relay.xml.in | 2 +- interface-definitions/flow-accounting-conf.xml.in | 4 ++-- interface-definitions/https.xml.in | 13 +------------ interface-definitions/include/accel-radius-additions.xml.i | 2 +- interface-definitions/include/nat-port.xml.i | 4 ++-- interface-definitions/include/nat-translation-port.xml.i | 2 +- interface-definitions/include/port-number.xml.i | 2 +- interface-definitions/include/radius-server.xml.i | 2 +- interface-definitions/interfaces-vxlan.xml.in | 2 +- interface-definitions/protocols-bgp.xml.in | 2 +- interface-definitions/snmp.xml.in | 6 +++--- interface-definitions/ssh.xml.in | 2 +- interface-definitions/system-proxy.xml.in | 4 ++++ interface-definitions/system-syslog.xml.in | 2 +- interface-definitions/tftp-server.xml.in | 2 +- interface-definitions/vpn_ipsec.xml.in | 8 ++++---- 16 files changed, 26 insertions(+), 33 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/bcast-relay.xml.in b/interface-definitions/bcast-relay.xml.in index 96ce16639..b691f79fa 100644 --- a/interface-definitions/bcast-relay.xml.in +++ b/interface-definitions/bcast-relay.xml.in @@ -63,7 +63,7 @@ Destination or source port to listen and retransmit on [REQUIRED] - 1-65535 + u32:1-65535 UDP port to listen on diff --git a/interface-definitions/flow-accounting-conf.xml.in b/interface-definitions/flow-accounting-conf.xml.in index 239269235..904759a56 100644 --- a/interface-definitions/flow-accounting-conf.xml.in +++ b/interface-definitions/flow-accounting-conf.xml.in @@ -242,7 +242,7 @@ NetFlow port number - 1025-65535 + u32:1025-65535 NetFlow port number (default 2055) @@ -412,7 +412,7 @@ sFlow port number - 1025-65535 + u32:1025-65535 sFlow port number (default 6343) diff --git a/interface-definitions/https.xml.in b/interface-definitions/https.xml.in index 9bb96f1f0..69fe90dab 100644 --- a/interface-definitions/https.xml.in +++ b/interface-definitions/https.xml.in @@ -67,18 +67,7 @@ 1002 - - - Port for HTTP API service - - 1-65535 - Numeric IP port - - - - - - + #include HTTP API keys diff --git a/interface-definitions/include/accel-radius-additions.xml.i b/interface-definitions/include/accel-radius-additions.xml.i index bf0f0ac94..3ec0d587e 100644 --- a/interface-definitions/include/accel-radius-additions.xml.i +++ b/interface-definitions/include/accel-radius-additions.xml.i @@ -132,7 +132,7 @@ Port for Dynamic Authorization Extension server (DM/CoA) (default: 1700) - number + u32:1-65535 TCP port diff --git a/interface-definitions/include/nat-port.xml.i b/interface-definitions/include/nat-port.xml.i index e417d13cc..6465c00e9 100644 --- a/interface-definitions/include/nat-port.xml.i +++ b/interface-definitions/include/nat-port.xml.i @@ -3,12 +3,12 @@ Port number - 1-65535 + u32:1-65535 Numeric IP port start-end - Numbered port range (e.g., 1001-1005) + Numbered port range (e.g. 1001-1005) diff --git a/interface-definitions/include/nat-translation-port.xml.i b/interface-definitions/include/nat-translation-port.xml.i index db8803dac..e3ea42e4d 100644 --- a/interface-definitions/include/nat-translation-port.xml.i +++ b/interface-definitions/include/nat-translation-port.xml.i @@ -3,7 +3,7 @@ Port number - 1-65535 + u32:1-65535 Numeric IP port diff --git a/interface-definitions/include/port-number.xml.i b/interface-definitions/include/port-number.xml.i index d94523e1e..0d0747811 100644 --- a/interface-definitions/include/port-number.xml.i +++ b/interface-definitions/include/port-number.xml.i @@ -3,7 +3,7 @@ Port number used to establish connection - 1-65535 + u32:1-65535 Numeric IP port diff --git a/interface-definitions/include/radius-server.xml.i b/interface-definitions/include/radius-server.xml.i index b78ebb306..fc8fe5248 100644 --- a/interface-definitions/include/radius-server.xml.i +++ b/interface-definitions/include/radius-server.xml.i @@ -43,7 +43,7 @@ Authentication port - 1-65535 + u32:1-65535 Numeric IP port (default: 1812) diff --git a/interface-definitions/interfaces-vxlan.xml.in b/interface-definitions/interfaces-vxlan.xml.in index c7725fed3..4426f1157 100644 --- a/interface-definitions/interfaces-vxlan.xml.in +++ b/interface-definitions/interfaces-vxlan.xml.in @@ -72,7 +72,7 @@ Destination port of VXLAN tunnel (default: 8472) - 1-65535 + u32:1-65535 Numeric IP port diff --git a/interface-definitions/protocols-bgp.xml.in b/interface-definitions/protocols-bgp.xml.in index 6de8017f2..38a0469bd 100644 --- a/interface-definitions/protocols-bgp.xml.in +++ b/interface-definitions/protocols-bgp.xml.in @@ -507,7 +507,7 @@ Neighbor BGP port - <1-65535> + u32:1-65535 Neighbor BGP port number diff --git a/interface-definitions/snmp.xml.in b/interface-definitions/snmp.xml.in index 2fe8ce583..fb3e82256 100644 --- a/interface-definitions/snmp.xml.in +++ b/interface-definitions/snmp.xml.in @@ -106,7 +106,7 @@ Port for SNMP service (default: '161') - 1-65535 + u32:1-65535 Numeric IP port @@ -179,7 +179,7 @@ Destination port used for trap notification - 1-65535 + u32:1-65535 Numeric IP port @@ -327,7 +327,7 @@ Specifies TCP/UDP port of destination SNMP traps/informs (default: '162') - 1-65535 + u32:1-65535 Numeric IP port diff --git a/interface-definitions/ssh.xml.in b/interface-definitions/ssh.xml.in index 3db740131..d94e29427 100644 --- a/interface-definitions/ssh.xml.in +++ b/interface-definitions/ssh.xml.in @@ -160,7 +160,7 @@ Port for SSH service - 1-65535 + u32:1-65535 Numeric IP port diff --git a/interface-definitions/system-proxy.xml.in b/interface-definitions/system-proxy.xml.in index 540fa97e3..791f41f2f 100644 --- a/interface-definitions/system-proxy.xml.in +++ b/interface-definitions/system-proxy.xml.in @@ -18,6 +18,10 @@ Proxy port + + u32:1-65535 + Numeric IP port + diff --git a/interface-definitions/system-syslog.xml.in b/interface-definitions/system-syslog.xml.in index b357bb036..c58922a3d 100644 --- a/interface-definitions/system-syslog.xml.in +++ b/interface-definitions/system-syslog.xml.in @@ -199,7 +199,7 @@ Destination port - 1-65535 + u32:1-65535 Destination port diff --git a/interface-definitions/tftp-server.xml.in b/interface-definitions/tftp-server.xml.in index abab71abd..e903e8f4e 100644 --- a/interface-definitions/tftp-server.xml.in +++ b/interface-definitions/tftp-server.xml.in @@ -24,7 +24,7 @@ Port number used to listen for connections - 1-65535 + u32:1-65535 Numeric IP port diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in index 93eb7e667..e03483a85 100644 --- a/interface-definitions/vpn_ipsec.xml.in +++ b/interface-definitions/vpn_ipsec.xml.in @@ -1084,11 +1084,11 @@ Any TCP or UDP port - <port name> + port name Named port (any name in /etc/services, e.g., http) - <1-65535> + u32:1-65535 Numbered port @@ -1127,11 +1127,11 @@ Any TCP or UDP port - <port name> + port name Named port (any name in /etc/services, e.g., http) - <1-65535> + u32:1-65535 Numbered port -- cgit v1.2.3