use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexXtremIOMaskingOrchestratorTest 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("X1-SC1:fc1", "50:00:00:00:00:00:00:7E:00");
addPort(context, port, null);
ports.add(port);
port = createFCPort("X1-SC2:fc1", "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 VPlexXtremIOMaskingOrchestratorTest method getNetBPorts.
private static PortAllocationContext getNetBPorts(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "netB";
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:09:73:00:18:95:18");
ports.add(port);
port = createFCPort("X2-SC1:fc2", "50:00:09:73:00:18:95:21");
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 getNet5Ports.
private static PortAllocationContext getNet5Ports(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts) {
String label = "net5";
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-SC1:fc2", "50:00:00:00:00:00:00:8E:00");
ports.add(port);
port = createFCPort("X1-SC2:fc1", "50:00:00:00:00:00:00:9E:00");
ports.add(port);
port = createFCPort("X1-SC2:fc2", "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 getNet4PortsSA.
private static PortAllocationContext getNet4PortsSA(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts, Map<URI, Map<String, List<StoragePort>>> portSwitchMap) {
String label = "net4SA";
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>();
List<StoragePort> switchAPorts = new ArrayList<StoragePort>();
List<StoragePort> switchBPorts = new ArrayList<StoragePort>();
port = createFCPort("X1-SC1:fc2", "50:00:00:00:00:00:00:7F:00");
addPort(context, port, "mds-a");
ports.add(port);
switchAPorts.add(port);
port = createFCPort("X1-SC2:fc2", "50:00:00:00:00:00:00:8F:00");
addPort(context, port, "mds-a");
ports.add(port);
switchAPorts.add(port);
port = createFCPort("X2-SC1:fc2", "50:00:00:00:00:00:00:9F:00");
addPort(context, port, "mds-b");
ports.add(port);
switchBPorts.add(port);
port = createFCPort("X2-SC2:fc2", "50:00:00:00:00:00:00:AF:00");
addPort(context, port, "mds-b");
ports.add(port);
switchBPorts.add(port);
allocatablePorts.put(id, ports);
Map<String, List<StoragePort>> switchMap = new HashMap<String, List<StoragePort>>();
switchMap.put("mds-a", switchAPorts);
switchMap.put("mds-b", switchBPorts);
portSwitchMap.put(id, switchMap);
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class VPlexXtremIOMaskingOrchestratorTest method getNet3PortsSA.
private static PortAllocationContext getNet3PortsSA(Map<URI, NetworkLite> networkMap, Map<URI, List<StoragePort>> allocatablePorts, Map<URI, Map<String, List<StoragePort>>> portSwitchMap) {
String label = "net3SA";
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>();
List<StoragePort> switchAPorts = new ArrayList<StoragePort>();
List<StoragePort> switchBPorts = new ArrayList<StoragePort>();
port = createFCPort("X1-SC1:fc1", "50:00:00:00:00:00:00:7E:00");
addPort(context, port, "mds-a");
ports.add(port);
switchAPorts.add(port);
port = createFCPort("X1-SC2:fc1", "50:00:00:00:00:00:00:8E:00");
addPort(context, port, "mds-a");
ports.add(port);
switchAPorts.add(port);
port = createFCPort("X2-SC1:fc1", "50:00:00:00:00:00:00:9E:00");
addPort(context, port, "mds-b");
ports.add(port);
switchBPorts.add(port);
port = createFCPort("X2-SC2:fc1", "50:00:00:00:00:00:00:AE:00");
addPort(context, port, "mds-b");
ports.add(port);
switchBPorts.add(port);
allocatablePorts.put(id, ports);
Map<String, List<StoragePort>> switchMap = new HashMap<String, List<StoragePort>>();
switchMap.put("mds-a", switchAPorts);
switchMap.put("mds-b", switchBPorts);
portSwitchMap.put(id, switchMap);
return context;
}
Aggregations