NAT: total users and sessions gauges (VPP-1484)
[vpp.git] / src / plugins / nat / dslite.h
index 6a1c2ec..066bfcf 100644 (file)
@@ -46,7 +46,6 @@ typedef CLIB_PACKED (struct
   f64 last_heard;
   u64 total_bytes;
   u32 total_pkts;
-  u32 outside_address_index;
 }) dslite_session_t;
 /* *INDENT-ON* */
 
@@ -88,6 +87,10 @@ typedef struct
   u32 first_worker_index;
   u16 port_per_thread;
 
+  /* counters/gauges */
+  vlib_simple_counter_main_t total_b4s;
+  vlib_simple_counter_main_t total_sessions;
+
   /* If set then the DSLite component behaves as CPE/B4
    * otherwise it behaves as AFTR */
   u8 is_ce;