fog-vsphere 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/fog/vsphere/requests/compute/list_networks.rb +10 -1
- data/lib/fog/vsphere/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87c94e63f2cec168825d797d960e7e0ef3adefb02687c4007b56451ae07666e7
|
4
|
+
data.tar.gz: 2ea05f4bf6f0fc3043d7d2f9d6323edbf82a5727c07de80ceefb7177157cf6e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec3396a601b88ac91360e8afd0abfee1396f2c20ce99c78eb26ad8689da89f408f74cd4333d9c1c29642189319eebd4175cfd47a376bac3bd93aafae718ec82e
|
7
|
+
data.tar.gz: 4ceb831473e95b93a2fc8e837e87403b717c4cc91be0d80eed77ab479e37703c2a1a2024ba685744a03014df2cd89b6f9a66eeaf9eead273b47e4e2eedc5754f
|
data/CHANGELOG.md
CHANGED
@@ -27,7 +27,7 @@ module Fog
|
|
27
27
|
if network.kind_of?(RbVmomi::VIM::DistributedVirtualPortgroup)
|
28
28
|
id = network.key
|
29
29
|
virtualswitch = network.config.distributedVirtualSwitch.name
|
30
|
-
vlanid =
|
30
|
+
vlanid = raw_network_vlan(network.config.defaultPortConfig)
|
31
31
|
else
|
32
32
|
id = managed_obj_id(network)
|
33
33
|
virtualswitch = nil
|
@@ -45,6 +45,15 @@ module Fog
|
|
45
45
|
|
46
46
|
private
|
47
47
|
|
48
|
+
def raw_network_vlan(network)
|
49
|
+
case network
|
50
|
+
when RbVmomi::VIM::VMwareDVSPortSetting
|
51
|
+
raw_network_vlan_id(network.vlan)
|
52
|
+
else
|
53
|
+
nil
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
48
57
|
def raw_network_vlan_id(vlan)
|
49
58
|
case vlan
|
50
59
|
when RbVmomi::VIM::VmwareDistributedVirtualSwitchVlanIdSpec
|
data/lib/fog/vsphere/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.R. Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|