@stordata/vsphere-soapify
Version:
A NodeJS abstraction layer for the vSphere SOAP API
1,353 lines (1,342 loc) • 748 kB
JavaScript
'use strict';
const { expect } = require('chai'),
MockDate = require('mockdate'),
{ HostSystem, VirtualMachine } = require('./sdk').managed,
Client = require('./client');
describe('The Client class', function() {
let client;
before(function() {
MockDate.set('2019-09-01T12:34:56.789Z');
});
after(function() {
MockDate.reset();
});
beforeEach(function() {
client = new Client('https://url/sdk');
});
describe('The getHosts method', function() {
it('should return an array of HostSystem instances, when queried with a set of properties', function() {
this.mockSoapOperation('5.5', 'RetrieveServiceContent');
this.mockSoapOperation('5.5', 'getHosts/partial/CreateContainerView');
this.mockSoapOperation('5.5', 'getHosts/partial/RetrievePropertiesEx');
return client.getHosts([
'name',
'hardware.smcPresent',
'licensableResource',
'runtime.bootTime',
'runtime.connectionState',
'runtime.dasHostState',
'runtime.inMaintenanceMode',
'runtime.powerState',
'runtime.standbyMode',
'summary.config.product',
'summary.config.port',
'summary.config.vmotionEnabled',
'summary.config.faultToleranceEnabled',
'summary.currentEVCModeKey',
'summary.hardware',
'summary.managementServerIp',
'summary.maxEVCModeKey',
'summary.overallStatus',
'summary.rebootRequired',
'summary.quickStats',
'datastore'
]).then((hosts) => {
expect(hosts).to.deep.equal([
{
datastore: [
{
ref: 'datastore-29'
}, {
ref: 'datastore-30'
}
],
hardware: {
smcPresent: false
},
licensableResource: {
resource: {
numCpuCores: 40,
numCpuPackages: 4,
numVmsStarted: 1
}
},
name: 'aziliz.stordata.fr',
ref: 'host-67',
runtime: {
bootTime: new Date('2019-01-24T11:12:33.617Z'),
connectionState: 'connected',
dasHostState: {
state: 'connectedToMaster'
},
inMaintenanceMode: false,
powerState: 'poweredOn',
standbyMode: 'none'
},
summary: {
config: {
faultToleranceEnabled: false,
port: 443,
product: {
apiType: 'HostAgent',
apiVersion: '6.7.1',
build: '10302608',
fullName: 'VMware ESXi 6.7.0 build-10302608',
licenseProductName: 'VMware ESX Server',
licenseProductVersion: '6.0',
localeBuild: '000',
localeVersion: 'INTL',
name: 'VMware ESXi',
osType: 'vmnix-x86',
productLineId: 'embeddedEsx',
vendor: 'VMware, Inc.',
version: '6.7.0'
},
vmotionEnabled: true
},
hardware: {
cpuMhz: 2200,
cpuModel: 'Intel(R) Xeon(R) CPU E5-4640 v2 @ 2.20GHz',
memorySize: 274830041088,
model: 'PowerEdge R820',
numCpuCores: 40,
numCpuPkgs: 4,
numCpuThreads: 80,
numHBAs: 5,
numNics: 8,
uuid: '4c4c4544-0036-3910-8050-b9c04f323132',
vendor: 'Dell Inc.'
},
managementServerIp: '10.78.7.214',
maxEVCModeKey: 'intel-ivybridge',
overallStatus: 'red',
quickStats: {
distributedCpuFairness: 10000,
distributedMemoryFairness: 1770,
overallCpuUsage: 2984,
overallMemoryUsage: 44309,
uptime: 2409110
},
rebootRequired: false
}
},
{
hardware: {
smcPresent: false
},
licensableResource: {
resource: {
numCpuCores: 40,
numCpuPackages: 4,
numVmsStarted: 0
}
},
name: 'tumet.stordata.fr',
ref: 'host-72',
runtime: {
bootTime: new Date('2019-01-24T11:14:28.460Z'),
connectionState: 'connected',
dasHostState: {
state: 'master'
},
inMaintenanceMode: false,
powerState: 'poweredOn',
standbyMode: 'none'
},
summary: {
config: {
faultToleranceEnabled: false,
port: 443,
product: {
apiType: 'HostAgent',
apiVersion: '6.7.1',
build: '10302608',
fullName: 'VMware ESXi 6.7.0 build-10302608',
licenseProductName: 'VMware ESX Server',
licenseProductVersion: '6.0',
localeBuild: '000',
localeVersion: 'INTL',
name: 'VMware ESXi',
osType: 'vmnix-x86',
productLineId: 'embeddedEsx',
vendor: 'VMware, Inc.',
version: '6.7.0'
},
vmotionEnabled: true
},
hardware: {
cpuMhz: 2200,
cpuModel: 'Intel(R) Xeon(R) CPU E5-4640 v2 @ 2.20GHz',
memorySize: 274830041088,
model: 'PowerEdge R820',
numCpuCores: 40,
numCpuPkgs: 4,
numCpuThreads: 80,
numHBAs: 5,
numNics: 8,
uuid: '4c4c4544-0036-3910-8050-c7c04f323132',
vendor: 'Dell Inc.'
},
managementServerIp: '10.78.7.214',
maxEVCModeKey: 'intel-ivybridge',
overallStatus: 'red',
quickStats: {
distributedCpuFairness: 10000,
distributedMemoryFairness: 4074,
overallCpuUsage: 462,
overallMemoryUsage: 20565,
uptime: 2408983
},
rebootRequired: false
}
}
]);
});
});
it('should return an array of HostSystem instances with full supported properties', function() {
this.mockSoapOperation('5.5', 'RetrieveServiceContent');
this.mockSoapOperation('5.5', 'getHosts/full/CreateContainerView');
this.mockSoapOperation('5.5', 'getHosts/full/RetrievePropertiesEx');
return client.getHosts().then((hosts) => {
expect(hosts).to.deep.equal([
{
alarmActionsEnabled: true,
config: {
fileSystemVolume: {
mountInfo: [
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/60e41bdf-d3b09ff8-548d-0025b501a004'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 107105746944,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f2f',
partition: 1
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'STOR-PRO-DSLOGS',
ssd: true,
type: 'VMFS',
uuid: '60e41bdf-d3b09ff8-548d-0025b501a004',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/60e45926-8dbddbe6-ccd9-0025b501a004'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 4397778075648,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f61',
partition: 1
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'STOR-PRO-DS01',
ssd: true,
type: 'VMFS',
uuid: '60e45926-8dbddbe6-ccd9-0025b501a004',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/60e45994-249a53e0-ab06-0025b501a004'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 4397778075648,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f63',
partition: 1
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'STOR-PRO-DS03',
ssd: true,
type: 'VMFS',
uuid: '60e45994-249a53e0-ab06-0025b501a004',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/60e459e8-d65928b2-f82b-0025b501a004'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 4397778075648,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f64',
partition: 1
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'STOR-PRO-DS04',
ssd: true,
type: 'VMFS',
uuid: '60e459e8-d65928b2-f82b-0025b501a004',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/60e459fe-71c9c5fa-c12d-0025b501a004'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 4397778075648,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f62',
partition: 1
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'STOR-PRO-DS02',
ssd: true,
type: 'VMFS',
uuid: '60e459fe-71c9c5fa-c12d-0025b501a004',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/6140d672-1ddbe2ac-bc17-0025b501a005'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 1610344300544,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f66',
partition: 1
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'STOR-PRO-DSSSD',
ssd: true,
type: 'VMFS',
uuid: '6140d672-1ddbe2ac-bc17-0025b501a005',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/60bf68d0-7b29668c-dd38-0025b501a004'
},
vStorageSupport: 'vStorageSupported',
volume: {
blockSizeMb: 1,
capacity: 4026531840,
extent: [
{
diskName: 'naa.600a098038314647492452446a6c2f4f',
partition: 7
}
],
local: false,
majorVersion: 6,
maxBlocks: 63963136,
name: 'OSDATA-60bf68d0-7b29668c-dd38-0025b501a004',
ssd: true,
type: 'OTHER',
uuid: '60bf68d0-7b29668c-dd38-0025b501a004',
version: '6.82',
vmfsUpgradable: false
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/d090baf9-62dcfd73'
},
vStorageSupport: 'vStorageUnsupported',
volume: {
capacity: 1044536049664,
name: 'STOR_PRO_DS_ISO',
remoteHost: '10.10.1.186',
remotePath: '/STOR_PRO_DS_ISO',
type: 'NFS'
}
},
{
mountInfo: {
accessMode: 'readWrite',
accessible: true,
mounted: true,
path: '/vmfs/volumes/8750440e-a3f9ffdc'
},
vStorageSupport: 'vStorageUnsupported',
volume: {
capacity: 3133608140800,
name: 'Datastore_Migration',
remoteHost: '10.10.1.186',
remotePath: '/STOR_PRO_DSNFS',
type: 'NFS'
}
},
{
mountInfo: {
accessMode: 'readOnly',
accessible: true,
mounted: true,
path: '/vmfs/volumes/21275ff8-a1456722-eeb4-2a12b1fe997d'
},
volume: {
capacity: 524009472,
name: 'BOOTBANK1',
type: 'OTHER'
}
},
{
mountInfo: {
accessMode: 'readOnly',
accessible: true,
mounted: true,
path: '/vmfs/volumes/7ffef90d-464c05ac-608d-0afc0d8caa03'
},
volume: {
capacity: 524009472,
name: 'BOOTBANK2',
type: 'OTHER'
}
}
],
volumeTypeList: [
'VMFS',
'NFS',
'NFS41',
'vsan',
'VVOL',
'VFFS',
'OTHER',
'PMEM'
]
},
multipathState: {
path: [
{
name: 'vmhba64:C0:T0:L0',
pathState: 'active'
},
{
name: 'vmhba64:C0:T0:L100',
pathState: 'active'
},
{
name: 'vmhba64:C0:T0:L11',
pathState: 'active'
},
{
name: 'vmhba64:C0:T0:L12',
pathState: 'active'
},
{
name: 'vmhba64:C0:T0:L13',
pathState: 'active'
},
{
name: 'vmhba64:C0:T0:L14',
pathState: 'active'
},
{
name: 'vmhba64:C0:T0:L20',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L0',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L100',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L11',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L12',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L13',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L14',
pathState: 'active'
},
{
name: 'vmhba64:C1:T0:L20',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L0',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L100',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L11',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L12',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L13',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L14',
pathState: 'active'
},
{
name: 'vmhba64:C2:T0:L20',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L0',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L100',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L11',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L12',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L13',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L14',
pathState: 'active'
},
{
name: 'vmhba64:C3:T0:L20',
pathState: 'active'
}
]
},
network: {
pnic: [
{
device: 'vmnic0',
key: 'key-vim.host.PhysicalNic-vmnic0',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:a0:04'
},
{
device: 'vmnic1',
key: 'key-vim.host.PhysicalNic-vmnic1',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:b0:04'
},
{
device: 'vmnic2',
key: 'key-vim.host.PhysicalNic-vmnic2',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:a2:04'
},
{
device: 'vmnic3',
key: 'key-vim.host.PhysicalNic-vmnic3',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:b3:04'
},
{
device: 'vmnic4',
key: 'key-vim.host.PhysicalNic-vmnic4',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:a4:04'
},
{
device: 'vmnic5',
key: 'key-vim.host.PhysicalNic-vmnic5',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:b5:04'
},
{
device: 'vmnic6',
key: 'key-vim.host.PhysicalNic-vmnic6',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:a6:00'
},
{
device: 'vmnic7',
key: 'key-vim.host.PhysicalNic-vmnic7',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:b7:00'
},
{
device: 'vmnic8',
key: 'key-vim.host.PhysicalNic-vmnic8',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:a8:00'
},
{
device: 'vmnic9',
key: 'key-vim.host.PhysicalNic-vmnic9',
linkSpeed: {
duplex: true,
speedMb: 20000
},
mac: '00:25:b5:01:b9:00'
}
],
portgroup: [
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic6',
'vmnic7'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-iScsiBootPG',
spec: {
name: 'iScsiBootPG',
vlanId: 0,
vswitchName: 'iScsiBootvSwitch'
},
vswitch: 'key-vim.host.VirtualSwitch-iScsiBootvSwitch'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic7'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-iSCSI-B',
spec: {
name: 'iSCSI-B',
vlanId: 0,
vswitchName: 'iScsiBootvSwitch'
},
vswitch: 'key-vim.host.VirtualSwitch-iScsiBootvSwitch'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic6'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-iSCSI-A',
spec: {
name: 'iSCSI-A',
vlanId: 0,
vswitchName: 'iScsiBootvSwitch'
},
vswitch: 'key-vim.host.VirtualSwitch-iScsiBootvSwitch'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic0',
'vmnic1'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-VM Network',
spec: {
name: 'VM Network',
vlanId: 0,
vswitchName: 'vSwitch0'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch0'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic0',
'vmnic1'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN Stordata',
spec: {
name: 'LAN Stordata',
vlanId: 0,
vswitchName: 'vSwitch0'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch0'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic0'
],
standbyNic: [
'vmnic1'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-Management Network',
spec: {
name: 'Management Network',
vlanId: 0,
vswitchName: 'vSwitch0'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch0'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic2',
'vmnic3'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-vMotion-1',
spec: {
name: 'vMotion-1',
vlanId: 0,
vswitchName: 'vSwitch1'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch1'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic3'
],
standbyNic: [
'vmnic2'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-vMotion-B',
spec: {
name: 'vMotion-B',
vlanId: 0,
vswitchName: 'vSwitch1'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch1'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic2'
],
standbyNic: [
'vmnic3'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-vMotion-A',
spec: {
name: 'vMotion-A',
vlanId: 0,
vswitchName: 'vSwitch1'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch1'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-DMZ_CL-BYTEL',
spec: {
name: 'DMZ_CL-BYTEL',
vlanId: 161,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_FORMATION_137',
spec: {
name: 'LAN_FORMATION_137',
vlanId: 137,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_IOT_136',
spec: {
name: 'LAN_IOT_136',
vlanId: 136,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_PRINT_135',
spec: {
name: 'LAN_PRINT_135',
vlanId: 135,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_PSAVV_134',
spec: {
name: 'LAN_PSAVV_134',
vlanId: 134,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_SUPPORT_133',
spec: {
name: 'LAN_SUPPORT_133',
vlanId: 133,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_ADMCOM_132',
spec: {
name: 'LAN_ADMCOM_132',
vlanId: 132,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN_IT_131',
spec: {
name: 'LAN_IT_131',
vlanId: 131,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-DMZ_CSA_IVANTI',
spec: {
name: 'DMZ_CSA_IVANTI',
vlanId: 187,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-WIFI_MOBILE',
spec: {
name: 'WIFI_MOBILE',
vlanId: 122,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-LAN Prod',
spec: {
name: 'LAN Prod',
vlanId: 1000,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-DMZ_IPSEC_CLD',
spec: {
name: 'DMZ_IPSEC_CLD',
vlanId: 160,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-NFS_Stornetapp',
spec: {
name: 'NFS_Stornetapp',
vlanId: 601,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-Prod_Management',
spec: {
name: 'Prod_Management',
vlanId: 150,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
},
{
computedPolicy: {
nicTeaming: {
nicOrder: {
activeNic: [
'vmnic4',
'vmnic5'
]
},
notifySwitches: true,
policy: 'loadbalance_srcid',
rollingOrder: false
}
},
key: 'key-vim.host.PortGroup-DMZ_CL-AG2R',
spec: {
name: 'DMZ_CL-AG2R',
vlanId: 162,
vswitchName: 'vSwitch2'
},
vswitch: 'key-vim.host.VirtualSwitch-vSwitch2'
}
],
vnic: [
{
device: 'vmk0',
key: 'key-vim.host.VirtualNic-vmk0',
port: 'key-vim.host.PortGroup.Port-100663328',
portgroup: 'Management Network'
},
{
device: 'vmk1',
key: 'key-vim.host.VirtualNic-vmk1',
port: 'key-vim.host.PortGroup.Port-67108897',
portgroup: 'iSCSI-A'
},
{
device: 'vmk2',
key: 'key-vim.host.VirtualNic-vmk2',
port: 'key-vim.host.PortGroup.Port-67108898',
portgroup: 'iSCSI-B'
},
{
device: 'vmk3',
key: 'key-vim.host.VirtualNic-vmk3',
port: 'key-vim.host.PortGroup.Port-134217763',
portgroup: 'vMotion-A'
},
{
device: 'vmk4',
key: 'key-vim.host.VirtualNic-vmk4',
port: 'key-vim.host.PortGroup.Port-134217764',
portgroup: 'vMotion-B'
}
]
},
storageDevice: {
hostBusAdapter: [
{
bus: -1,
configuredStaticTarget: [
{
address: '192.168.51.2',
iScsiName: 'iqn.1992-08.com.netapp:sn.96b514a8c2af11eb8b24d039ea28a70b:vs.6',
parent: 'vmhba64',
port: 3260
},
{
address: '192.168.51.1',
iScsiName: 'iqn.1992-08.com.netapp:sn.96b514a8c2af11eb8b24d039ea28a70b:vs.6',
parent: 'vmhba64',
port: 3260
},
{
address: '192.168.52.1',
iScsiName: 'iqn.1992-08.com.netapp:sn.96b514a8c2af11eb8b24d039ea28a70b:vs.6',
parent: 'vmhba64',
port: 3260
},
{
address: '192.168.52.2',
iScsiName: 'iqn.1992-08.com.netapp:sn.96b514a8c2af11eb8b24d039ea28a70b:vs.6',
parent: 'vmhba64',
port: 3260
}
],
device: 'vmhba64',
driver: 'iscsi_vmk',
iScsiAlias: '',
iScsiName: 'iqn.1987-05.com.cisco:esxi0:1',
isSoftwareBased: true,
key: 'key-vim.host.InternetScsiHba-vmhba64',
model: 'iSCSI Software Adapter',
pci: 'N/A',
status: 'online'
}
],
multipathInfo: {
lun: [
{
id: '0200000000600a098038314647492452446a6c2f4f4c554e20432d',
key: 'key-vim.host.MultipathInfo.LogicalUnit-0200000000600a098038314647492452446a6c2f4f4c554e20432d',
lun: 'key-vim.host.ScsiDisk-0200000000600a098038314647492452446a6c2f4f4c554e20432d',
path: [
{
adapter: 'key-vim.host.InternetScsiHba-vmhba64',
isWorkingPath: false,
key: 'key-vim.host.MultipathInfo.Path-vmhba64:C0:T0:L0',
lun: 'key-vim.host.MultipathInfo.LogicalUnit-0200000000600a098038314647492452446a6c2f4f4c554e20432d',
name: 'vmhba64:C0:T0:L0',
pathState: 'standby',
state: 'active',
transport: {
address: [
'192.168.51.2:3260'
],
classes: [
'HostInternetScsiTargetTransport',
'HostTargetTransport'
],
iScsiAlias: '',
iScsiName: 'iqn.1992-08.com.netapp:sn.96b514a8c2af11eb8b24d039ea28a70b:vs.6'
}
},
{
adapter: 'key-vim.host.InternetScsiHba-vmhba64',
isWorkingPath: false,
key: 'key-vim.host.MultipathInfo.Path-vmhba64:C3:T0:L0',
lun: 'key-vim.host.MultipathInfo.LogicalUnit-0200000000600a098038314647492452446a6c2f4f4c554e20432d',
name: 'vmhba64:C3:T0:L0',
pathState: 'standby',
state: 'active',
transport: {
address: [
'192.168.52.2:3260'
],
classes: [
'HostInternetScsiTargetTransport',
'HostTargetTransport'
],
iScsiAlias: '',
iScsiName: 'iqn.1992-08.com.netapp:sn.96b514a8c2af11eb8b24d039ea28a70b:vs.6'
}
},
{
adapter: 'key-vim.host.InternetScsiHba-vmhba64',
isWorkingPath: true,
key: 'key-vim.host.MultipathInfo.Path-vmhba64:C2:T0:L0',
lun: 'key-vim.host.MultipathInfo.LogicalUnit-0200000000600a098038314647492452446a6c2f4f4c554e20432d',
name: 'vmhb