Bug 3248: Fix for remoteNextHop
[vpnservice.git] / nexthopmgr / nexthopmgr-impl / src / main / java / org / opendaylight / vpnservice / nexthopmgr / NexthopManager.java
index 5c0184eba734fc3ab6e19738b04c5f0629e3cb1b..450f59c6fd3d049ccc3049a3c82866735b53dad2 100644 (file)
@@ -226,7 +226,7 @@ public class NexthopManager implements L3nexthopService, AutoCloseable {
         List<MatchInfo> matches = new ArrayList<MatchInfo>();
         List<InstructionInfo> mkInstructions = new ArrayList<InstructionInfo>();
         if (NwConstants.ADD_FLOW == addOrRemoveFlow) {
-            interfaceManager.getPortForInterface(ifName);
+            portNo = interfaceManager.getPortForInterface(ifName);
             matches.add(new MatchInfo(MatchFieldType.in_port, new long[] {
                 dpId, portNo }));
             mkInstructions.add(new InstructionInfo(InstructionType.goto_table, new long[] {LFIB_TABLE}));