Skip to content

Commit

Permalink
Merge pull request #1 from ArchelonU/feature/Add-OG-service-support
Browse files Browse the repository at this point in the history
feature/Add-OG-service-support
  • Loading branch information
ArchelonU authored Dec 12, 2024
2 parents c56f7a6 + 0eae9cf commit 6209e6e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/cisco.ios.ios_acls_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3149,6 +3149,24 @@ Parameters
<div>Refer to vendor documentation for valid values.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="4">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>service_object_group</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
</div>
</td>
<td>
</td>
<td>
<div>Service object-group for destination port.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
Expand Down
1 change: 1 addition & 0 deletions plugins/module_utils/network/ios/argspec/acls/acls.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class AclsArgs(object): # pylint: disable=R0903
},
"remarks": {"elements": "str", "type": "list"},
"sequence": {"type": "int"},
"service_object_group": {"type": "str"},
"source": {
"options": {
"address": {"type": "str"},
Expand Down
4 changes: 4 additions & 0 deletions plugins/module_utils/network/ios/rm_templates/acls.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def source_destination_common_config(config_data, command, attr):
)
elif aces.get("protocol"):
command += " {protocol}".format(**aces)
if aces.get("service_object_group"):
command += " object-group {service_object_group}".format(**aces)
if aces.get("source"):
command = source_destination_common_config(aces, command, "source")
if aces.get("destination"):
Expand Down Expand Up @@ -286,6 +288,7 @@ def __init__(self, lines=None):
(\s(?P<grant>deny|permit))
(\sevaluate\s(?P<evaluate>\S+))?
(\s(?P<protocol_num>\d+)\s)?
(\sobject-group\s(?P<service_obj_grp>\S+))?
(\s*(?P<protocol>ahp|eigrp|esp|gre|icmp|igmp|ipinip|ipv6|ip|nos|ospf|pcp|pim|sctp|tcp|ip|udp))?
((\s*(?P<source_any>any))|
(\s*object-group\s(?P<source_obj_grp>\S+))|
Expand Down Expand Up @@ -340,6 +343,7 @@ def __init__(self, lines=None):
"protocol": "{{ protocol }}",
"protocol_number": "{{ protocol_num }}",
"icmp_igmp_tcp_protocol": "{{ icmp_igmp_tcp_protocol }}",
"service_object_group": "{{ service_obj_grp }}",
"source": {
"address": "{{ source_address }}",
"ipv6_address": "{{ ipv6_source_address }}",
Expand Down

0 comments on commit 6209e6e

Please sign in to comment.