-
Type: Sub-task
-
Status: To Do (View Workflow)
-
Priority: Medium
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.12
-
Component/s: openolt-agent
-
Labels:None
-
Story Points:1
in translation.cc the portno in agent is calculated by the composition of port type and int_id as below:
int interface_key_to_port_no(bcmolt_interface_id intf_id,
bcmolt_interface_type intf_type) {
if (intf_type == BCMOLT_INTERFACE_TYPE_NNI)
if (intf_type == BCMOLT_INTERFACE_TYPE_PON)
{ return (0x2 << 28) + intf_id; } return intf_id;
}
The calculated port number is used in LosIndication and PortStats. This function should be changed according to new changes. The 20 bit for NNI should be changed to 24.
Note: Instead of generating a port number from port type and port id, It should be considered to change the interface to a
structure, so remove this function totally.