diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-25 13:57:28 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-25 13:57:28 +0000 |
commit | 729c5a24a8be86020acaff855f1c1e2882a39e42 (patch) | |
tree | 8943ddf6682d0c4fa39c9859e87c116b86904eae /applications | |
parent | bab278613b6e5e4112a2921e60f7b65b7332409e (diff) |
* luci/libs/uvl: move most schemes to their corresponding packages
Diffstat (limited to 'applications')
8 files changed, 802 insertions, 0 deletions
diff --git a/applications/luci-ddns/root/lib/uci/schema/default/ddns b/applications/luci-ddns/root/lib/uci/schema/default/ddns new file mode 100644 index 0000000000..f947aff0b5 --- /dev/null +++ b/applications/luci-ddns/root/lib/uci/schema/default/ddns @@ -0,0 +1,147 @@ +package ddns + +config package + option title 'Dynamic DNS configuration' + +config section + option name 'service' + option title 'DynDNS service entry' + option package 'ddns' + option named true + option required true + +config variable + option name 'enabled' + option title 'Enable this service entry' + option section 'ddns.service' + option datatype 'boolean' + +config variable + option name 'service_name' + option title 'Name of the DynDNS provider' + option section 'ddns.service' + option datatype 'string' + +config variable + option name 'domain' + option title 'Own DynDNS domain' + option section 'ddns.service' + option required true + +config variable + option name 'username' + option title 'Account username' + option section 'ddns.service' + option required true + +config variable + option name 'password' + option title 'Account password' + option section 'ddns.service' + option required true + +config variable + option name 'ip_source' + option title 'Method to determine current IP address' + option section 'ddns.service' + option type 'enum' + option required true + +config enum + option variable 'ddns.service.ip_source' + option value 'network' + option title 'Read ip address from /etc/config/network' + +config enum + option variable 'ddns.service.ip_source' + option value 'interface' + option title 'Determine ip address from given hardware interface' + +config enum + option variable 'ddns.service.ip_source' + option value 'web' + option title 'Determine own IP using a remote web page' + +config variable + option name 'ip_network' + option title 'Configured network to use IP from' + option section 'ddns.service' + option depends 'ip_source=network' + option valueof 'network.interface' + +config variable + option name 'ip_interface' + option title 'Physical network interface to read IP from' + option section 'ddns.service' + option depends 'ip_source=interface' + +config variable + option name 'ip_url' + option title 'Web page used to determine IP address' + option section 'ddns.service' + option depends 'ip_source=web' + +config variable + option name 'update_url' + option title 'URL format to use for updating DNS information (for yet-unknown providers)' + option section 'ddns.service' + +config variable + option name 'check_interval' + option title 'Update check interval' + option section 'ddns.service' + option datatype 'integer' + option required true + +config variable + option name 'check_unit' + option title 'Unit for update check interval' + option section 'ddns.service' + option type 'enum' + option required true + +config enum + option variable 'ddns.service.check_unit' + option value 'seconds' + +config enum + option variable 'ddns.service.check_unit' + option value 'minutes' + +config enum + option variable 'ddns.service.check_unit' + option value 'hours' + +config enum + option variable 'ddns.service.check_unit' + option value 'days' + +config variable + option name 'force_interval' + option title 'Forced update interval' + option section 'ddns.service' + option datatype 'integer' + option required true + +config variable + option name 'force_unit' + option title 'Unit of forced update interval' + option section 'ddns.service' + option type 'enum' + option required true + +config enum + option variable 'ddns.service.force_unit' + option value 'seconds' + +config enum + option variable 'ddns.service.force_unit' + option value 'minutes' + +config enum + option variable 'ddns.service.force_unit' + option value 'hours' + +config enum + option variable 'ddns.service.force_unit' + option value 'days' diff --git a/applications/luci-fw/root/lib/uci/schema/default/firewall b/applications/luci-fw/root/lib/uci/schema/default/firewall new file mode 100644 index 0000000000..3c2de46219 --- /dev/null +++ b/applications/luci-fw/root/lib/uci/schema/default/firewall @@ -0,0 +1,243 @@ +package firewall + +config package + option title 'Firewall configuration' + +config section + option name 'zone' + option title 'Firewall zones' + option package 'firewall' + +config variable + option name 'name' + option title 'Name' + option section 'firewall.zone' + option required true + +config variable + option name 'network' + option title 'Networks belonging to this zone' + option section 'firewall.zone' + option valueof 'network.interface' + option multival true + +config variable + option name 'forward' + option title 'Zone specific action for forwarded traffic' + option section 'firewall.zone' + option required true + +config variable + option name 'input' + option title 'Zone specific action for incoming traffic' + option section 'firewall.zone' + option required true + +config variable + option name 'output' + option title 'Zone specific action for outgoing traffic' + option section 'firewall.zone' + option required true + +config variable + option name 'masq' + option title 'Enable masquerading for outgoing zone traffic' + option section 'firewall.zone' + option datatype 'boolean' + + + +config section + option name 'defaults' + option title 'Global firewall defaults' + option package 'firewall' + option unique true + option required true + +config variable + option name 'forward' + option title 'Action for forwarded traffic' + option section 'firewall.defaults' + option required true + +config variable + option name 'input' + option title 'Action for incoming traffic' + option section 'firewall.defaults' + option required true + +config variable + option name 'output' + option title 'Action for outgoing traffic' + option section 'firewall.defaults' + option required true + +config variable + option name 'syn_flood' + option title 'Enable syn-flood protection' + option section 'firewall.defaults' + option datatype 'boolean' + + + +config section + option name 'forwarding' + option title 'Forwarding rules' + option package 'firewall' + +config variable + option name 'src' + option title 'Source zone' + option section 'firewall.forwarding' + option valueof 'firewall.zone.name' + option required true + +config variable + option name 'dest' + option title 'Destination zone' + option section 'firewall.forwarding' + option valueof 'firewall.zone.name' + option required true + + + +config section + option name 'rule' + option title 'Custom rules' + option package 'firewall' + list depends 'target, src' + list depends 'target, dest' + list depends 'target, src_ip' + list depends 'target, src_port' + list depends 'target, src_mac' + list depends 'target, dest_ip' + list depends 'target, dest_port' + list depends 'target, proto' + +config variable + option name 'src' + option title 'Source zone' + option section 'firewall.rule' + option valueof 'firewall.zone.name' + +config variable + option name 'src_ip' + option title 'Source IP address' + option section 'firewall.rule' + option datatype 'ipaddr' + +config variable + option name 'src_port' + option title 'Source port' + option section 'firewall.rule' + option datatype 'portrange' + +config variable + option name 'src_mac' + option title 'Source MAC address' + option section 'firewall.rule' + option datatype 'macaddr' + +config variable + option name 'dest' + option title 'Destination zone' + option section 'firewall.rule' + option valueof 'firewall.zone.name' + +config variable + option name 'dest_ip' + option title 'Destination IP address' + option section 'firewall.rule' + option datatype 'ipaddr' + +config variable + option name 'dest_port' + option title 'Destination port' + option section 'firewall.rule' + option datatype 'portrange' + +config variable + option name 'proto' + option title 'Protocol' + option section 'firewall.rule' + option datatype 'string' + +config variable + option name 'target' + option title 'Option target' + option section 'firewall.rule' + option datatype 'string' + + + +config section + option name 'redirect' + option title 'Redirection rules' + option package 'firewall' + +config variable + option name 'src' + option title 'Source zone' + option section 'firewall.redirect' + option valueof 'firewall.zone.name' + +config variable + option name 'src_ip' + option title 'Source IP address' + option section 'firewall.redirect' + option datatype 'ipaddr' + +config variable + option name 'src_port' + option title 'Source port' + option section 'firewall.redirect' + option datatype 'portrange' + +config variable + option name 'src_dport' + option title 'Source destination port' + option section 'firewall.redirect' + option datatype 'portrange' + +config variable + option name 'src_mac' + option title 'Option src_mac' + option section 'firewall.redirect' + option datatype 'macaddr' + +config variable + option name 'dest' + option title 'Destination zone' + option section 'firewall.redirect' + option valueof 'firewall.zone.name' + +config variable + option name 'dest_ip' + option title 'Destination IP address' + option section 'firewall.redirect' + option datatype 'ipaddr' + +config variable + option name 'dest_port' + option title 'Destination port' + option section 'firewall.redirect' + option datatype 'portrange' + +config variable + option name 'proto' + option title 'Protocol' + option section 'firewall.redirect' + option datatype 'string' + + + +config section + option name 'include' + option title 'User defined config includes' + option package 'firewall' + +config variable + option name 'path' + option title 'Path to the include file' + option section 'firewall.include' + option datatype 'file' diff --git a/applications/luci-ntpc/root/lib/uci/schema/default/ntpclient b/applications/luci-ntpc/root/lib/uci/schema/default/ntpclient new file mode 100644 index 0000000000..0b7b5a5e5d --- /dev/null +++ b/applications/luci-ntpc/root/lib/uci/schema/default/ntpclient @@ -0,0 +1,53 @@ +package ntpclient + +config package + option title 'Time Synchronisation' + +config section + option name 'ntpclient' + option package 'ntpclient' + option title 'General' + option unique true + option required true + +config variable + option name 'interval' + option section 'ntpclient.ntpclient' + option title 'Update Interval (in s)' + option datatype uint + +config variable + option name 'count' + option section 'ntpclient.ntpclient' + option title 'Count of Time Measurements' + option datatype uint + +config section + option name 'ntpdrift' + option package 'ntpclient' + option title 'Clock Adjustment' + option unique true + +config variable + option name 'freq' + option section 'ntpclient.ntpdrift' + option title 'Offset Frequency' + option datatype float + +config section + option name 'ntpserver' + option package 'ntpclient' + option title 'Time Server' + +config variable + option name 'hostname' + option section 'ntpclient.ntpserver' + option title 'Hostname' + option required true + option datatype host + +config variable + option name 'port' + option section 'ntpclient.ntpserver' + option title 'Port' + option datatype port diff --git a/applications/luci-qos/root/lib/uci/schema/default/qos b/applications/luci-qos/root/lib/uci/schema/default/qos new file mode 100644 index 0000000000..24f8e0d5d6 --- /dev/null +++ b/applications/luci-qos/root/lib/uci/schema/default/qos @@ -0,0 +1,200 @@ +package qos + +config package + option title 'Network quality of service' + +config section + option name 'interface' + option title 'QoS interface section' + option package 'qos' + option named true + option required true + +config variable + option name 'enabled' + option title 'Enable QoS on this interface' + option section 'qos.interface' + +config variable + option name 'overhead' + option title 'Calculate overhead bandwidth' + option section 'qos.interface' + option datatype 'boolean' + +config variable + option name 'classgroup' + option title 'QoS classification' + option section 'qos.interface' + option valueof 'qos.classgroup' + +config variable + option name 'download' + option title 'Maximum download speed in kBits/s' + option section 'qos.interface' + option datatype 'integer' + +config variable + option name 'upload' + option title 'Maximum upload speed in kBits/s' + option section 'qos.interface' + option datatype 'integer' + + +config section + option name 'class' + option title 'QoS traffic class definition' + option package 'qos' + option named true + option required true + +config variable + option name 'avgrate' + option title 'Average rate' + option section 'qos.class' + option datatype 'integer' + +config variable + option name 'maxsize' + option title 'Maximum size' + option section 'qos.class' + option datatype 'integer' + +config variable + option name 'packetdelay' + option title 'Packet delay' + option section 'qos.class' + option datatype 'integer' + +config variable + option name 'packetsize' + option title 'Packet size' + option section 'qos.class' + option datatype 'integer' + +config variable + option name 'priority' + option title 'QoS priority' + option section 'qos.class' + option datatype 'integer' + + +config section + option name 'classgroup' + option title 'QoS classification group' + option package 'qos' + option named true + +config variable + option name 'classes' + option title 'Defined QoS classes in group' + option section 'qos.classgroup' + +config variable + option name 'default' + option title 'Default QoS class in group' + option section 'qos.classgroup' + option valueof 'qos.class' + + +config section + option name 'default' + option title 'QoS default classification' + option package 'qos' + list depends 'target, pktsize' + list depends 'target, portrange' + list depends 'target, proto' + +config variable + option name 'pktsize' + option title 'Match by packet size' + option section 'qos.default' + option datatype 'integer' + +config variable + option name 'portrange' + option title 'Match by port range' + option section 'qos.default' + +config variable + option name 'proto' + option title 'Match by layer 3 protocol' + option section 'qos.default' + +config variable + option name 'target' + option title 'Option target' + option section 'qos.default' + option valueof 'qos.class' + option required true + + +config section + option name 'classify' + option title 'QoS classification rule' + option package 'qos' + +config variable + option name 'ipp2p' + option title 'Match by ipp2p' + option section 'qos.classify' + +config variable + option name 'layer7' + option title 'Match by layer 7 protocol' + option section 'qos.classify' + +config variable + option name 'ports' + option title 'Match by ports' + option section 'qos.classify' + +config variable + option name 'proto' + option title 'Match by layer 3 protocol' + option section 'qos.classify' + +config variable + option name 'tcpflags' + option title 'Match by TCP flags' + option section 'qos.classify' + +config variable + option name 'target' + option title 'QoS target class' + option section 'qos.classify' + option valueof 'qos.class' + option required true + + +config section + option name 'reclassify' + option title 'QoS reclassification rule' + option package 'qos' + +config variable + option name 'mark' + option title 'Match by classification mark' + option section 'qos.reclassify' + +config variable + option name 'pktsize' + option title 'Match by packet size' + option section 'qos.reclassify' + option datatype 'integer' + +config variable + option name 'proto' + option title 'Match by layer 3 protocol' + option section 'qos.reclassify' + +config variable + option name 'tcpflags' + option title 'Match by TCP flags' + option section 'qos.reclassify' + +config variable + option name 'target' + option title 'QoS classification target' + option section 'qos.reclassify' + option valueof 'qos.class' + option required true diff --git a/applications/luci-samba/root/lib/uci/schema/default/samba b/applications/luci-samba/root/lib/uci/schema/default/samba new file mode 100644 index 0000000000..d4c7d8cd85 --- /dev/null +++ b/applications/luci-samba/root/lib/uci/schema/default/samba @@ -0,0 +1,76 @@ +package samba + +config package + option title 'Samba CIFS/SMB Daemon' + +config section + option name 'samba' + option package 'samba' + option title 'General Settings' + option unique true + option required true + +config variable + option name 'name' + option section 'samba.samba' + option title 'Hostname' + option datatype host + option required true + +config variable + option name 'description' + option section 'samba.samba' + option title 'Description' + +config variable + option name 'workgroup' + option section 'samba.samba' + option title 'Workgroup' + option required true + +config variable + option name 'homes' + option section 'samba.samba' + option title 'Share home-directories' + option description 'System users can reach their home directories via network shares.' + option datatype boolean + +config section + option name 'sambashare' + option package 'samba' + option title 'Shared Directories' + +config variable + option name 'name' + option section 'samba.sambashare' + option title 'Name' + option required true + +config variable + option name 'users' + option section 'samba.sambashare' + option title 'Allowed Users' + +config variable + option name 'read_only' + option section 'samba.sambashare' + option title 'Read Only' + option datatype boolean + +config variable + option name 'guest_ok' + option section 'samba.sambashare' + option title 'Allow Guests' + option datatype boolean + +config variable + option name 'create_mask' + option section 'samba.sambashare' + option title 'Create Mask' + option description 'Mask for new files' + +config variable + option name 'dir_mask' + option section 'samba.sambashare' + option title 'Directory Mask' + option description 'Mask for new directories' diff --git a/applications/luci-splash/root/lib/uci/schema/default/luci_splash b/applications/luci-splash/root/lib/uci/schema/default/luci_splash new file mode 100644 index 0000000000..f3201416af --- /dev/null +++ b/applications/luci-splash/root/lib/uci/schema/default/luci_splash @@ -0,0 +1,14 @@ +package luci_splash + +config section + option name 'core' + option title 'Common DHCP splash settings' + option package 'luci_splash' + option unique true + option required true + +config variable + option name 'leasetime' + option title 'Lease time in hours' + option section 'luci_splash.core' + option datatype 'float' diff --git a/applications/luci-upnp/root/lib/uci/schema/default/upnpd b/applications/luci-upnp/root/lib/uci/schema/default/upnpd new file mode 100644 index 0000000000..8574d03955 --- /dev/null +++ b/applications/luci-upnp/root/lib/uci/schema/default/upnpd @@ -0,0 +1,28 @@ +package upnpd + +config package + option title 'Miniupnpd UPNP daemon' + +config section + option name 'upnpd' + option title 'Settings' + option package 'upnpd' + option unique true + +config variable + option name 'download' + option title 'Download bandwidth in kBit/s' + option section 'upnpd.upnpd' + option datatype 'integer' + +config variable + option name 'upload' + option title 'Upload bandwidth in kBit/s' + option section 'upnpd.upnpd' + option datatype 'integer' + +config variable + option name 'log_output' + option title 'Enable log messages' + option section 'upnpd.upnpd' + option datatype 'boolean' diff --git a/applications/luci-uvc_streamer/root/lib/uci/schema/default/uvc-streamer b/applications/luci-uvc_streamer/root/lib/uci/schema/default/uvc-streamer new file mode 100644 index 0000000000..9ea255c31f --- /dev/null +++ b/applications/luci-uvc_streamer/root/lib/uci/schema/default/uvc-streamer @@ -0,0 +1,41 @@ +#package uvc-streamer + +config package + option title 'UVC-Streamer webcam streaming configuration' + +config section + option name 'uvc-streamer' + option package 'uvc-streamer' + option title 'Settings' + option unique true + option required true + +config variable + option name 'enabled' + option section 'uvc-streamer.uvc-streamer' + option title 'Enable' + option required true + option datatype boolean + +config variable + option name 'device' + option section 'uvc-streamer.uvc-streamer' + option title 'Device' + +config variable + option name 'resolution' + option section 'uvc-streamer.uvc-streamer' + option title 'Resolution' + option required true + +config variable + option name 'framespersecond' + option section 'uvc-streamer.uvc-streamer' + option title 'Frames per second' + option datatype uint + +config variable + option name 'port' + option section 'uvc-streamer.uvc-streamer' + option title 'Port' + option datatype port |