<dependencies>
<dependency>
- <groupId>org.opendaylight.genius</groupId>
- <artifactId>tools-api</artifactId>
- <version>${project.version}</version>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>odl-mdsal-broker</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.infrautils</groupId>
+ <artifactId>odl-infrautils-metrics</artifactId>
+ <version>1.4.0-SNAPSHOT</version>
+ <type>xml</type>
+ <classifier>features</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.genius</groupId>
- <artifactId>tools-testutils</artifactId>
+ <artifactId>tools-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<type>xml</type>
<classifier>features</classifier>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.genius</groupId>
+ <artifactId>odl-genius-srm</artifactId>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
<dependency>
<groupId>org.opendaylight.infrautils</groupId>
<artifactId>odl-infrautils-diagstatus</artifactId>
<type>xml</type>
<classifier>config</classifier>
</dependency>
- <dependency>
- <groupId>org.opendaylight.genius</groupId>
- <artifactId>srm-impl</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.genius</groupId>
- <artifactId>srm-shell</artifactId>
- <version>${project.version}</version>
- </dependency>
</dependencies>
</project>
<name>ODL :: genius :: ${project.artifactId}</name>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.genius</groupId>
- <artifactId>mdsalutil-api</artifactId>
- <version>${genius.version}</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.genius</groupId>
<artifactId>srm-api</artifactId>
import org.apache.karaf.shell.commands.Option;
import org.apache.karaf.shell.console.OsgiCommandSupport;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
-import org.opendaylight.genius.datastoreutils.SingleTransactionDataBroker;
import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.srm.ops.rev170711.ServiceOps;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
import org.slf4j.Logger;
private static final Logger LOG = LoggerFactory.getLogger(SrmDebugCommand.class);
- private final SingleTransactionDataBroker txDataBroker;
+ private final DataBroker txDataBroker;
public SrmDebugCommand(DataBroker dataBroker) {
- this.txDataBroker = new SingleTransactionDataBroker(dataBroker);
+ this.txDataBroker = dataBroker;
}
@Option(name = "-c", aliases = {"--clear-ops"}, description = "Clear operations DS",
private void clearOpsDs() throws Exception {
InstanceIdentifier<ServiceOps> path = getInstanceIdentifier();
- txDataBroker.syncDelete(LogicalDatastoreType.OPERATIONAL, path);
+ WriteTransaction tx = txDataBroker.newWriteOnlyTransaction();
+ tx.delete(LogicalDatastoreType.OPERATIONAL, path);
+ tx.submit();
}
private static InstanceIdentifier<ServiceOps> getInstanceIdentifier() {
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.infrautils</groupId>
- <artifactId>inject</artifactId>
- <version>${genius.infrautils.version}</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.infrautils</groupId>
<artifactId>metrics-api</artifactId>
<artifactId>infrautils-util</artifactId>
<version>${genius.infrautils.version}</version>
</dependency>
+ <dependency>
+ <groupId>javax.inject</groupId>
+ <artifactId>javax.inject</artifactId>
+ </dependency>
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<artifactId>pax-cdi-api</artifactId>
<optional>true</optional>
</dependency>
-
- <!-- Dependencies with <scope>test -->
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>testutils</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.awaitility</groupId>
- <artifactId>awaitility</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.mdsal</groupId>
- <artifactId>mdsal-binding-test-utils</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.infrautils</groupId>
- <artifactId>infrautils-testutils</artifactId>
- <version>${genius.infrautils.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.google.truth</groupId>
- <artifactId>truth</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava-testlib</artifactId>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-broker-impl</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-broker-impl</artifactId>
- <scope>test</scope>
- <type>test-jar</type>
- </dependency>
</dependencies>
</project>
<groupId>org.opendaylight.infrautils</groupId>
<artifactId>infrautils-testutils</artifactId>
<version>1.4.0-SNAPSHOT</version>
+ <scope>compile</scope>
</dependency>
</dependencies>
</project>