bird-openwrt: update to version 0.3
[feed/routing.git] / bird-openwrt / bird4-openwrt / src / controller / bird4.lua
1 --[[
2 Copyright (C) 2014-2017 - Eloi Carbo
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 --]]
17
18 module("luci.controller.bird4", package.seeall)
19
20 function index()
21 entry({"admin", "network", "bird4",},
22 alias("admin", "network", "bird4", "status"),
23 _("Bird4"), 0)
24
25 entry({"admin", "network", "bird4", "status"},
26 cbi("bird4/status"),
27 _("Status"), 0).leaf = true
28
29 entry({"admin","network","bird4","log"},
30 template("bird4/log"),
31 _("Log"), 1).leaf = true
32
33 entry({"admin", "network", "bird4", "overview"},
34 cbi("bird4/overview"),
35 _("Overview"), 2).leaf = true
36
37 entry({"admin","network","bird4","proto_general"},
38 cbi("bird4/gen_proto"),
39 _("General protocols"), 3).leaf = true
40
41 entry({"admin","network","bird4","proto_bgp"},
42 cbi("bird4/bgp_proto"),
43 _("BGP Protocol"), 4).leaf = true
44
45 entry({"admin","network","bird4","filters"},
46 cbi("bird4/filters"),
47 _("Filters"), 5).leaf = true
48
49 entry({"admin","network","bird4","functions"},
50 cbi("bird4/functions"),
51 _("Functions"), 6).leaf = true
52 end