Add remove op policy option
[clamp.git] / src / main / java / org / onap / clamp / loop / Loop.java
index f185460..2bf3dec 100644 (file)
@@ -270,6 +270,17 @@ public class Loop extends AuditEntity implements Serializable {
         this.setSvgRepresentation(SvgLoopGenerator.getSvgImage(this));
     }
 
+    /**
+     * This method removes an operational policy to the loop.
+     * It re-computes the Svg as well.
+     *
+     * @param opPolicy the operationalPolicy to add
+     */
+    public void removeOperationalPolicy(OperationalPolicy opPolicy) {
+        operationalPolicies.remove(opPolicy);
+        this.setSvgRepresentation(SvgLoopGenerator.getSvgImage(this));
+    }
+
     /**
      * This method adds an micro service policy to the loop.
      * It re-computes the Svg as well.