Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios_line: Initiale commit to create the module ios_line #918

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
c0500a7
ios_service: Initiale commit to create the module `ios_service`
earendilfr Aug 27, 2023
bc265f5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2023
befb3b9
Initial commit for tests/integration
earendilfr Nov 29, 2023
d647c18
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 29, 2023
154115c
Fix some errors in tests/integration + remove initial space at startup
earendilfr Dec 5, 2023
25f6d13
Add the missing part to take in count `aux` lines
earendilfr Dec 7, 2023
ed19c3c
Fixe an error when we modify the length of the active line
earendilfr Dec 8, 2023
9548416
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 8, 2023
8c75435
Update the way to take in count the input ACL
earendilfr Dec 13, 2023
9cebfa1
- Fixe the integrations test to be correct
earendilfr Dec 22, 2023
1ba5deb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 22, 2023
5ec768c
Merge branch 'main' into new-ios_line
KB-perByte Jan 10, 2024
b364584
ios_service: Initiale commit to create the module `ios_service`
earendilfr Aug 27, 2023
1a6215f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2023
91d588d
Initial commit for tests/integration
earendilfr Nov 29, 2023
ed878f8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 29, 2023
a5e39a8
Fix some errors in tests/integration + remove initial space at startup
earendilfr Dec 5, 2023
9fef35e
Add the missing part to take in count `aux` lines
earendilfr Dec 7, 2023
4b67934
Fixe an error when we modify the length of the active line
earendilfr Dec 8, 2023
4ddcaee
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 8, 2023
ff89b04
Update the way to take in count the input ACL
earendilfr Dec 13, 2023
c16f89e
- Fixe the integrations test to be correct
earendilfr Dec 22, 2023
92760c6
Merge remote-tracking branch 'origin/new-ios_line' into new-ios_line
earendilfr Feb 2, 2024
6877ba9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 2, 2024
04ff6b3
Merge branch 'main' into new-ios_line
NilashishC Mar 20, 2024
fbc13c1
Merge branch 'main' into new-ios_line
earendilfr May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Name | Description
[cisco.ios.ios_lacp](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_lacp_module.rst)|Resource module to configure LACP.
[cisco.ios.ios_lacp_interfaces](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_lacp_interfaces_module.rst)|Resource module to configure LACP interfaces.
[cisco.ios.ios_lag_interfaces](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_lag_interfaces_module.rst)|Resource module to configure LAG interfaces.
[cisco.ios.ios_line](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_line_module.rst)|Resource module to configure line
[cisco.ios.ios_linkagg](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_linkagg_module.rst)|Module to configure link aggregation groups.
[cisco.ios.ios_lldp](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_lldp_module.rst)|(deprecated, removed after 2024-06-01) Manage LLDP configuration on Cisco IOS network devices.
[cisco.ios.ios_lldp_global](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_lldp_global_module.rst)|Resource module to configure LLDP.
Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/new_ios_line.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- ios_line - Add a new module to manage the line console and line vty on Cisco IOS
2 changes: 1 addition & 1 deletion docs/cisco.ios.ios_facts_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Parameters
<td>
</td>
<td>
<div>When supplied, this argument will restrict the facts collected to a given subset. Possible values for this argument include all and the resources like interfaces, vlans etc. Can specify a list of values to include a larger subset. Values can also be used with an initial <code>!</code> to specify that a specific subset should not be collected. Valid subsets are &#x27;bgp_global&#x27;, &#x27;l3_interfaces&#x27;, &#x27;lag_interfaces&#x27;, &#x27;ntp_global&#x27;, &#x27;acls&#x27;, &#x27;hostname&#x27;, &#x27;interfaces&#x27;, &#x27;lldp_interfaces&#x27;, &#x27;logging_global&#x27;, &#x27;ospf_interfaces&#x27;, &#x27;ospfv2&#x27;, &#x27;prefix_lists&#x27;, &#x27;static_routes&#x27;, &#x27;acl_interfaces&#x27;, &#x27;all&#x27;, &#x27;bgp_address_family&#x27;, &#x27;l2_interfaces&#x27;, &#x27;lacp&#x27;, &#x27;lacp_interfaces&#x27;, &#x27;lldp_global&#x27;, &#x27;ospfv3&#x27;, &#x27;snmp_server&#x27;, &#x27;vlans&#x27;, &#x27;service&#x27;.</div>
<div>When supplied, this argument will restrict the facts collected to a given subset. Possible values for this argument include all and the resources like interfaces, vlans etc. Can specify a list of values to include a larger subset. Values can also be used with an initial <code>!</code> to specify that a specific subset should not be collected. Valid subsets are &#x27;bgp_global&#x27;, &#x27;l3_interfaces&#x27;, &#x27;lag_interfaces&#x27;, &#x27;ntp_global&#x27;, &#x27;acls&#x27;, &#x27;hostname&#x27;, &#x27;interfaces&#x27;, &#x27;lldp_interfaces&#x27;, &#x27;logging_global&#x27;, &#x27;ospf_interfaces&#x27;, &#x27;ospfv2&#x27;, &#x27;prefix_lists&#x27;, &#x27;static_routes&#x27;, &#x27;acl_interfaces&#x27;, &#x27;all&#x27;, &#x27;bgp_address_family&#x27;, &#x27;l2_interfaces&#x27;, &#x27;lacp&#x27;, &#x27;lacp_interfaces&#x27;, &#x27;lldp_global&#x27;, &#x27;ospfv3&#x27;, &#x27;snmp_server&#x27;, &#x27;vlans&#x27;, &#x27;service&#x27;, &#x27;line&#x27;.</div>
</td>
</tr>
<tr>
Expand Down
2 changes: 2 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ plugin_routing:
redirect: cisco.ios.ios_lacp_interfaces
lag_interfaces:
redirect: cisco.ios.ios_lag_interfaces
line:
redirect: cisco.ios.ios_line
linkagg:
deprecation:
removal_date: "2024-06-01"
Expand Down
1 change: 1 addition & 0 deletions plugins/action/line.py
Empty file.
229 changes: 229 additions & 0 deletions plugins/module_utils/network/ios/argspec/line/line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
# -*- coding: utf-8 -*-
# Copyright 2023 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
# ansible.content_builder.
#
# Manually editing this file is not advised.
#
# To update the argspec make the desired changes
# in the documentation in the module file and re-run
# ansible.content_builder commenting out
# the path to external 'docstring' in build.yaml.
#
##############################################

"""
The arg spec for the ios_line module
"""


class LineArgs(object): # pylint: disable=R0903
"""The arg spec for the ios_line module"""

argument_spec = {
"config": {
"type": "dict",
"options": {
"lines": {
"type": "list",
"elements": "dict",
"options": {
"access_classes_in": {
"type": "dict",
"options": {
"name": {"type": "str"},
"vrf_also": {"type": "bool"},
"vrfname": {"type": "str"},
},
},
"access_classes_out": {"type": "str"},
"accounting": {
"type": "dict",
"options": {
"arap": {"type": "str", "default": "default"},
"commands": {
"type": "list",
"elements": "dict",
"options": {
"level": {"type": "int"},
"command": {
"type": "str",
"default": "default",
},
},
},
"connection": {
"type": "str",
"default": "default",
},
"exec": {"type": "str", "default": "default"},
"resource": {"type": "str", "default": "default"},
},
},
"authorization": {
"type": "dict",
"options": {
"arap": {"type": "str", "default": "default"},
"commands": {
"type": "list",
"elements": "dict",
"options": {
"level": {"type": "int"},
"command": {
"type": "str",
"default": "default",
},
},
},
"exec": {"type": "str", "default": "default"},
"reverse_access": {
"type": "str",
"default": "default",
},
},
},
"escape_character": {
"type": "dict",
"options": {
"soft": {"type": "bool"},
"value": {"type": "str"},
},
},
"exec": {
"type": "dict",
"options": {
"banner": {"type": "bool"},
"character_bits": {
"type": "int",
"choices": [7, 8],
},
"prompt": {
"type": "dict",
"options": {
"expand": {"type": "bool"},
"timestamp": {"type": "bool"},
},
},
"timeout": {"type": "int"},
},
},
"length": {"type": "int"},
"location": {"type": "str"},
"logging": {
"type": "dict",
"options": {
"enable": {"type": "bool"},
"level": {
"type": "str",
"choices": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"all",
],
},
"limit": {"type": "int"},
},
},
"login": {"type": "str", "default": "default"},
"logout_warning": {"type": "int"},
"motd": {"type": "bool", "default": True},
"name": {"type": "str", "required": True},
"notify": {"type": "bool"},
"padding": {"type": "str"},
"parity": {
"type": "str",
"choices": ["even", "mark", "none", "odd", "space"],
},
"password": {
"type": "dict",
"options": {
"hash": {"type": "int", "choices": [0, 7]},
"value": {"type": "str", "no_log": True},
},
"no_log": False,
},
"privilege": {
"type": "int",
"choices": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
12,
13,
14,
15,
],
},
"session": {
"type": "dict",
"options": {
"disconnect_warning": {"type": "int"},
"limit": {"type": "int"},
"timeout": {"type": "int"},
},
},
"speed": {"type": "int"},
"stopbits": {"type": "str", "choices": ["1", "1.5", "2"]},
"transport": {
"type": "list",
"elements": "dict",
"options": {
"all": {"type": "bool"},
"name": {
"type": "str",
"choices": ["input", "output", "preferred"],
},
"none": {"type": "bool"},
"pad": {"type": "bool"},
"rlogin": {"type": "bool"},
"ssh": {"type": "bool"},
"telnet": {"type": "bool"},
},
},
},
},
},
},
"running_config": {"type": "str"},
"state": {
"type": "str",
"choices": [
"merged",
"overridden",
"replaced",
"deleted",
"rendered",
"parsed",
"gathered",
],
"default": "merged",
},
} # pylint: disable=C0301
Empty file.
Loading
Loading