import org.opendaylight.ovsdb.lib.notation.Row;
import org.opendaylight.ovsdb.lib.notation.UUID;
import org.opendaylight.ovsdb.openstack.netvirt.NodeConfiguration;
+import org.opendaylight.ovsdb.openstack.netvirt.api.MdsalConsumer;
import org.opendaylight.ovsdb.openstack.netvirt.api.TenantNetworkManager;
import org.opendaylight.ovsdb.openstack.netvirt.api.VlanConfigurationCache;
-import org.opendaylight.ovsdb.plugin.api.OvsdbConfigurationService;
import org.opendaylight.ovsdb.schema.openvswitch.Interface;
import org.opendaylight.ovsdb.schema.openvswitch.OpenVSwitch;
import org.opendaylight.ovsdb.schema.openvswitch.Port;
private Map<String, NodeConfiguration> configurationCache = Maps.newConcurrentMap();
private volatile TenantNetworkManager tenantNetworkManager;
- private volatile OvsdbConfigurationService ovsdbConfigurationService;
+ //private volatile OvsdbConfigurationService ovsdbConfigurationService;
+ private volatile MdsalConsumer mdsalConsumer; // TODO SB_MIGRATION
private NodeConfiguration getNodeConfiguration(Node node){
String nodeUuid = getNodeUUID(node);
}
private String getNodeUUID(Node node) {
+ String nodeUuid = mdsalConsumer.getNodeUUID(node);
+ /* TODO SB_MIGRATION
Preconditions.checkNotNull(ovsdbConfigurationService);
String nodeUuid = new String();
+
try {
Map<String, Row> ovsTable = ovsdbConfigurationService.getRows(node, ovsdbConfigurationService.getTableName(node, OpenVSwitch.class));
nodeUuid = (String)ovsTable.keySet().toArray()[0];
}
catch (Exception e) {
logger.error("Unable to get the Open_vSwitch table for Node {}", node, e);
- }
+ }*/
return nodeUuid;
}
private void initializeNodeConfiguration(String nodeUuid, Node node) {
-
+ /* TODO SB_MIGRATION
NodeConfiguration nodeConfiguration = new NodeConfiguration();
Integer vlan;
String networkId = null;
}
catch (Exception e) {
logger.debug("Error getting Port table for Node {}", node, e);
- }
+ }*/
}
/*