Skip to content

Commit

Permalink
fix switch src and dst during refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomuri committed Nov 15, 2023
1 parent 931ca69 commit f1d1062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void activateHaFlowMonitoringForSwitch(SwitchId switchId) {
haSubFlowRepository.findByEndpointSwitchId(switchId).stream()
.filter(haSubFlow -> !haSubFlow.isOneSwitchFlow())
.forEach(haSubFlow -> carrier.notifyActivateFlowMonitoring(haSubFlow.getHaSubFlowId(),
haSubFlow.getHaFlow().getSharedSwitchId(), switchId, haSubFlow.getEndpointPort(),
switchId, haSubFlow.getHaFlow().getSharedSwitchId(), haSubFlow.getEndpointPort(),
haSubFlow.getEndpointVlan(), haSubFlow.getEndpointInnerVlan(), false));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void activateFlowMonitoringForSwitchForward() {
@Test
void activateFlowMonitoringForSwitchReverse() {
flowRttService.activateFlowMonitoringForSwitch(SWITCH_ID_2);
verify(carrier).notifyActivateFlowMonitoring(SUB_FLOW_ID_A, SWITCH_ID_1, SWITCH_ID_2,
verify(carrier).notifyActivateFlowMonitoring(SUB_FLOW_ID_A, SWITCH_ID_2, SWITCH_ID_1,
PORT_1, 0, 0, false);
verifyNoMoreInteractions(carrier);
}
Expand Down

0 comments on commit f1d1062

Please sign in to comment.