Jonathan Hart
Committed by Gerrit Code Review

Change in-port to CONTROLLER for packet-outs.

Change-Id: I964da6baaee1e9ca2e7b9b724266793077036bd8
...@@ -15,11 +15,6 @@ ...@@ -15,11 +15,6 @@
15 */ 15 */
16 package org.onosproject.provider.of.packet.impl; 16 package org.onosproject.provider.of.packet.impl;
17 17
18 -import static org.slf4j.LoggerFactory.getLogger;
19 -
20 -import java.nio.ByteBuffer;
21 -import java.util.Collections;
22 -
23 import org.apache.felix.scr.annotations.Activate; 18 import org.apache.felix.scr.annotations.Activate;
24 import org.apache.felix.scr.annotations.Component; 19 import org.apache.felix.scr.annotations.Component;
25 import org.apache.felix.scr.annotations.Deactivate; 20 import org.apache.felix.scr.annotations.Deactivate;
...@@ -51,6 +46,11 @@ import org.projectfloodlight.openflow.types.OFBufferId; ...@@ -51,6 +46,11 @@ import org.projectfloodlight.openflow.types.OFBufferId;
51 import org.projectfloodlight.openflow.types.OFPort; 46 import org.projectfloodlight.openflow.types.OFPort;
52 import org.slf4j.Logger; 47 import org.slf4j.Logger;
53 48
49 +import java.nio.ByteBuffer;
50 +import java.util.Collections;
51 +
52 +import static org.slf4j.LoggerFactory.getLogger;
53 +
54 54
55 /** 55 /**
56 * Provider which uses an OpenFlow controller to detect network 56 * Provider which uses an OpenFlow controller to detect network
...@@ -138,7 +138,7 @@ public class OpenFlowPacketProvider extends AbstractProvider implements PacketPr ...@@ -138,7 +138,7 @@ public class OpenFlowPacketProvider extends AbstractProvider implements PacketPr
138 .build(); 138 .build();
139 return builder 139 return builder
140 .setBufferId(OFBufferId.NO_BUFFER) 140 .setBufferId(OFBufferId.NO_BUFFER)
141 - .setInPort(OFPort.NO_MASK) 141 + .setInPort(OFPort.CONTROLLER)
142 .setActions(Collections.singletonList(act)) 142 .setActions(Collections.singletonList(act))
143 .setData(eth) 143 .setData(eth)
144 .build(); 144 .build();
......