From 6d10aed94b103721fd50d3359a60de60e2d3d64c Mon Sep 17 00:00:00 2001 From: Sho SHIMIZU Date: Mon, 29 Feb 2016 11:44:42 -0800 Subject: [PATCH] Refactor: Narrow data provided to method Change-Id: Ib871410d36214457eb1291f308332f35e4e807c5 --- .../OpticalCircuitIntentCompiler.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java index 29fdb24ec1..8f538bc7a6 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java @@ -199,7 +199,8 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler slots = Collections.emptySet(); - OpticalConnectivityIntent connIntent = findOpticalConnectivityIntent(intent, multiplexingSupported); + OpticalConnectivityIntent connIntent = findOpticalConnectivityIntent(intent.getSrc(), intent.getDst(), + intent.getSignalType(), multiplexingSupported); if ((connIntent != null) && multiplexingSupported) { // Allocate TributarySlots on existing OCH ports slots = assignTributarySlots(intent, Pair.of(connIntent.getSrc(), connIntent.getDst())); @@ -302,14 +303,18 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler