VMware: handle pnic in proxyswitch (#42996)
Fixes: #42943 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
86387df8b3
commit
f2640d3394
1 changed files with 3 additions and 3 deletions
|
@ -92,15 +92,15 @@ class HostVmnicMgr(PyVmomi):
|
||||||
host_vmnic_facts['all'] = [pnic.device for pnic in nw_config.pnic]
|
host_vmnic_facts['all'] = [pnic.device for pnic in nw_config.pnic]
|
||||||
|
|
||||||
vswitch_vmnics = []
|
vswitch_vmnics = []
|
||||||
|
proxy_switch_vmnics = []
|
||||||
if nw_config.vswitch:
|
if nw_config.vswitch:
|
||||||
for vswitch in nw_config.vswitch:
|
for vswitch in nw_config.vswitch:
|
||||||
for vnic in vswitch.spec.bridge.nicDevice:
|
for vnic in vswitch.spec.bridge.nicDevice:
|
||||||
vswitch_vmnics.append(vnic)
|
vswitch_vmnics.append(vnic)
|
||||||
|
|
||||||
proxy_switch_vmnics = []
|
if nw_config.proxySwitch:
|
||||||
if nw_config.vswitch:
|
|
||||||
for proxy_config in nw_config.proxySwitch:
|
for proxy_config in nw_config.proxySwitch:
|
||||||
for proxy_nic in proxy_config.spec.bridge.nicDevice:
|
for proxy_nic in proxy_config.spec.backing.pnicSpec:
|
||||||
proxy_switch_vmnics.append(proxy_nic.pnicDevice)
|
proxy_switch_vmnics.append(proxy_nic.pnicDevice)
|
||||||
|
|
||||||
used_vmics = proxy_switch_vmnics + vswitch_vmnics
|
used_vmics = proxy_switch_vmnics + vswitch_vmnics
|
||||||
|
|
Loading…
Reference in a new issue