import org.opendaylight.openflowplugin.openflow.md.core.session.SessionContextOFImpl;\r
import org.opendaylight.openflowplugin.openflow.md.core.session.SwitchConnectionCookieOFImpl;\r
import org.opendaylight.openflowplugin.openflow.md.queue.QueueProcessorLightImpl;\r
-import org.opendaylight.openflowplugin.openflow.md.util.OpenflowPortsUtil;\r
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.PacketInReason;\r
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;\r
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutputBuilder;\r
when(conductor.getVersion()).thenReturn((short) EncodeConstants.OF10_VERSION_ID);\r
when(sc.getFeatures()).thenReturn(features);\r
when(features.getDatapathId()).thenReturn(new BigInteger("42"));\r
- OpenflowPortsUtil.init();\r
\r
cookie = settingCookie();\r
data = messageData();\r
sessionContextOFImpl.setFeatures(featuresOutput);\r
sessionContextOFImpl.setPrimaryConductor(conductor);\r
PacketInV10Translator packetInV10Translator = new PacketInV10Translator();\r
- OpenflowPortsUtil.init();\r
List<DataObject> salPacketIn = packetInV10Translator.translate(cookie,\r
sessionContextOFImpl, message);\r
\r