Skip to content

Commit

Permalink
[ignore] Correct mispelling of 'designated_router' attributes in aci_…
Browse files Browse the repository at this point in the history
…interface_policy_pim.
  • Loading branch information
gmicol authored and lhercot committed Jan 23, 2024
1 parent 63dc83b commit a1932a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
32 changes: 16 additions & 16 deletions plugins/modules/aci_interface_policy_pim.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@
type: list
elements: str
choices: [ multicast_domain_boundary, strict_rfc_compliant, passive ]
designed_router_delay:
designated_router_delay:
description:
- The PIM designed router delay.
- The PIM designated router delay.
- Accepted values range between C(1) and C(65535).
- The APIC defaults to C(3) when unset during creation.
type: int
aliases: [ delay ]
designed_router_priority:
designated_router_priority:
description:
- The PIM designed router priority.
- The PIM designated router priority.
- Accepted values range between C(1) and C(4294967295).
- The APIC defaults to C(1) when unset during creation.
type: int
Expand Down Expand Up @@ -141,8 +141,8 @@
tenant: production
pim: my_pim_policy
control_state: [split-horizon, nh-self]
designed_router_delay: 10
designed_router_priority: tens_of_micro
designated_router_delay: 10
designated_router_priority: tens_of_micro
hello_interval: 5
join_prune_interval: 15
inbound_join_prune_filter_policy: my_pim_route_map_policy_1
Expand Down Expand Up @@ -307,8 +307,8 @@ def main():
authentication_key=dict(type="str", aliases=["auth_key"], no_log=True),
authentication_type=dict(type="str", choices=["none", "md5_hmac"], aliases=["auth_type"]),
control_state=dict(type="list", elements="str", choices=["multicast_domain_boundary", "strict_rfc_compliant", "passive"]),
designed_router_delay=dict(type="int", aliases=["delay"]),
designed_router_priority=dict(type="int", aliases=["prio"]),
designated_router_delay=dict(type="int", aliases=["delay"]),
designated_router_priority=dict(type="int", aliases=["prio"]),
hello_interval=dict(type="int"),
join_prune_interval=dict(type="int", aliases=["jp_interval"]),
inbound_join_prune_filter_policy=dict(type="str", aliases=["inbound_filter"]),
Expand Down Expand Up @@ -337,13 +337,13 @@ def main():
name_alias = module.params.get("name_alias")
state = module.params.get("state")

designed_router_delay = module.params.get("designed_router_delay")
if designed_router_delay is not None and designed_router_delay not in range(1, 65536):
module.fail_json(msg="Parameter 'designed_router_delay' is only valid in range between 1 and 65535.")
designated_router_delay = module.params.get("designated_router_delay")
if designated_router_delay is not None and designated_router_delay not in range(1, 65536):
module.fail_json(msg="Parameter 'designated_router_delay' is only valid in range between 1 and 65535.")

designed_router_priority = module.params.get("designed_router_priority")
if designed_router_priority is not None and designed_router_priority not in range(1, 4294967296):
module.fail_json(msg="Parameter 'designed_router_priority' is only valid in range between 1 and 4294967295.")
designated_router_priority = module.params.get("designated_router_priority")
if designated_router_priority is not None and designated_router_priority not in range(1, 4294967296):
module.fail_json(msg="Parameter 'designated_router_priority' is only valid in range between 1 and 4294967295.")

hello_interval = module.params.get("hello_interval")
if hello_interval is not None and hello_interval not in range(1, 18724287):
Expand Down Expand Up @@ -421,8 +421,8 @@ def main():
authKey=authentication_key,
authT=authentication_type,
ctrl=control_state,
drDelay=designed_router_delay,
drPrio=designed_router_priority,
drDelay=designated_router_delay,
drPrio=designated_router_priority,
helloItvl=hello_interval,
jpInterval=join_prune_interval,
nameAlias=name_alias,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
authentication_key: my_password
authentication_type: md5_hmac
control_state: [multicast_domain_boundary, strict_rfc_compliant, passive]
designed_router_delay: 6
designed_router_priority: 2
designated_router_delay: 6
designated_router_priority: 2
hello_interval: 60000
join_prune_interval: 120
inbound_join_prune_filter_policy: ansible_pim_route_map_policy
Expand Down Expand Up @@ -87,7 +87,7 @@
<<: *aci_info
tenant: ansible_tenant
pim: ansible_pim_interface_3
designed_router_delay: 65536
designated_router_delay: 65536
state: present
ignore_errors: true
register: error_dr_relay_out_of_bounds
Expand All @@ -97,7 +97,7 @@
<<: *aci_info
tenant: ansible_tenant
pim: ansible_pim_interface_4
designed_router_priority: 4294967296
designated_router_priority: 4294967296
state: present
ignore_errors: true
register: error_dr_priority_out_of_bounds
Expand Down Expand Up @@ -146,8 +146,8 @@
- nm_add_pim_interface_2.current.0.pimIfPol.attributes.drPrio == "1"
- nm_add_pim_interface_2.current.0.pimIfPol.attributes.helloItvl == "30000"
- nm_add_pim_interface_2.current.0.pimIfPol.attributes.jpInterval == "60"
- error_dr_relay_out_of_bounds.msg == "Parameter 'designed_router_delay' is only valid in range between 1 and 65535."
- error_dr_priority_out_of_bounds.msg == "Parameter 'designed_router_priority' is only valid in range between 1 and 4294967295."
- error_dr_relay_out_of_bounds.msg == "Parameter 'designated_router_delay' is only valid in range between 1 and 65535."
- error_dr_priority_out_of_bounds.msg == "Parameter 'designated_router_priority' is only valid in range between 1 and 4294967295."
- error_helloIntvl_out_of_bounds.msg == "Parameter 'hello_interval' is only valid in range between 1 and 18724286."
- error_jpIntvl_out_of_bounds.msg == "Parameter 'join_prune_interval' is only valid in range between 60 and 65520."

Expand Down Expand Up @@ -183,8 +183,8 @@
cisco.aci.aci_interface_policy_pim: &aci_interface_policy_pim_update
<<: *aci_interface_policy_pim_present
control_state: passive
designed_router_delay: 4
designed_router_priority: 1
designated_router_delay: 4
designated_router_priority: 1
hello_interval: 30000
join_prune_interval: 60
check_mode: true
Expand Down

0 comments on commit a1932a4

Please sign in to comment.