Skip to content

Commit

Permalink
Linting, sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Pozo committed Oct 17, 2024
1 parent 38e347c commit 8539617
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 7 additions & 9 deletions plugins/modules/aci_oob_epg_to_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def main():
argument_spec = aci_argument_spec()
argument_spec.update(aci_annotation_spec())
argument_spec.update(
epg=dict(type='str', required=True),
contract=dict(type='str'),
epg=dict(type="str", required=True),
contract=dict(type="str"),
state=dict(type="str", default="present", choices=["absent", "present", "query"]),
)

Expand All @@ -201,9 +201,9 @@ def main():
],
)

epg = module.params['epg']
contract = module.params['contract']
state = module.params['state']
epg = module.params["epg"]
contract = module.params["contract"]
state = module.params["state"]

ctProv_mo = "uni/tn-mgmt/oobbrc-{0}".format(contract)

Expand Down Expand Up @@ -238,10 +238,8 @@ def main():
aci.get_existing()

if state == "present":
aci.payload(
aci_class="mgmtRsOoBProv",
class_config=dict(tnVzOOBBrCPName=contract)
)
aci.payload(aci_class="mgmtRsOoBProv", class_config=dict(tnVzOOBBrCPName=contract))

aci.get_diff(aci_class="mgmtRsOoBProv")

aci.post_config()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@
- cm_query_contract == nm_query_contract
- nm_query_contract.current.0.mgmtRsOoBProv.attributes.dn == 'uni/tn-mgmt/mgmtp-default/oob-default/rsooBProv-default'
- nm_query_contract.current.0.mgmtRsOoBProv.attributes.tCl == 'vzOOBBrCP'
# - nm_query_contract.current.0.mgmtRsOoBProv.attributes.tDn == 'uni/tn-common/oobbrc-default'


# REMOVE CONTRACT
- name: Remove provided contract to mgmt:OoB (check_mode)
Expand Down

0 comments on commit 8539617

Please sign in to comment.