diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-12-18 01:08:51 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-12-20 15:12:11 +0000 |
commit | fd0d50879f475a1b15cedb4ab49059a02c45ccfd (patch) | |
tree | cbb86dfe652ec5401492298335c9750cfad482b3 /src/plugins/nat/dslite.c | |
parent | 775f73c6baaf9bc2283e7ab9752c81984823be99 (diff) |
NAT: total users and sessions gauges (VPP-1484)
Change-Id: I41a82e21571d5c64d01af72cd88c3983afac26ed
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/dslite.c')
-rw-r--r-- | src/plugins/nat/dslite.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/nat/dslite.c b/src/plugins/nat/dslite.c index 12c813200ec..883acecb052 100644 --- a/src/plugins/nat/dslite.c +++ b/src/plugins/nat/dslite.c @@ -67,6 +67,16 @@ dslite_init (vlib_main_t * vm) dm->is_ce = 0; + /* Init counters */ + dm->total_b4s.name = "total-b4s"; + dm->total_b4s.stat_segment_name = "/dslite/total-b4s"; + vlib_validate_simple_counter (&dm->total_b4s, 0); + vlib_zero_simple_counter (&dm->total_b4s, 0); + dm->total_sessions.name = "total-sessions"; + dm->total_sessions.stat_segment_name = "/dslite/total-sessions"; + vlib_validate_simple_counter (&dm->total_sessions, 0); + vlib_zero_simple_counter (&dm->total_sessions, 0); + dslite_dpo_module_init (); } |