From 32b6793b210505a2a69dc6f7615ddd5f66ad74b8 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 14 May 2018 03:20:49 +0200 Subject: T602: replace the now-gone type attribute with proper use of constraints in existing interface definitions. --- interface-definitions/bcast-relay.xml | 16 +++++++++++----- interface-definitions/cron.xml | 3 +++ interface-definitions/dns-forwarding.xml | 16 ++++++++++++---- interface-definitions/ntp.xml | 5 ++++- interface-definitions/ssh.xml | 11 ++++++++--- 5 files changed, 38 insertions(+), 13 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/bcast-relay.xml b/interface-definitions/bcast-relay.xml index e4a009ed4..19f29e340 100644 --- a/interface-definitions/bcast-relay.xml +++ b/interface-definitions/bcast-relay.xml @@ -14,11 +14,13 @@ Unique ID for each UDP port to forward - u32:1-99 + 1-99 Numerical ID # - u32 990 + + + @@ -28,7 +30,9 @@ ipv4 Optional source address for forwarded packets - ipv4 + + + @@ -49,10 +53,12 @@ Destination or source port to listen and retransmit on [REQUIRED] - u32:1-65535 + 1-65535 UDP port to listen on - u32 + + + diff --git a/interface-definitions/cron.xml b/interface-definitions/cron.xml index a9e9b0401..8e4c1294a 100644 --- a/interface-definitions/cron.xml +++ b/interface-definitions/cron.xml @@ -44,6 +44,9 @@ <days>d Execution interval in days + + [1-9]([0-9]+)([mhd]{0,1}) + diff --git a/interface-definitions/dns-forwarding.xml b/interface-definitions/dns-forwarding.xml index bdb5ddc46..81aa6063d 100644 --- a/interface-definitions/dns-forwarding.xml +++ b/interface-definitions/dns-forwarding.xml @@ -17,10 +17,12 @@ DNS forwarding cache size - u32:0-10000 + 0-10000 DNS forwarding cache size - u32 + + + @@ -49,7 +51,10 @@ Domain Name Server (DNS) IPv6 address - ipv4,ipv6 + + + + @@ -80,7 +85,10 @@ Domain Name Server (DNS) IPv6 address - ipv4,ipv6 + + + + diff --git a/interface-definitions/ntp.xml b/interface-definitions/ntp.xml index c756da611..c6fd8aa14 100644 --- a/interface-definitions/ntp.xml +++ b/interface-definitions/ntp.xml @@ -55,7 +55,10 @@ IPv6 address and prefix length - ipv4net,ipv6net + + + + diff --git a/interface-definitions/ssh.xml b/interface-definitions/ssh.xml index 5ccd3006f..f898f3934 100644 --- a/interface-definitions/ssh.xml +++ b/interface-definitions/ssh.xml @@ -80,8 +80,11 @@ ipv6 IPv6 address to listen for incoming connections - ipv4,ipv6 + + + + @@ -121,10 +124,12 @@ Port for SSH service - u32:1-65535 + 1-65535 Numeric IP port - u32 + + + -- cgit v1.2.3