typescript Copy code
export interface GroupHost {
host: string;
ip: string;
iqn: string;
chap: "none" | "one-way" | "mutual";
authKey: string;
images: number;
iscsiGateways: string[];
}
const groupHosts: GroupHost[] = [
{
host: "host1.example.com",
ip: "192.168.1.1",
iqn: "iqn.2023-01.com.example:host1",
chap: "none",
authKey: "authKey1",
images: 10,
iscsiGateways: ["gateway1", "gateway2"]
},
{
host: "host2.example.com",
ip: "192.168.1.2",
iqn: "iqn.2023-01.com.example:host2",
chap: "one-way",
authKey: "authKey2",
images: 5,
iscsiGateways: ["gateway3"]
},
{
host: "host3.example.com",
ip: "192.168.1.3",
iqn: "iqn.2023-01.com.example:host3",
chap: "mutual",
authKey: "authKey3",
images: 0,
iscsiGateways: ["gateway1", "gateway4"]
},
{
host: "host4.example.com",
ip: "192.168.1.4",
iqn: "iqn.2023-01.com.example:host4",
chap: "none",
authKey: "authKey4",
images: 8,
iscsiGateways: []
},
{
host: "host5.example.com",
ip: "192.168.1.5",
iqn: "iqn.2023-01.com.example:host5",
chap: "one-way",
authKey: "authKey5",
images: 15,
iscsiGateways: ["gateway2", "gateway3"]
},
{
host: "host6.example.com",
ip: "192.168.1.6",
iqn: "iqn.2023-01.com.example:host6",
chap: "mutual",
authKey: "authKey6",
images: 20,
iscsiGateways: ["gateway1"]
},
{
host: "host7.example.com",
ip: "192.168.1.7",
iqn: "iqn.2023-01.com.example:host7",
chap: "none",
authKey: "authKey7",
images: 2,
iscsiGateways: ["gateway5", "gateway6"]
},
{
host: "host8.example.com",
ip: "192.168.1.8",
iqn: "iqn.2023-01.com.example:host8",
chap: "one-way",
authKey: "authKey8",
images: 12,
iscsiGateways: []
},
{
host: "host9.example.com",
ip: "192.168.1.9",
iqn: "iqn.2023-01.com.example:host9",
chap: "mutual",
authKey: "authKey9",
images: 3,
iscsiGateways: ["gateway7"]
},
{
host: "host10.example.com",
ip: "192.168.1.10",
iqn: "iqn.2023-01.com.example:host10",
chap: "none",
authKey: "authKey10",
images: 6,
iscsiGateways: ["gateway1", "gateway2", "gateway5"]
}
];