<artifactId>openflowplugin</artifactId>
<version>0.0.3-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.openflowplugin</groupId>
+ <artifactId>openflowplugin-api</artifactId>
+ <version>0.0.3-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.opendaylight.openflowplugin</groupId>
<artifactId>openflowplugin-controller-config</artifactId>
.setRequired(true));
c.add(createServiceDependency()
.setService(OVSDBConfigService.class)
- .setCallbacks("setConfigService", "unsetConfigService")
+ .setCallbacks("setConfigurationService", "unsetConfigurationService")
.setRequired(false));
-
}
if (imp.equals(NodeFactory.class)) {
}
}
- private void handleOpenVSwitchSpecialCase(Node node, String databaseName, String tableName, UUID uuid) {
+ private void handleOpenVSwitchSpecialCase(final Node node, final String databaseName, final String tableName, final UUID uuid) {
if (OvsVswitchdSchemaConstants.shouldConfigureController(databaseName, tableName)) {
- try {
- if (configurationService != null) configurationService.setOFController(node, uuid.toString());
- } catch (InterruptedException | ExecutionException e) {
- e.printStackTrace();
- }
+ Runnable updateControllerRunnable = new Runnable() {
+ @Override
+ public void run() {
+ try {
+ if (configurationService != null) configurationService.setOFController(node, uuid.toString());
+ } catch (InterruptedException | ExecutionException e) {
+ e.printStackTrace();
+ }
+ }
+ };
+ executor.execute(updateControllerRunnable);
}
}
Collection<Column> columns = row.getColumns();
System.out.print("\t\t"+uuid+ "==");
for (Column column : columns) {
- if (column.getData() != null) System.out.print(column.getSchema().getName()+" : "+ column.getData());
+ if (column.getData() != null) System.out.print(column.getSchema().getName()+" : "+ column.getData()+" ");
}
System.out.println("");
}