Aci build url (#33017)

* ACI Buid URL: Refactor how ACI modules dynamically build proper URL.

* Remove MIM URl from update

* fix missing comma
This commit is contained in:
Jacob McGill 2017-11-22 10:07:39 -05:00 committed by John R Barker
commit 429af90027
32 changed files with 732 additions and 185 deletions

View file

@ -108,7 +108,14 @@ def main():
state = module.params['state']
aci = ACIModule(module)
aci.construct_url(root_class="aep")
aci.construct_url(
root_class=dict(
aci_class='infraAttEntityP',
aci_rn='infra/attentp-{}'.format(aep),
filter_target='(infraAttEntityP.name, "{}")'.format(aep),
module_object=aep,
),
)
aci.get_existing()
if state == 'present':