Skip to content

Commit

Permalink
[ignore] Renamed the attribute name provider_epg_ref to provider_epg …
Browse files Browse the repository at this point in the history
…in the utils mso.py
  • Loading branch information
sajagana authored and lhercot committed Apr 2, 2024
1 parent a0ae530 commit b42633a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion plugins/module_utils/mso.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ def listener_rules_spec():
content_type=dict(type="str", choices=list(LISTENER_CONTENT_TYPE_MAP)),
port=dict(type="int"),
protocol=dict(type="str", choices=LISTENER_PROTOCOLS),
provider_epg_ref=dict(
provider_epg=dict(
type="dict",
options=listener_rules_provider_epg_ref_spec(),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
- The protocol of the rule.
type: str
choices: [ http, https, tcp, udp, tls, inherit ]
provider_epg_ref:
provider_epg:
description:
- The provider epg reference of the rule.
- The provider epg of the rule.
type: dict
suboptions:
schema:
Expand Down Expand Up @@ -343,7 +343,7 @@
action_type: forward
port: 80
protocol: http
provider_epg_ref:
provider_epg:
anp_name: AP1
epg_name: EPG1
health_check:
Expand Down Expand Up @@ -647,13 +647,13 @@ def main():
if listener_protocol in ["tcp", "udp"]:
mso.input_validation("listener_protocol", "tcp/udp", ["health_check"], rule)

provider_epg_ref = rule.get("provider_epg_ref")
if provider_epg_ref:
provider_epg = rule.get("provider_epg")
if provider_epg:
rule_data["providerEpgRef"] = "/schemas/{0}/templates/{1}/anps/{2}/epgs/{3}".format(
provider_epg_ref.get("schema") or schema_id,
provider_epg_ref.get("template_name") or template,
provider_epg_ref.get("anp_name"),
provider_epg_ref.get("epg_name"),
provider_epg.get("schema") or schema_id,
provider_epg.get("template_name") or template,
provider_epg.get("anp_name"),
provider_epg.get("epg_name"),
)

health_check = rule.get("health_check")
Expand Down

0 comments on commit b42633a

Please sign in to comment.