[VOL-3105] Fix NNI port no calculation for PortStatistics
- Bitshifting in interface_key_to_port_no method in translation.cc is corrected for NNI
Change-Id: Idc0499c43720b4c526e8ccac972c068bcdbf7529
diff --git a/agent/src/translation.cc b/agent/src/translation.cc
index bd41b61..03cd0a1 100644
--- a/agent/src/translation.cc
+++ b/agent/src/translation.cc
@@ -20,7 +20,7 @@
int interface_key_to_port_no(bcmolt_interface_id intf_id,
bcmolt_interface_type intf_type) {
if (intf_type == BCMOLT_INTERFACE_TYPE_NNI) {
- return (0x1 << 16) + intf_id;
+ return (0x1 << 20) + intf_id;
}
if (intf_type == BCMOLT_INTERFACE_TYPE_PON) {
return (0x2 << 28) + intf_id;