Fixes for DVR
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / lisp / LispStateCommandExecutor.java
index 691596651a09ec70e94f968508da50cf204cbf5f..35f31f9771dd8a9155c743e728a3fbef0008ae1d 100644 (file)
@@ -37,6 +37,12 @@ public class LispStateCommandExecutor {
         return executeCommand(LispUtil.HOSTNAME_TO_IID.apply(hostName), lispStateCommand);
     }
 
+    public static <T extends DataObject> boolean executeMergeCommand(String hostName,
+        AbstractLispCommand<T> lispStateCommand) {
+        lispStateCommand.setOperation(General.Operations.MERGE);
+        return executeCommand(LispUtil.HOSTNAME_TO_IID.apply(hostName), lispStateCommand);
+    }
+
     public static <T extends DataObject> boolean executeDeleteCommand(InstanceIdentifier<Node> nodeIid,
             AbstractLispCommand<T> lispStateCommand) {
         lispStateCommand.setOperation(General.Operations.DELETE);