X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=bird-openwrt%2Fbird6-openwrt%2Fsrc%2Fcontroller%2Fbird6.lua;h=e8ad175c8fd00d2172378988c55ae6f71d546bdc;hb=453de2136e2f354b2d6c88270297f31d4de488ae;hp=5ee272900ca1857ff906f365cac4dc62b7ef8a6c;hpb=1dc4a6ae00bb72c327b199e883cba867506578c1;p=feed%2Frouting.git diff --git a/bird-openwrt/bird6-openwrt/src/controller/bird6.lua b/bird-openwrt/bird6-openwrt/src/controller/bird6.lua index 5ee2729..e8ad175 100644 --- a/bird-openwrt/bird6-openwrt/src/controller/bird6.lua +++ b/bird-openwrt/bird6-openwrt/src/controller/bird6.lua @@ -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 . module("luci.controller.bird6", package.seeall) function index() - entry({"admin","network","bird6"}, cbi("bird6/overview"), "Bird6", 1).dependent=false - entry({"admin","network","bird6","overview"}, cbi("bird6/overview"), "Overview", 2).dependent=false - entry({"admin","network","bird6","proto_general"}, cbi("bird6/gen_proto"), "General protocols", 3).dependent=false - entry({"admin","network","bird6","proto_bgp"}, cbi("bird6/bgp_proto"), "BGP Protocol", 4).dependent=false -end + entry({"admin","network","bird6"}, + alias("admin","network","bird6","status"), + _("Bird6"), 0) + + entry({"admin", "network", "bird6", "status"}, + cbi("bird6/status"), + _("Status"), 0).leaf = true + + entry({"admin","network","bird6","log"}, + template("bird6/log"), + _("Log"), 1).leaf = true + + entry({"admin","network","bird6","overview"}, + cbi("bird6/overview"), + _("Overview"), 2).leaf = true + entry({"admin","network","bird6","proto_general"}, + cbi("bird6/gen_proto"), + _("General protocols"), 3).leaf = true + + entry({"admin","network","bird6","proto_bgp"}, + cbi("bird6/bgp_proto"), + _("BGP Protocol"), 4).leaf = true + + entry({"admin","network","bird6","filters"}, + cbi("bird6/filters"), + _("Filters"), 5).leaf = true + + entry({"admin","network","bird6","functions"}, + cbi("bird6/functions"), + _("Functions"), 6).leaf = true +end