445c93148396ec471dea2d252c293f217060d9f7
[project/luci.git] / applications / luci-app-radvd / luasrc / controller / radvd.lua
1 -- Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.controller.radvd", package.seeall)
5
6 function index()
7 if not nixio.fs.access("/etc/config/radvd") then
8 return
9 end
10
11 entry({"admin", "network", "radvd"}, cbi("radvd"), _("Radvd"), 61)
12 entry({"admin", "network", "radvd", "interface"}, cbi("radvd/interface"), nil).leaf = true
13 entry({"admin", "network", "radvd", "prefix"}, cbi("radvd/prefix"), nil).leaf = true
14 entry({"admin", "network", "radvd", "route"}, cbi("radvd/route"), nil).leaf = true
15 entry({"admin", "network", "radvd", "rdnss"}, cbi("radvd/rdnss"), nil).leaf = true
16 entry({"admin", "network", "radvd", "dnssl"}, cbi("radvd/dnssl"), nil).leaf = true
17 end