Skip to content

Commit

Permalink
ios_service: Initiale commit to create the module ios_service
Browse files Browse the repository at this point in the history
This module has been tested on:
- Cisco IOS-XE 17.06.05
  • Loading branch information
earendilfr committed Aug 28, 2023
1 parent d9f5cda commit aa956fc
Show file tree
Hide file tree
Showing 17 changed files with 2,450 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,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
6 changes: 6 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ plugin_routing:
redirect: cisco.ios.ios
ios_hostname:
redirect: cisco.ios.ios
ios_line:
redirect: cisco.ios.ios
ios_linkagg:
redirect: cisco.ios.ios
ios_lldp:
Expand Down Expand Up @@ -73,6 +75,8 @@ plugin_routing:
redirect: cisco.ios.ios
lag_interfaces:
redirect: cisco.ios.ios
line:
redirect: cisco.ios.ios
linkagg:
redirect: cisco.ios.ios
lldp:
Expand Down Expand Up @@ -161,6 +165,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.
221 changes: 221 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,221 @@
# -*- 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": "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",
"deleted",
"rendered",
"parsed",
"gathered",
],
"default": "merged",
},
} # pylint: disable=C0301
Empty file.
Loading

0 comments on commit aa956fc

Please sign in to comment.