X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=packetcable-driver%2Fsrc%2Fmain%2Fjava%2Forg%2Fpcmm%2FPCMMPdpDataProcess.java;h=5c99ac27608e2424d457cfbb86612a893d0ebcb7;hb=3e6a8ae8c2dcfa808502f9acf94cad3ba2e28716;hp=dd6e88da4573d5cd928d7e20c3a6a56cdd9a04f8;hpb=a06a930e945e767e04f20486711a666d86d85e4c;p=packetcable.git diff --git a/packetcable-driver/src/main/java/org/pcmm/PCMMPdpDataProcess.java b/packetcable-driver/src/main/java/org/pcmm/PCMMPdpDataProcess.java index dd6e88d..5c99ac2 100644 --- a/packetcable-driver/src/main/java/org/pcmm/PCMMPdpDataProcess.java +++ b/packetcable-driver/src/main/java/org/pcmm/PCMMPdpDataProcess.java @@ -1,10 +1,10 @@ -/** - @header@ +/* + * (c) 2015 Cable Television Laboratories, Inc. All rights reserved. */ package org.pcmm; -import org.pcmm.gates.ITransactionID; +import org.pcmm.gates.ITransactionID.GateCommandType; import org.pcmm.gates.impl.PCMMGateReq; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -71,7 +71,7 @@ public class PCMMPdpDataProcess implements COPSPdpDataProcess { public void successReport(final COPSPdpReqStateMan man, final PCMMGateReq gateMsg) { logger.info("Success Report notified."); - if ( gateMsg.getTransactionID().getGateCommandType() == ITransactionID.GateDeleteAck ) { + if ( gateMsg.getTransactionID().getGateCommandType().equals(GateCommandType.GATE_DELETE_ACK)) { logger.info("GateDeleteAck: GateID = " + gateMsg.getGateID().getGateID()); if (gateMsg.getGateID().getGateID() == PCMMGlobalConfig.getGateID1()) PCMMGlobalConfig.setGateID1(0); @@ -79,7 +79,7 @@ public class PCMMPdpDataProcess implements COPSPdpDataProcess { PCMMGlobalConfig.setGateID2(0); } - if ( gateMsg.getTransactionID().getGateCommandType() == ITransactionID.GateSetAck ) { + if ( gateMsg.getTransactionID().getGateCommandType().equals(GateCommandType.GATE_SET_ACK)) { logger.info("GateSetAck : GateID = " + gateMsg.getGateID().getGateID()); if (0 == PCMMGlobalConfig.getGateID1()) PCMMGlobalConfig.setGateID1(gateMsg.getGateID().getGateID());