bird-openwrt: update to version 0.3
[feed/routing.git] / bird-openwrt / bird4-openwrt / src / controller / bird4.lua
index 7b2c56d..d12803a 100644 (file)
@@ -1,6 +1,5 @@
 --[[ 
-Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014) 
-BGP/Bird integration with OpenWRT and QMP
+Copyright (C) 2014-2017 - Eloi Carbo
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -19,9 +18,35 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 module("luci.controller.bird4", package.seeall)
 
 function index()
-        entry({"admin","network","bird4"}, cbi("bird4/overview"), "Bird4", 0).dependent=false
-        entry({"admin","network","bird4","overview"}, cbi("bird4/overview"), "Overview", 1).dependent=false
-        entry({"admin","network","bird4","proto_general"}, cbi("bird4/gen_proto"), "General protocols", 3).dependent=false
-        entry({"admin","network","bird4","proto_bgp"}, cbi("bird4/bgp_proto"), "BGP Protocol", 4).dependent=false
-end
+        entry({"admin", "network", "bird4",},
+            alias("admin", "network", "bird4", "status"),
+            _("Bird4"), 0)
+
+        entry({"admin", "network", "bird4", "status"},
+            cbi("bird4/status"),
+            _("Status"), 0).leaf = true
+
+        entry({"admin","network","bird4","log"},
+            template("bird4/log"),
+            _("Log"), 1).leaf = true
+
+        entry({"admin", "network", "bird4", "overview"},
+            cbi("bird4/overview"),
+            _("Overview"), 2).leaf = true
 
+        entry({"admin","network","bird4","proto_general"},
+            cbi("bird4/gen_proto"),
+            _("General protocols"), 3).leaf = true
+
+        entry({"admin","network","bird4","proto_bgp"},
+            cbi("bird4/bgp_proto"),
+            _("BGP Protocol"), 4).leaf = true
+
+        entry({"admin","network","bird4","filters"},
+            cbi("bird4/filters"),
+            _("Filters"), 5).leaf = true
+
+        entry({"admin","network","bird4","functions"},
+            cbi("bird4/functions"),
+            _("Functions"), 6).leaf = true
+end