use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class StoragePortsAllocatorTest method createTzone2FC.
protected static PortAllocationContext createTzone2FC() {
NetworkLite tz = new NetworkLite("Tzone2");
PortAllocationContext context = new PortAllocationContext(tz, "test");
StoragePort port;
port = createFCPort("FA-7E:2", "50:00:00:00:00:01:00:02");
addPort(context, port, "mds-b");
port = createFCPort("FA-7E:3", "50:00:00:00:00:01:00:03");
addPort(context, port, "mds-b");
port = createFCPort("FA-8E:2", "50:00:00:00:00:01:01:02");
addPort(context, port, "mds-b");
port = createFCPort("FA-8E:3", "50:00:00:00:00:01:01:03");
addPort(context, port, "mds-b");
port = createFCPort("FA-9E:2", "50:00:00:00:00:01:02:02");
addPort(context, port, "mds-b");
port = createFCPort("FA-9E:3", "50:00:00:00:00:01:02:03");
addPort(context, port, "mds-b");
port = createFCPort("FA-10E:2", "50:00:00:00:00:01:03:02");
addPort(context, port, "mds-b");
port = createFCPort("FA-10E:3", "50:00:00:00:00:01:03:03");
addPort(context, port, "mds-b");
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class StoragePortsAllocatorTest method createVNX2director4portIP.
protected static PortAllocationContext createVNX2director4portIP() {
NetworkLite tz = new NetworkLite("TzoneIP1");
PortAllocationContext context = new PortAllocationContext(tz, "test");
StoragePort port;
port = createIPPort("SP_A:0", "iqn.1992-04.com.emc:cx.apm00121500018.a0");
addPort(context, port, null);
port = createIPPort("SP_A:1", "iqn.1992-04.com.emc:cx.apm00121500018.a1");
addPort(context, port, null);
port = createIPPort("SP_A:2", "iqn.1992-04.com.emc:cx.apm00121500018.a2");
addPort(context, port, null);
port = createIPPort("SP_A:3", "iqn.1992-04.com.emc:cx.apm00121500018.a3");
addPort(context, port, null);
port = createIPPort("SP_B:0", "iqn.1992-04.com.emc:cx.apm00121500018.b0");
addPort(context, port, null);
port = createIPPort("SP_B:1", "iqn.1992-04.com.emc:cx.apm00121500018.b1");
addPort(context, port, null);
port = createIPPort("SP_B:2", "iqn.1992-04.com.emc:cx.apm00121500018.b2");
addPort(context, port, null);
port = createIPPort("SP_B:3", "iqn.1992-04.com.emc:cx.apm00121500018.b3");
addPort(context, port, null);
port = createIPPort("SP_C:0", "iqn.1992-04.com.emc:cx.apm00121500018.c0");
addPort(context, port, null);
port = createIPPort("SP_C:1", "iqn.1992-04.com.emc:cx.apm00121500018.c1");
addPort(context, port, null);
port = createIPPort("SP_C:2", "iqn.1992-04.com.emc:cx.apm00121500018.c2");
addPort(context, port, null);
port = createIPPort("SP_C:3", "iqn.1992-04.com.emc:cx.apm00121500018.c3");
addPort(context, port, null);
port = createIPPort("SP_D:0", "iqn.1992-04.com.emc:cx.apm00121500018.d0");
addPort(context, port, null);
port = createIPPort("SP_D:1", "iqn.1992-04.com.emc:cx.apm00121500018.d1");
addPort(context, port, null);
port = createIPPort("SP_D:2", "iqn.1992-04.com.emc:cx.apm00121500018.d2");
addPort(context, port, null);
port = createIPPort("SP_D:3", "iqn.1992-04.com.emc:cx.apm00121500018.d3");
addPort(context, port, null);
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class StoragePortsAllocatorTest method createVplex1engine4portFC.
protected static PortAllocationContext createVplex1engine4portFC() {
NetworkLite tz = new NetworkLite("TzoneVplexFC1");
PortAllocationContext context = new PortAllocationContext(tz, "test");
StoragePort port;
// Cluster 1 Engine 1 - Ports
port = createVplexFCPort("A0-FC00", "50:00:14:42:60:01:01:00", "director-1-1-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC01", "50:00:14:42:60:01:01:01", "director-1-1-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("A0-FC03", "50:00:14:42:60:01:01:03", "director-1-1-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC04", "50:00:14:42:60:01:01:04", "director-1-1-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC00", "50:00:14:42:70:01:01:00", "director-1-1-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC01", "50:00:14:42:70:01:01:01", "director-1-1-B");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC03", "50:00:14:42:70:01:01:03", "director-1-1-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC04", "50:00:14:42:70:01:01:04", "director-1-1-B");
addPort(context, port, "mds-b");
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class StoragePortsAllocatorTest method createEmptyTzone.
protected static PortAllocationContext createEmptyTzone() {
NetworkLite tz = new NetworkLite("EmptyNetwork");
PortAllocationContext context = new PortAllocationContext(tz, "test");
return context;
}
use of com.emc.storageos.volumecontroller.placement.StoragePortsAllocator.PortAllocationContext in project coprhd-controller by CoprHD.
the class StoragePortsAllocatorTest method createVplex4engine4portFC.
protected static PortAllocationContext createVplex4engine4portFC() {
NetworkLite tz = new NetworkLite("TzoneVplexFC3");
PortAllocationContext context = new PortAllocationContext(tz, "test");
StoragePort port;
// Cluster 1 Engine 1 - Ports
port = createVplexFCPort("A0-FC00", "50:00:14:42:60:01:01:00", "director-1-1-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC01", "50:00:14:42:60:01:01:01", "director-1-1-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("A0-FC03", "50:00:14:42:60:01:01:03", "director-1-1-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC04", "50:00:14:42:60:01:01:04", "director-1-1-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC00", "50:00:14:42:70:01:01:00", "director-1-1-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC01", "50:00:14:42:70:01:01:01", "director-1-1-B");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC03", "50:00:14:42:70:01:01:03", "director-1-1-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC04", "50:00:14:42:70:01:01:04", "director-1-1-B");
addPort(context, port, "mds-b");
// Cluster 1 Engine 2 - Ports
port = createVplexFCPort("A0-FC00", "50:00:14:42:60:01:02:00", "director-1-2-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC01", "50:00:14:42:60:01:02:01", "director-1-2-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("A0-FC03", "50:00:14:42:60:01:02:03", "director-1-2-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC04", "50:00:14:42:60:01:02:04", "director-1-2-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC00", "50:00:14:42:70:01:02:00", "director-1-2-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC01", "50:00:14:42:70:01:02:01", "director-1-2-B");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC03", "50:00:14:42:70:01:02:03", "director-1-2-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC04", "50:00:14:42:70:01:02:04", "director-1-2-B");
addPort(context, port, "mds-b");
// Cluster 2 Engine 1 - Ports
port = createVplexFCPort("A0-FC00", "50:00:14:42:60:02:01:00", "director-2-1-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC01", "50:00:14:42:60:02:01:01", "director-2-1-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("A0-FC03", "50:00:14:42:60:02:01:03", "director-2-1-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC04", "50:00:14:42:60:02:01:04", "director-2-1-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC00", "50:00:14:42:70:02:01:00", "director-2-1-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC01", "50:00:14:42:70:02:01:01", "director-2-1-B");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC03", "50:00:14:42:70:02:01:03", "director-2-1-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC04", "50:00:14:42:70:02:01:04", "director-2-1-B");
addPort(context, port, "mds-b");
// Cluster 2 Engine 2 - Ports
port = createVplexFCPort("A0-FC00", "50:00:14:42:60:02:02:00", "director-2-2-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC01", "50:00:14:42:60:02:02:01", "director-2-2-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("A0-FC03", "50:00:14:42:60:02:02:03", "director-2-2-A");
addPort(context, port, "mds-a");
port = createVplexFCPort("A0-FC04", "50:00:14:42:60:02:02:04", "director-2-2-A");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC00", "50:00:14:42:70:02:02:00", "director-2-2-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC01", "50:00:14:42:70:02:02:01", "director-2-2-B");
addPort(context, port, "mds-b");
port = createVplexFCPort("B0-FC03", "50:00:14:42:70:02:02:03", "director-2-2-B");
addPort(context, port, "mds-a");
port = createVplexFCPort("B0-FC04", "50:00:14:42:70:02:02:04", "director-2-2-B");
addPort(context, port, "mds-b");
return context;
}
Aggregations