Skip to content

Commit

Permalink
#114 add ability to use "any" for ICMP option
Browse files Browse the repository at this point in the history
  • Loading branch information
Gevorg-Khachatryaan authored and Gevorg-Khachatryaan committed Feb 21, 2022
1 parent f1aa585 commit 3080b81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions plugins/modules/ntnx_pbrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,21 @@ def get_module_spec():
dst=dict(type="list", default=["*"], elements="str"),
)

icmp_spec = dict(code=dict(type="int"), type=dict(type="int"))
icmp_spec = dict(
any=dict(type="bool"), code=dict(type="int"), type=dict(type="int")
)

protocol_spec = dict(
any=dict(type="bool"),
tcp=dict(type="dict", options=tcp_and_udp_spec),
udp=dict(type="dict", options=tcp_and_udp_spec),
number=dict(type="int"),
icmp=dict(type="dict", options=icmp_spec),
icmp=dict(
type="dict",
options=icmp_spec,
mutually_exclusive=[("any", "code"), ("any", "type")],
required_by={"type": "code"},
),
)

action_spec = dict(
Expand Down

0 comments on commit 3080b81

Please sign in to comment.