1b9755cce36610e06d9caa52ab4873b9cb1ea38c
[oweals/luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4
5 return L.Class.extend({
6         title: _('Firewall (IPv6)'),
7
8         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
9                 return [{
10                         title: "%H: Firewall: Processed bytes in %pi",
11                         vlabel: "Bytes/s",
12                         number_format: "%5.1lf%sB/s",
13                         totals_format: "%5.1lf%sB",
14                         data: {
15                                 types: [ "ipt_bytes" ],
16                                 options: {
17                                         ipt_bytes: {
18                                                 total: true,
19                                                 title: "%di"
20                                         }
21                                 }
22                         }
23                 }, {
24                         title: "%H: Firewall: Processed packets in %pi",
25                         vlabel: "Packets/s",
26                         number_format: "%5.1lf P/s",
27                         totals_format: "%5.1lf%s",
28                         data: {
29                                 types: [ "ipt_packets" ],
30                                 options: {
31                                         ipt_packets: {
32                                                 total: true,
33                                                 title: "%di"
34                                         }
35                                 }
36                         }
37                 }];
38         }
39 });