Merge "Added Mutate operation" into topic/schema
authorMadhu Venugopal <mavenugo@gmail.com>
Tue, 27 May 2014 21:00:01 +0000 (21:00 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 27 May 2014 21:00:01 +0000 (21:00 +0000)
1  2 
library/src/main/java/org/opendaylight/ovsdb/lib/operations/Operations.java
library/src/test/java/org/opendaylight/ovsdb/lib/OvsDBClientTestIT.java

index 912ff67caa5d3c961cadc8bbfab0c0d08533ecdd,b86af3406e0d0e1d12b4319de1a571d890a5a420..c88b0adecbdc5649d28bbe234e1ab4381aa5f50c
@@@ -41,15 -45,4 +45,15 @@@ public class Operations 
          return new Select<>(schema);
      }
  
 -}
 +    public Comment comment(String comment) {
 +        return new Comment(comment);
 +    }
 +
 +    /*
 +     * Could not use Java keyword "assert" which clashes with the ovsdb json-rpc method.
 +     * using assertion instead.
 +     */
 +    public Assert assertion(String lock) {
 +        return new Assert(lock);
 +    }
- }
++}
index c09afc1293219323526a7f1142ee278aae44e10d,de49027e4806a8660ed62e8b9c11b2a3106181f5..2a25b22a64f68462590fa7afbbc1ba44380f3283
@@@ -77,8 -77,11 +78,12 @@@ public class OvsDBClientTestIT extends 
                          .column(name)
                          .where(name.opEqual("br-int"))
                          .operation())
+                 .add(op.mutate(bridge)
+                         .addMutation(flood_vlans, Mutator.INSERT, Sets.newHashSet(100, 101, 4001))
+                         .where(name.opEqual("br-int"))
+                         .operation())
                  .add(op.commit(true))
 +                .add(op.comment("Commiting the operation"))
                  .execute();
  
          List<OperationResult> operationResults = results.get();