projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pin flake8 version in tox.ini to 6.1.0
[osm/RO.git]
/
RO-VIM-vmware
/
osm_rovim_vmware
/
vimconn_vmware.py
diff --git
a/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py
b/RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py
index
0a220d6
..
a425228
100644
(file)
--- a/
RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py
+++ b/
RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py
@@
-936,7
+936,8
@@
class vimconnector(vimconn.VimConnector):
def get_network(self, net_id):
"""Method obtains network details of net_id VIM network
def get_network(self, net_id):
"""Method obtains network details of net_id VIM network
- Return a dict with the fields at filter_dict (see get_network_list) plus some VIM specific>}, ...]"""
+ Return a dict with the fields at filter_dict (see get_network_list) plus some VIM specific>}, ...]
+ """
try:
_, vdc = self.get_vdc_details()
vdc_id = vdc.get("id").split(":")[3]
try:
_, vdc = self.get_vdc_details()
vdc_id = vdc.get("id").split(":")[3]
@@
-6337,7
+6338,7
@@
class vimconnector(vimconn.VimConnector):
].spec.ip.ipAddress
for device in vm_obj.config.hardware.device:
].spec.ip.ipAddress
for device in vm_obj.config.hardware.device:
- if
type(device) == vim.vm.device.VirtualPCIPassthrough
:
+ if
device.isinstance(vim.vm.device.VirtualPCIPassthrough)
:
device_details = {
"devide_id": device.backing.id,
"pciSlotNumber": device.slotInfo.pciSlotNumber,
device_details = {
"devide_id": device.backing.id,
"pciSlotNumber": device.slotInfo.pciSlotNumber,