use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexVnxMaskingOrchestratorTest method getNet4Ports.
private static PortAllocationContext getNet4Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net4";
URI id = URI.create(label);
NetworkLite net = new NetworkLite(id, label);
networkMap.put(id, net);
PortAllocationContext context = new PortAllocationContext(net, label);
StoragePort port = null;
List<StoragePort> ports = new ArrayList<StoragePort>();
port = createFCPort("SP_A:2", "50:00:00:00:00:00:00:7F:00");
ports.add(port);
port = createFCPort("SP_B:2", "50:00:00:00:00:00:00:8F:00");
ports.add(port);
port = createFCPort("SP_A:4", "50:00:00:00:00:00:00:9F:00");
ports.add(port);
port = createFCPort("SP_B:4", "50:00:00:00:00:00:00:AF:00");
ports.add(port);
port = createFCPort("SP_A:6", "50:00:00:00:00:00:00:72:00");
ports.add(port);
port = createFCPort("SP_B:6", "50:00:00:00:00:00:00:82:00");
ports.add(port);
port = createFCPort("SP_B:8", "50:00:00:00:00:00:00:92:00");
ports.add(port);
allocatablePorts.put(id, ports);
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexXtremIOMaskingOrchestratorTest method getNet7Ports.
private static PortAllocationContext getNet7Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net7";
URI id = URI.create(label);
NetworkLite net = new NetworkLite(id, label);
networkMap.put(id, net);
PortAllocationContext context = new PortAllocationContext(net, label);
StoragePort port = null;
List<StoragePort> ports = new ArrayList<StoragePort>();
port = createFCPort("X1-SC1:fc1", "50:00:00:00:00:00:00:1E:00");
ports.add(port);
port = createFCPort("X1-SC2:fc1", "50:00:00:00:00:00:00:2E:00");
ports.add(port);
port = createFCPort("X2-SC1:fc1", "50:00:00:00:00:00:00:3E:00");
ports.add(port);
port = createFCPort("X2-SC2:fc1", "50:00:00:00:00:00:00:4E:00");
ports.add(port);
port = createFCPort("X3-SC1:fc1", "50:00:00:00:00:00:00:5E:00");
ports.add(port);
port = createFCPort("X3-SC2:fc1", "50:00:00:00:00:00:00:6E:00");
ports.add(port);
port = createFCPort("X4-SC1:fc1", "50:00:00:00:00:00:00:7E:00");
ports.add(port);
port = createFCPort("X4-SC2:fc1", "50:00:00:00:00:00:00:8E:00");
ports.add(port);
allocatablePorts.put(id, ports);
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexXtremIOMaskingOrchestratorTest method getNet3Ports.
private static PortAllocationContext getNet3Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net3";
URI id = URI.create(label);
NetworkLite net = new NetworkLite(id, label);
networkMap.put(id, net);
PortAllocationContext context = new PortAllocationContext(net, label);
StoragePort port = null;
List<StoragePort> ports = new ArrayList<StoragePort>();
port = createFCPort("X1-SC1:fc1", "50:00:00:00:00:00:00:7E:00");
ports.add(port);
port = createFCPort("X1-SC2:fc1", "50:00:00:00:00:00:00:8E:00");
ports.add(port);
port = createFCPort("X2-SC1:fc1", "50:00:00:00:00:00:00:9E:00");
ports.add(port);
port = createFCPort("X2-SC2:fc1", "50:00:00:00:00:00:00:AE:00");
ports.add(port);
allocatablePorts.put(id, ports);
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexXtremIOMaskingOrchestratorTest method getNetAPorts.
private static PortAllocationContext getNetAPorts(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "netA";
URI id = URI.create(label);
NetworkLite net = new NetworkLite(id, label);
networkMap.put(id, net);
PortAllocationContext context = new PortAllocationContext(net, label);
StoragePort port = null;
List<StoragePort> ports = new ArrayList<StoragePort>();
port = createFCPort("X1-SC1:fc1", "50:00:09:73:00:18:95:19");
ports.add(port);
port = createFCPort("X1-SC2:fc1", "50:00:09:73:00:18:95:1C");
ports.add(port);
port = createFCPort("X2-SC1:fc1", "50:00:09:73:00:18:95:1D");
ports.add(port);
port = createFCPort("X2-SC2:fc1", "50:00:09:73:00:18:95:5C");
ports.add(port);
allocatablePorts.put(id, ports);
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexXtremIOMaskingOrchestratorTest method getNet4Ports.
private static PortAllocationContext getNet4Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net4";
URI id = URI.create(label);
NetworkLite net = new NetworkLite(id, label);
networkMap.put(id, net);
PortAllocationContext context = new PortAllocationContext(net, label);
StoragePort port = null;
List<StoragePort> ports = new ArrayList<StoragePort>();
port = createFCPort("X1-SC1:fc2", "50:00:00:00:00:00:00:7F:00");
ports.add(port);
port = createFCPort("X1-SC2:fc2", "50:00:00:00:00:00:00:8F:00");
ports.add(port);
port = createFCPort("X2-SC1:fc2", "50:00:00:00:00:00:00:9F:00");
ports.add(port);
port = createFCPort("X2-SC2:fc2", "50:00:00:00:00:00:00:AF:00");
ports.add(port);
allocatablePorts.put(id, ports);
return context;
}
Aggregations