BUG-47 : PCEP migration to generated DTOs.
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPCloseTermination.java
index 60683ce9edd55dcc40aa790b8b369be236412433..6343873b37108d2d566f1046c3d1a66aaca32399 100644 (file)
@@ -7,23 +7,21 @@
  */
 package org.opendaylight.protocol.pcep;
 
-import org.opendaylight.protocol.pcep.object.PCEPCloseObject.Reason;
-
 import com.google.common.base.Objects.ToStringHelper;
 
 /**
- * Used as a reason when one of the regular reasons was the cause of the
- * termination of a session.
+ * Used as a reason when one of the regular reasons was the cause of the termination of a session.
  */
 public final class PCEPCloseTermination extends PCEPTerminationReason {
 
-       private final Reason reason;
+       private final TerminationReason reason;
 
        /**
         * Creates new Termination.
+        * 
         * @param reason reason for termination
         */
-       public PCEPCloseTermination(final Reason reason) {
+       public PCEPCloseTermination(final TerminationReason reason) {
                super();
                this.reason = reason;
        }
@@ -38,7 +36,7 @@ public final class PCEPCloseTermination extends PCEPTerminationReason {
 
        @Override
        protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
-               return toStringHelper.add("reason", reason);
+               return toStringHelper.add("reason", this.reason);
 
        }
 }