BUG-592: prepare for API change 88/5788/2
authorRobert Varga <robert.varga@pantheon.sk>
Thu, 27 Mar 2014 00:35:03 +0000 (01:35 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 27 Mar 2014 01:57:42 +0000 (01:57 +0000)
getPathArguments() was added by mistake with its current return type. It
will be fixed in a follow-up patch, so fall back to getPath(), which does
the same thing, such that it won't break when things change.

Change-Id: Iae3661aa8942e050c0ac638cce0bec6dae9fa290
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/PacketOutConvertor.java

index afc58f403b0358cbf5085a04f338fee6d36e5cc9..2761f71f69014a0480f25b9414ea34f6a6ddd378 100644 (file)
@@ -71,7 +71,7 @@ public class PacketOutConvertor {
 
         PortNumber outPort = null;
         NodeConnectorRef outRef = inputPacket.getEgress();
-        List<PathArgument> outArgs = outRef.getValue().getPathArguments();
+        List<PathArgument> outArgs = outRef.getValue().getPath();
         if (outArgs.size() >= 3) {
             outPort = getPortNumber(outArgs.get(2));
         } else {