/*
- * Copyright (C) 2013 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
*/
package org.opendaylight.ovsdb.lib.operations;
-public class AbortOperation extends Operation {
+public class Abort extends Operation {
+ public static final String ABORT = "abort";
+ public Abort() {
+ super(null, ABORT);
+ }
}
public Commit commit(Boolean durable) {
return new Commit(durable);
}
+
+ public Abort abort() {
+ return new Abort();
+ }
}
\ No newline at end of file
Assert.assertFalse(operationResults.isEmpty());
System.out.println("Delete operation results = " + operationResults);
+ /*
+ * Adding a separate Abort operation in a transaction. Lets not mix this with other
+ * valid transactions as above.
+ */
+ results = ovs.transactBuilder()
+ .add(op.delete(bridge)
+ .where(name.opEqual("br-int"))
+ .operation())
+ .add(op.abort())
+ .execute();
+
+ operationResults = results.get();
+ Assert.assertFalse(operationResults.isEmpty());
+ System.out.println("Abort operation results = " + operationResults);
+
}
@Test