Avoid using fully qualified name
Change-Id: I273ccfe4bded393ec17128f485842c458cbffac4
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -111,8 +111,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical | ... | @@ -111,8 +111,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical |
111 | // Reserve OCh ports | 111 | // Reserve OCh ports |
112 | Resource srcPortResource = Resource.discrete(src.deviceId(), src.port()).resource(); | 112 | Resource srcPortResource = Resource.discrete(src.deviceId(), src.port()).resource(); |
113 | Resource dstPortResource = Resource.discrete(dst.deviceId(), dst.port()).resource(); | 113 | Resource dstPortResource = Resource.discrete(dst.deviceId(), dst.port()).resource(); |
114 | - List<org.onosproject.net.newresource.ResourceAllocation> allocation = | 114 | + List<ResourceAllocation> allocation = resourceService.allocate(intent.id(), srcPortResource, dstPortResource); |
115 | - resourceService.allocate(intent.id(), srcPortResource, dstPortResource); | ||
116 | if (allocation.isEmpty()) { | 115 | if (allocation.isEmpty()) { |
117 | throw new IntentCompilationException("Unable to reserve ports for intent " + intent); | 116 | throw new IntentCompilationException("Unable to reserve ports for intent " + intent); |
118 | } | 117 | } | ... | ... |
-
Please register or login to post a comment