* luci/libs/uvl: add scheme for luci_hosts configuration
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 6 Sep 2008 18:14:17 +0000 (18:14 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 6 Sep 2008 18:14:17 +0000 (18:14 +0000)
libs/uvl/root/lib/uci/schema/default/luci_hosts [new file with mode: 0644]

diff --git a/libs/uvl/root/lib/uci/schema/default/luci_hosts b/libs/uvl/root/lib/uci/schema/default/luci_hosts
new file mode 100644 (file)
index 0000000..e2597f4
--- /dev/null
@@ -0,0 +1,21 @@
+package luci_hosts
+
+config section
+       option name     'host'
+       option title    'Host entry definition'
+       option package  'luci_hosts'
+
+config variable
+       option name     'hostname'
+       option title    'Hostname'
+       option section  'luci_hosts.host'
+       option datatype 'hostname'
+       option required true
+
+config variable
+       option name     'ipaddr'
+       option title    'IP address'
+       option section  'luci_hosts.host'
+       option datatype 'ipaddr'
+       option required true
+