use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexHDSMaskingOrchestratorTest method getNet573APorts.
private static PortAllocationContext getNet573APorts(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net573A";
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("FA-7E:1", "50:00:09:73:00:18:95:19");
ports.add(port);
port = createFCPort("FA-8E:0", "50:00:09:73:00:18:95:1C");
ports.add(port);
port = createFCPort("FA-8E:1", "50:00:09:73:00:18:95:1D");
ports.add(port);
port = createFCPort("FA-8F:0", "50:00:09:73:00:18:95:5C");
ports.add(port);
port = createFCPort("FA-8F:1", "50:00:09:73:00:18:95:5D");
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 VPlexHDSMaskingOrchestratorTest 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("FA-7E:0", "50:00:00:00:00:00:00:7E:00");
ports.add(port);
port = createFCPort("FA-8E:0", "50:00:00:00:00:00:00:8E:00");
ports.add(port);
port = createFCPort("FA-9E:0", "50:00:00:00:00:00:00:9E:00");
ports.add(port);
port = createFCPort("FA-10E:0", "50:00:00:00:00:00:00:AE:00");
ports.add(port);
port = createFCPort("FA-7G:0", "50:00:00:00:00:00:00:71:00");
ports.add(port);
port = createFCPort("FA-8G:0", "50:00:00:00:00:00:00:81:00");
ports.add(port);
port = createFCPort("FA-9G:0", "50:00:00:00:00:00:00:91:00");
ports.add(port);
port = createFCPort("FA-10G:0", "50:00:00:00:00:00:00:A1: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 VPlexHDSMaskingOrchestratorTest method getNet1Ports.
private static PortAllocationContext getNet1Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net1";
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("FA-7E:0", "50:00:00:00:00:00:00:7E:00");
addPort(context, port, null);
ports.add(port);
port = createFCPort("FA-7F:0", "50:00:00:00:00:00:00:7F:00");
addPort(context, port, null);
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 VPlexHDSMaskingOrchestratorTest method getNet6Ports.
private static PortAllocationContext getNet6Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net6";
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("FA-6F:0", "50:00:00:00:00:00:00:6F:00");
ports.add(port);
port = createFCPort("FA-7F:0", "50:00:00:00:00:00:00:7F:00");
ports.add(port);
port = createFCPort("FA-8F:0", "50:00:00:00:00:00:00:8F:00");
ports.add(port);
port = createFCPort("FA-9F:0", "50:00:00:00:00:00:00:9F:00");
ports.add(port);
port = createFCPort("FA-10F:0", "50:00:00:00:00:00:00:AF:00");
ports.add(port);
port = createFCPort("FA-11F:0", "50:00:00:00:00:00:00:BF:00");
ports.add(port);
port = createFCPort("FA-6H:0", "50:00:00:00:00:00:00:62:00");
ports.add(port);
port = createFCPort("FA-7H:0", "50:00:00:00:00:00:00:72:00");
ports.add(port);
port = createFCPort("FA-8H:0", "50:00:00:00:00:00:00:82:00");
ports.add(port);
port = createFCPort("FA-9H:0", "50:00:00:00:00:00:00:92:00");
ports.add(port);
port = createFCPort("FA-10H:0", "50:00:00:00:00:00:00:A2:00");
ports.add(port);
// duplicate cpu
port = createFCPort("FA-11G:1", "50:00:00:00:00:00:00:B1:01");
ports.add(port);
port = createFCPort("FA-12H:0", "50:00:00:00:00:00:00:C2: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 VPlexVmaxMaskingOrchestratorTest method getNet0Ports.
private static PortAllocationContext getNet0Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net0";
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("FA-7E:1", "50:00:00:00:00:00:00:7E:01");
addPort(context, port, null);
ports.add(port);
port = createFCPort("FA-7F:1", "50:00:00:00:00:00:00:7F:01");
addPort(context, port, null);
ports.add(port);
allocatablePorts.put(id, ports);
return context;
}
Aggregations