Skip to content

Commit

Permalink
firewall: Positional protocol argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Dec 20, 2024
1 parent a0d0179 commit 4aa4bc7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions share/actionsmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,8 @@ firewall:
full: --raw
help: Return the complete YAML dict
action: store_true
protocol:
-p:
full: --protocol
help: "If not raw, protocol type to list (tcp/udp)"
choices:
- tcp
Expand All @@ -1418,7 +1419,8 @@ firewall:
pattern: &pattern_port_or_range
- !!str ((^|(?!\A):)([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){1,2}?$
- "pattern_port_or_range"
protocol:
-p:
full: --protocol
help: "Protocol type (tcp/udp)"
choices:
- tcp
Expand All @@ -1443,7 +1445,8 @@ firewall:
help: Port or range of ports to close
extra:
pattern: *pattern_port_or_range
protocol:
-p:
full: --protocol
help: "Protocol type (tcp/udp)"
choices:
- tcp
Expand All @@ -1465,7 +1468,8 @@ firewall:
help: Port or range of ports to delete
extra:
pattern: *pattern_port_or_range
protocol:
-p:
full: --protocol
help: "Protocol type (tcp/udp)"
choices:
- tcp
Expand Down

0 comments on commit 4aa4bc7

Please sign in to comment.