package org.opendaylight.groupbasedpolicy.renderer.ofoverlay;
import com.google.common.base.Optional;
+import com.google.common.base.Preconditions;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
private final ExecutorService executor;
private final InstanceIdentifier<ActionInstance> allActionInstancesIid;
private final ListenerRegistration<?> actionListener;
+ private final SfcProviderRpc sfcProviderRpc;
/*
* local cache of the RSP first hops that we've requested from SFC,
public SfcManager(DataBroker dataBroker,
RpcProviderRegistry rpcRegistry,
ExecutorService executor) {
+ Preconditions.checkNotNull(dataBroker, "Databroker for SfcManager must not be null!");
this.dataBroker = dataBroker;
this.executor = executor;
+ this.sfcProviderRpc = new SfcProviderRpc(dataBroker);
/*
* Use thread-safe type only because we use an executor
*/
.setName(pv.getStringValue());
// TODO: make async
Future<RpcResult<ReadRenderedServicePathFirstHopOutput>> result =
- SfcProviderRpc.getSfcProviderRpc()
- .readRenderedServicePathFirstHop(builder.build());
+ sfcProviderRpc.readRenderedServicePathFirstHop(builder.build());
try {
RpcResult<ReadRenderedServicePathFirstHopOutput> output =
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.mdsal</groupId>
- <artifactId>binding-parent</artifactId>
- <version>0.12.0-SNAPSHOT</version>
- <relativePath/>
+ <groupId>org.opendaylight.groupbasedpolicy</groupId>
+ <artifactId>sxp-integration</artifactId>
+ <version>0.7.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
</parent>
- <groupId>org.opendaylight.groupbasedpolicy</groupId>
<artifactId>ip-sgt-distribution-service</artifactId>
<version>0.7.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<sxp.version>1.6.0-SNAPSHOT</sxp.version>
</properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>mdsal-artifacts</artifactId>
- <version>1.7.0-SNAPSHOT</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.sxp</groupId>
- <artifactId>sxp-core</artifactId>
- <version>${sxp.version}</version>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.sxp</groupId>
- <artifactId>sxp-api</artifactId>
- <version>${sxp.version}</version>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.sxp</groupId>
- <artifactId>sxp-controller</artifactId>
- <version>${sxp.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
<dependencies>
<dependency>
<groupId>org.opendaylight.mdsal.model</groupId>
<artifactId>sxp-core</artifactId>
<version>${sxp.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.sxp</groupId>
+ <artifactId>sxp-controller</artifactId>
+ <version>${sxp.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-broker-impl</artifactId>
- <type>test-jar</type>
- <scope>test</scope>
+ <artifactId>sal-binding-broker-impl</artifactId>
+ <scope>test</scope>
</dependency>
</dependencies>
</project>
<artifactId>slf4j-log4j12</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-broker-impl</artifactId>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<artifactId>powermock-api-mockito</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-broker-impl</artifactId>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
</dependencies>
<!-- project build -->