]> git.99rst.org Git - openwrt-luci.git/blob
27e47d2ac0605e8db46fb65bb4772650622a54f5
[openwrt-luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4 'require baseclass';
5
6 return baseclass.extend({
7 title: _('SNMP6'),
8
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10
11 var traffic = {
12 title: "%H: IPv6 on %pi",
13 vlabel: "Bytes/s",
14
15 data: {
16 sources: {
17 if_octets: [ "tx", "rx" ]
18 },
19
20 options: {
21 if_octets__tx: {
22 title: "Bytes (TX)",
23 total: true,
24 color: "00ff00"
25 },
26
27 if_octets__rx: {
28 title: "Bytes (RX)",
29 flip : true,
30 total: true,
31 color: "0000ff"
32 }
33 }
34 }
35 };
36
37 var mcast_traffic = {
38 title: "%H: IPv6 Multicast-Traffic on %pi",
39 vlabel: "Bytes/s",
40
41 data: {
42 sources: {
43 if_octets_mcast: [ "tx", "rx" ]
44 },
45
46 options: {
47 if_octets_mcast__tx: {
48 title: "Bytes (TX)",
49 total: true,
50 color: "00ff00"
51 },
52
53 if_octets_mcast__rx: {
54 title: "Bytes (RX)",
55 flip : true,
56 total: true,
57 color: "0000ff"
58 }
59 }
60 }
61 };
62
63
64 var bcast_traffic = {
65 title: "%H: IPv6 Broadcast-Traffic on %pi",
66 vlabel: "Bytes/s",
67
68 data: {
69 sources: {
70 if_octets_bcast: [ "tx", "rx" ]
71 },
72
73 options: {
74 if_octets_bcast__tx: {
75 title: "Bytes (TX)",
76 total: true,
77 color: "00ff00"
78 },
79
80 if_octets_bcast__rx: {
81 title: "Bytes (RX)",
82 flip : true,
83 total: true,
84 color: "0000ff"
85 }
86 }
87 }
88 };
89
90 return [ traffic, mcast_traffic, bcast_traffic ]
91 }
92 });
git clone https://git.99rst.org/PROJECT