Add traversal spec for datastoreFolder
StoragePods (a.k.a datastore clusters) are located under Datacenter.datastoreFolder, so we need a new traversal spec in order to retrieve them. Change-Id: I899f8f6ef05a94d21d13a55ca0a0f8fbd042a448
This commit is contained in:
parent
3fdf495fe0
commit
c6456c6407
@ -81,6 +81,10 @@ class VimUtilTest(base.TestCase):
|
|||||||
'path': 'networkFolder',
|
'path': 'networkFolder',
|
||||||
'skip': False,
|
'skip': False,
|
||||||
'selectSet': [sel_spec]},
|
'selectSet': [sel_spec]},
|
||||||
|
'dc_to_df': {'type': 'Datacenter',
|
||||||
|
'path': 'datastoreFolder',
|
||||||
|
'skip': False,
|
||||||
|
'selectSet': [sel_spec]},
|
||||||
'h_to_vm': {'type': 'HostSystem',
|
'h_to_vm': {'type': 'HostSystem',
|
||||||
'path': 'vm',
|
'path': 'vm',
|
||||||
'skip': False,
|
'skip': False,
|
||||||
|
@ -97,6 +97,12 @@ def build_recursive_traversal_spec(client_factory):
|
|||||||
'networkFolder',
|
'networkFolder',
|
||||||
False,
|
False,
|
||||||
[visit_folders_select_spec])
|
[visit_folders_select_spec])
|
||||||
|
dc_to_df = build_traversal_spec(client_factory,
|
||||||
|
'dc_to_df',
|
||||||
|
'Datacenter',
|
||||||
|
'datastoreFolder',
|
||||||
|
False,
|
||||||
|
[visit_folders_select_spec])
|
||||||
|
|
||||||
# Next hop from HostSystem
|
# Next hop from HostSystem
|
||||||
h_to_vm = build_traversal_spec(client_factory,
|
h_to_vm = build_traversal_spec(client_factory,
|
||||||
@ -179,6 +185,7 @@ def build_recursive_traversal_spec(client_factory):
|
|||||||
dc_to_hf,
|
dc_to_hf,
|
||||||
dc_to_vmf,
|
dc_to_vmf,
|
||||||
dc_to_netf,
|
dc_to_netf,
|
||||||
|
dc_to_df,
|
||||||
cr_to_ds,
|
cr_to_ds,
|
||||||
cr_to_h,
|
cr_to_h,
|
||||||
cr_to_rp,
|
cr_to_rp,
|
||||||
|
Loading…
Reference in New Issue
Block a user