Skip to content

Commit

Permalink
[ignore] Remove scope input for useg epgs since that functionality ha…
Browse files Browse the repository at this point in the history
…s been deprecated
  • Loading branch information
akinross authored and lhercot committed Feb 29, 2024
1 parent 7efbeb6 commit 8b04016
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions plugins/modules/aci_epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@
- The Block Statement(fv:Crtrn) Precedence to resolve equal matches between micro segmented EPGs.
- The APIC defaults to C(0) when unset during creation.
type: int
scope:
description:
- The scope of the default Block Statement (fv:Crtrn).
- The APIC defaults to C(scope-bd) when unset during creation.
type: str
choices: [ scope-bd, scope-vrf ]
state:
description:
- Use C(present) or C(absent) for adding or removing.
Expand Down Expand Up @@ -384,7 +378,6 @@ def main():
useg=dict(type="str", choices=["yes", "no"]),
match=dict(type="str", choices=["all", "any"]),
precedence=dict(type="int"),
scope=dict(type="str", choices=["scope-bd", "scope-vrf"]),
)

module = AnsibleModule(
Expand Down Expand Up @@ -414,7 +407,6 @@ def main():
useg = module.params.get("useg")
match = module.params.get("match")
precedence = module.params.get("precedence")
scope = module.params.get("scope")

child_configs = [dict(fvRsBd=dict(attributes=dict(tnFvBDName=bd))), dict(fvRsAEPgMonPol=dict(attributes=dict(tnMonEPGPolName=monitoring_policy)))]

Expand Down Expand Up @@ -449,7 +441,7 @@ def main():
if useg is not None and aci.existing and aci.existing[0]["fvAEPg"]["attributes"]["isAttrBasedEPg"] != useg:
module.fail_json(msg="Changing attribute useg on existing EPG is not supported.")
if useg == "yes":
child_configs.append(dict(fvCrtrn=dict(attributes=dict(name="default", match=match, prec=precedence, scope=scope))))
child_configs.append(dict(fvCrtrn=dict(attributes=dict(name="default", match=match, prec=precedence))))

aci.payload(
aci_class="fvAEPg",
Expand Down

0 comments on commit 8b04016

Please sign in to comment.