Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
2f57a3c
Fix changes 03/04/2023
Apr 3, 2023
a7d00d2
Fix changes 12.04.2023
Apr 12, 2023
7753381
Fix changes 12.04.2023
Apr 12, 2023
b742cc9
Merge branch 'main' into spanning_tree
Apr 12, 2023
9d1c913
Fix changes 15.04.2023
Apr 15, 2023
d8eef9f
Fix changes 24/04/2023
Apr 24, 2023
2ad4e42
Fix changes 25/04/2023
Apr 25, 2023
d9df559
Merge branch 'main' into spanning_tree
Apr 25, 2023
99cf5a5
Add examples
Apr 25, 2023
77786c9
Update examples 26/04/2023
Apr 26, 2023
39c42de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 26, 2023
ec545f5
Fix sanity errors #1
Apr 26, 2023
9683481
Fix sanity errors #2
Apr 26, 2023
340c744
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 26, 2023
e06e2ce
Fix sanity errors #3
Apr 26, 2023
99500d6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 26, 2023
9e4f67d
Fix sanity errors No4
Apr 26, 2023
23f5a5d
Merge branch 'main' into spanning_tree
KB-perByte May 3, 2023
02a2a64
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 3, 2023
813b38e
Merge branch 'main' into spanning_tree
KB-perByte May 15, 2023
fb2ea80
Merge branch 'main' into spanning_tree
KB-perByte Jun 12, 2023
8520fce
Merge branch 'main' into spanning_tree
KB-perByte Jun 23, 2023
af3589c
Merge branch 'main' into spanning_tree
KB-perByte Jun 26, 2023
555eee2
Merge branch 'main' into spanning_tree
Jul 5, 2023
cd49b0c
Add integration tests
Jul 10, 2023
f1aaf75
Merge branch 'main' into spanning_tree
Jul 10, 2023
6a9fa2e
Merge branch 'ansible-collections:main' into spanning_tree
tnizharadze Jul 10, 2023
0d061e9
Merge branch 'spanning_tree' of https://github.com/tnizharadze/cisco.…
Jul 10, 2023
a6c066b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 10, 2023
dd3b233
Fix ansible-lint generated errors
Jul 10, 2023
79fa3c4
Merge branch 'spanning_tree' of https://github.com/tnizharadze/cisco.…
Jul 10, 2023
49aec84
Fix sanity errors
Jul 18, 2023
c431a64
Merge branch 'main' into spanning_tree
KB-perByte Sep 7, 2023
a25f301
fix merge conflicts
roverflow Dec 19, 2023
904d4b8
Merge branch 'main' into spanning_tree
roverflow Dec 19, 2023
643dd99
adding back spanning tree in facts.py
roverflow Dec 19, 2023
3b4ddc2
Merge branch 'main' into spanning_tree
roverflow Dec 29, 2023
f360f7f
Merge branch 'main' into spanning_tree
roverflow Jan 2, 2024
43c667a
changelog
roverflow Jan 2, 2024
39d9e1a
fixed doc yml indentation
roverflow Jan 2, 2024
73d4b7d
doc fix
roverflow Jan 2, 2024
42d6032
Merge branch 'main' into spanning_tree
roverflow Jan 15, 2024
7fd7f52
fix key not exist in facts
roverflow Jan 15, 2024
9e4f598
Merge branch 'main' into spanning_tree
roverflow Feb 14, 2024
dabb7b6
Merge branch 'main' into spanning_tree
NilashishC Mar 20, 2024
c01c87f
Merge branch 'main' into spanning_tree
roverflow Apr 9, 2024
40d7794
fix test patch
roverflow Apr 9, 2024
f5e2af5
Merge branch 'main' into spanning_tree
AAYUSH2091 Jul 10, 2025
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 @@ -87,6 +87,7 @@ Name | Description
[cisco.ios.ios_route_maps](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_route_maps_module.rst)|Resource module to configure route maps.
[cisco.ios.ios_service](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_service_module.rst)|Resource module to configure service.
[cisco.ios.ios_snmp_server](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_snmp_server_module.rst)|Resource module to configure snmp server.
[cisco.ios.ios_spanning_tree](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_spanning_tree_module.rst)|Resource module to configure Spanning Tree.
[cisco.ios.ios_static_routes](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_static_routes_module.rst)|Resource module to configure static routes.
[cisco.ios.ios_system](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_system_module.rst)|Module to manage the system attributes.
[cisco.ios.ios_user](https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_user_module.rst)|Module to manage the aggregates of local users.
Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/ios_spanning_tree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
major_changes:
- ios_spanning_tree - Added a new resource module to manage spanning-tree configuration.
2 changes: 2 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ plugin_routing:
redirect: cisco.ios.ios_static_routes
system:
redirect: cisco.ios.ios_system
spanning_tree:
redirect: cisco.ios.ios_spanning_tree
user:
redirect: cisco.ios.ios_user
vlans:
Expand Down
1 change: 1 addition & 0 deletions plugins/action/spanning_tree.py
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
# -*- coding: utf-8 -*-
# Copyright 2023 Timur Nizharadze (@tnizharadze)
# 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
# cli_rm_builder.
#
# Manually editing this file is not advised.
#
# To update the argspec make the desired changes
# in the module docstring and re-run
# cli_rm_builder.
#
#############################################

"""
The arg spec for the ios_spanning_tree module
"""


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

argument_spec = {
"config": {
"type": "dict",
"options": {
"backbonefast": {"type": "bool"},
"bridge_assurance": {"type": "bool"},
"etherchannel_guard_misconfig": {"type": "bool"},
"logging": {"type": "bool"},
"loopguard_default": {"type": "bool"},
"mode": {
"type": "str",
"choices": ["mst", "pvst", "rapid-pvst"],
},
"pathcost_method": {
"type": "str",
"choices": ["long", "short"],
},
"transmit_hold_count": {"type": "int"},
"portfast": {
"type": "dict",
"mutually_exclusive": [
["network_default", "edge_default"],
],
"options": {
"default": {"type": "bool"},
"network_default": {"type": "bool"},
"edge_default": {"type": "bool"},
"bpdufilter_default": {"type": "bool"},
"edge_bpdufilter_default": {"type": "bool"},
"bpduguard_default": {"type": "bool"},
"edge_bpduguard_default": {"type": "bool"},
},
},
"uplinkfast": {
"type": "dict",
"options": {
"enabled": {"type": "bool"},
"max_update_rate": {"type": "int"},
},
},
"forward_time": {
"type": "list",
"elements": "dict",
"required_together": [["vlan_list", "value"]],
"options": {
"vlan_list": {"type": "str"},
"value": {"type": "int"},
},
},
"hello_time": {
"type": "list",
"elements": "dict",
"required_together": [["vlan_list", "value"]],
"options": {
"vlan_list": {"type": "str"},
"value": {"type": "int"},
},
},
"max_age": {
"type": "list",
"elements": "dict",
"required_together": [["vlan_list", "value"]],
"options": {
"vlan_list": {"type": "str"},
"value": {"type": "int"},
},
},
"priority": {
"type": "list",
"elements": "dict",
"required_together": [["vlan_list", "value"]],
"options": {
"vlan_list": {"type": "str"},
"value": {
"type": "int",
"choices": [
0,
4096,
8192,
12288,
16384,
20480,
24576,
28672,
32768,
36864,
40960,
45056,
49152,
53248,
57344,
61440,
],
},
},
},
"mst": {
"type": "dict",
"options": {
"simulate_pvst_global": {"type": "bool"},
"hello_time": {"type": "int"},
"forward_time": {"type": "int"},
"max_age": {"type": "int"},
"max_hops": {"type": "int"},
"priority": {
"type": "list",
"elements": "dict",
"required_together": [["instance", "value"]],
"options": {
"instance": {"type": "str"},
"value": {
"type": "int",
"choices": [
0,
4096,
8192,
12288,
16384,
20480,
24576,
28672,
32768,
36864,
40960,
45056,
49152,
53248,
57344,
61440,
],
},
},
},
"configuration": {
"type": "dict",
"options": {
"name": {"type": "str"},
"revision": {"type": "int"},
"instances": {
"type": "list",
"elements": "dict",
"required_together": [
[
"instance",
"vlan_list",
],
],
"options": {
"instance": {"type": "int"},
"vlan_list": {"type": "str"},
},
},
},
},
},
},
},
},
"running_config": {"type": "str"},
"state": {
"type": "str",
"choices": [
"merged",
"replaced",
"deleted",
"rendered",
"parsed",
"gathered",
],
"default": "merged",
},
} # pylint: disable=C0301
Empty file.
Loading
Loading