AA-2588 Expose LLB NAT Statistics from APV for AMP Dashboard

Review Request #731 — Created March 20, 2025 and submitted

ngurunathan
APV10
rel_apv_10.7
AA-2588
mmiriam, pradeep, prajesh, tanya

AA-2588 Expose LLB NAT Statistics from APV for AMP Dashboard.Eexpose LLB NAT-related statistics so that AMP can receive and visualize key NAT traffic details, including NAT IP, Destination IP, Source Port, Destination Port.

snmpwalk -v 2c -m /ca/etc/mibs/CA-SNMP-MIB.txt -c public 192.168.162.73 1.3.6.1.4.1.7564.34.2.2
CA-SNMP-MIB8::natStatsCount.0 = INTEGER: 3
CA-SNMP-MIB8::natIndex.1 = INTEGER: 1
CA-SNMP-MIB8::natIndex.2 = INTEGER: 2
CA-SNMP-MIB8::natIndex.3 = INTEGER: 3
CA-SNMP-MIB8::natSourceIP.1 = STRING: 30.30.30.10
CA-SNMP-MIB8::natSourceIP.2 = STRING: 30.30.30.10
CA-SNMP-MIB8::natSourceIP.3 = STRING: 30.30.30.10
CA-SNMP-MIB8::natLocalIP.1 = STRING: 192.168.162.73
CA-SNMP-MIB8::natLocalIP.2 = STRING: 192.168.163.73
CA-SNMP-MIB8::natLocalIP.3 = STRING: 192.168.163.73
CA-SNMP-MIB8::natTargetIP.1 = STRING: 20.7.2.167
CA-SNMP-MIB8::natTargetIP.2 = STRING: 192.168.160.11
CA-SNMP-MIB8::natTargetIP.3 = STRING: 52.123.129.14
CA-SNMP-MIB8::natSourcePort.1 = INTEGER: 57335
CA-SNMP-MIB8::natSourcePort.2 = INTEGER: 65286
CA-SNMP-MIB8::natSourcePort.3 = INTEGER: 65285
CA-SNMP-MIB8::natLocalPort.1 = INTEGER: 58119
CA-SNMP-MIB8::natLocalPort.2 = INTEGER: 58210
CA-SNMP-MIB8::natLocalPort.3 = INTEGER: 58207
CA-SNMP-MIB8::natTargetPort.1 = INTEGER: 443
CA-SNMP-MIB8::natTargetPort.2 = INTEGER: 7680
CA-SNMP-MIB8::natTargetPort.3 = INTEGER: 443

Description From Last Updated

remove white spaces from everywhere (shown in red)

prajeshprajesh

Align second column for better readability.

prajeshprajesh

Remove all whitespaces

mmiriammmiriam

give some readable variable names

mmiriammmiriam

can this be renamed to result from "string"

prajeshprajesh

if (port_ptr == NULL) { return NULL; } else { ... } Follow this if else structure..

prajeshprajesh

Change it to below format / current index is the required pcb index. Based on nat attribute type, * update …

mmiriammmiriam

add space after if and between "=="

mmiriammmiriam

Chnage if else formatting everywhere

prajeshprajesh

if () { } else { }

prajeshprajesh
ngurunathan
ngurunathan
mmiriam
ngurunathan
prajesh
  1. 
      
  2. remove white spaces from everywhere (shown in red)

  3. branches/rel_apv_10_7/usr/click/lib/libca_snmp_mib/CA-SNMP-MIB.txt (Diff revision 2)
     
     
     
     
     
     
     
     

    Align second column for better readability.

  4. 
      
prajesh
  1. 
      
  2. can this be renamed to result from "string"

  3. 
      
prajesh
  1. 
      
  2. if (port_ptr == NULL) {
    return NULL;
    } else {
    ...
    }

    Follow this if else structure..

  3. 
      
mmiriam
  1. 
      
  2. Change it to below format
    / current index is the required pcb index. Based on nat attribute type,
    * update buffer with corresponding nat detail
    /

  3. add space after if and between "=="

  4. 
      
ngurunathan
prajesh
  1. 
      
  2. Chnage if else formatting everywhere

  3. 
      
prajesh
ngurunathan
prajesh
  1. Ship It!
  2. 
      
ngurunathan
pradeep
  1. Ship It!
  2. 
      
mmiriam
  1. Ship It!

  2. 
      
ngurunathan
ngurunathan
Review request changed

Status: Closed (submitted)

Loading...