-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[acl_interfaces] facts fixed and optimisation (#535)
[acl_interfaces] facts fixed and optimisation SUMMARY Depends-On: ansible/ansible-zuul-jobs#1451 Depends-On: ansible/ansible-zuul-jobs#1466 Add parsers for RM and fix facts generation using a specific pattern to config command. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ios_acl_interfaces ADDITIONAL INFORMATION Reviewed-by: Ashwini Mhatre <[email protected]>
- Loading branch information
1 parent
5b1a470
commit fb7be2c
Showing
15 changed files
with
487 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
bugfixes: | ||
- "`acl_interfaces` - optimization and bugfixes." | ||
trivial: | ||
- "`acl_interfaces` - fix tests for action states." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 20 additions & 24 deletions
44
plugins/module_utils/network/ios/argspec/acl_interfaces/acl_interfaces.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,78 @@ | ||
# | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2019 Red Hat | ||
# Copyright 2022 Red Hat | ||
# GNU General Public License v3.0+ | ||
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
__metaclass__ = type | ||
|
||
############################################# | ||
# WARNING # | ||
############################################# | ||
# | ||
# This file is auto generated by the resource | ||
# module builder playbook. | ||
# This file is auto generated by the | ||
# cli_rm_builder. | ||
# | ||
# Do not edit this file manually. | ||
# Manually editing this file is not advised. | ||
# | ||
# Changes to this file will be over written | ||
# by the resource module builder. | ||
# | ||
# Changes should be made in the model used to | ||
# generate this file or in the resource module | ||
# builder template. | ||
# To update the argspec make the desired changes | ||
# in the module docstring and re-run | ||
# cli_rm_builder. | ||
# | ||
############################################# | ||
|
||
""" | ||
The arg spec for the ios_acl_interfaces module | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
__metaclass__ = type | ||
|
||
|
||
class Acl_InterfacesArgs(object): | ||
class Acl_interfacesArgs(object): # pylint: disable=R0903 | ||
"""The arg spec for the ios_acl_interfaces module""" | ||
|
||
argument_spec = { | ||
"config": { | ||
"type": "list", | ||
"elements": "dict", | ||
"options": { | ||
"name": {"required": True, "type": "str"}, | ||
"name": {"type": "str", "required": True}, | ||
"access_groups": { | ||
"type": "list", | ||
"elements": "dict", | ||
"options": { | ||
"afi": { | ||
"type": "str", | ||
"required": True, | ||
"choices": ["ipv4", "ipv6"], | ||
"type": "str", | ||
}, | ||
"acls": { | ||
"type": "list", | ||
"elements": "dict", | ||
"options": { | ||
"name": {"required": True, "type": "str"}, | ||
"name": {"type": "str", "required": True}, | ||
"direction": { | ||
"type": "str", | ||
"required": True, | ||
"choices": ["in", "out"], | ||
"type": "str", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
"type": "list", | ||
}, | ||
"running_config": {"type": "str"}, | ||
"state": { | ||
"type": "str", | ||
"choices": [ | ||
"merged", | ||
"replaced", | ||
"overridden", | ||
"deleted", | ||
"gathered", | ||
"rendered", | ||
"parsed", | ||
"rendered", | ||
], | ||
"default": "merged", | ||
"type": "str", | ||
}, | ||
} | ||
} # pylint: disable=C0301 |
Oops, something went wrong.