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

[WIP] Add spanning tree resource module #823

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
330d402
[WIP] Add spanning tree resource module
roverflow Feb 27, 2024
b2d15da
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 27, 2024
ea9ff1c
parsers and pre-commit fix
roverflow Feb 27, 2024
4aae712
symlink
roverflow Feb 27, 2024
48b4ab1
changelog
roverflow Feb 27, 2024
7961a6c
Added more parsers
roverflow Feb 28, 2024
29889fa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 28, 2024
a5b3f28
changed argspec
roverflow Mar 7, 2024
432118a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 7, 2024
48f471e
precommit issue
roverflow Mar 7, 2024
7018345
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 7, 2024
5f2f884
precommit fix
roverflow Mar 7, 2024
0076c42
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 7, 2024
bab28d1
fixed pre-commit doc issue
roverflow Mar 7, 2024
f1a36fc
add other docs
roverflow Mar 7, 2024
392fa79
new parsers
roverflow Mar 8, 2024
89acdf3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 8, 2024
089243e
argspec changes
roverflow Mar 8, 2024
8738853
Added more parsers
roverflow Mar 10, 2024
b214e07
fixed port type argspec
roverflow Mar 11, 2024
429255b
All parsers
roverflow Mar 11, 2024
e3d477c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 11, 2024
c9d5c19
gathered state
roverflow Mar 11, 2024
cbb8eb8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 11, 2024
37639a7
facts code
roverflow Mar 12, 2024
0a1d8a1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 12, 2024
7aec4f9
config side code
roverflow Mar 15, 2024
fbc3772
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2024
61cbe14
added all action states
roverflow Mar 15, 2024
f1b564d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2024
e744eda
Merge branch 'main' into sp_tree_pr
roverflow Apr 9, 2024
89ba840
Merge branch 'main' into sp_tree_pr
NilashishC Apr 19, 2024
6002809
Merge branch 'main' into sp_tree_pr
NilashishC Apr 19, 2024
5ed8e24
Merge branch 'main' into sp_tree_pr
NilashishC Apr 19, 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 @@ -106,6 +106,7 @@ Name | Description
[cisco.nxos.nxos_snmp_server](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_snmp_server_module.rst)|SNMP Server resource module.
[cisco.nxos.nxos_snmp_traps](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_snmp_traps_module.rst)|(deprecated, removed after 2024-01-01) Manages SNMP traps.
[cisco.nxos.nxos_snmp_user](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_snmp_user_module.rst)|(deprecated, removed after 2024-01-01) Manages SNMP users for monitoring.
[cisco.nxos.nxos_spanning_tree_global](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_spanning_tree_global_module.rst)|Resource module to configure spanning tree.
[cisco.nxos.nxos_static_routes](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_static_routes_module.rst)|Static routes resource module
[cisco.nxos.nxos_system](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_system_module.rst)|Manage the system attributes on Cisco NXOS devices
[cisco.nxos.nxos_telemetry](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_telemetry_module.rst)|TELEMETRY resource module
Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/spanning_tree_global.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
major_changes:
- spanning_tree_global - add a new resource module for nxos spanning tree global configuration.
1,246 changes: 1,246 additions & 0 deletions docs/cisco.nxos.nxos_spanning_tree_global_module.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions plugins/action/spanning_tree_global.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# -*- coding: utf-8 -*-
# Copyright 2024 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 nxos_spanning_tree_global module
"""


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

argument_spec = {
"config": {
"type": "dict",
"options": {
"bridge_assurance": {"type": "bool"},
"domain": {
"type": "dict",
"mutually_exclusive": [["identifier", "disable", "enable"]],
"options": {
"identifier": {"type": "int"},
"disable": {"type": "bool"},
"enable": {"type": "bool"},
"clear_stats": {"type": "bool"},
},
},
"fcoe": {"type": "bool"},
"lc_issu": {
"type": "str",
"choices": ["auto", "disruptive", "non-disruptive"],
},
"loopguard_default": {"type": "bool"},
"mode": {"type": "str", "choices": ["mst", "rapid-pvst"]},
"mst": {
"type": "dict",
"options": {
"forward_time": {"type": "int"},
"hello_time": {"type": "int"},
"max_age": {"type": "int"},
"max_hops": {"type": "int"},
"simulate_pvst_global": {"type": "bool"},
"configure_mst": {
"type": "dict",
"options": {
"name": {"type": "str"},
"revision": {"type": "int"},
"private_vlan_sync": {"type": "bool"},
"instance_vlan": {
"type": "list",
"elements": "dict",
"options": {
"instance_id": {"type": "int"},
"vlan_range": {"type": "str"},
},
},
},
},
},
},
"pathcost_method": {"type": "str", "choices": ["long", "short"]},
"port_type": {
"type": "dict",
"options": {
"edge": {
"type": "dict",
"options": {
"bpduguard": {"type": "bool"},
"bpdufilter": {"type": "bool"},
},
},
"default_type": {"type": "str", "choices": ["edge", "network"]},
},
},
"pseudo_info": {
"type": "dict",
"options": {
"mst_info": {
"type": "list",
"elements": "dict",
"mutually_exclusive": [["designated", "root"]],
"options": {
"range": {"type": "str"},
"designated_priority": {"type": "int"},
"root_priority": {"type": "int"},
},
},
"vlan_info": {
"type": "list",
"elements": "dict",
"mutually_exclusive": [["designated", "root"]],
"options": {
"range": {"type": "str"},
"designated_priority": {"type": "int"},
"root_priority": {"type": "int"},
},
},
},
},
"vlan": {
"type": "list",
"elements": "dict",
"options": {
"vlan_range": {"type": "str"},
"forward_time": {"type": "int"},
"hello_time": {"type": "int"},
"max_age": {"type": "int"},
"priority": {"type": "int"},
"root": {
"type": "dict",
"mutually_exclusive": [["primary", "secondary"]],
"options": {
"primary": {
"type": "dict",
"options": {
"enable": {"type": "bool"},
"diameter": {"type": "int"},
"hello_time": {"type": "int"},
},
},
"secondary": {
"type": "dict",
"options": {
"enable": {"type": "bool"},
"diameter": {"type": "int"},
"hello_time": {"type": "int"},
},
},
},
},
},
},
},
},
"running_config": {"type": "str"},
"state": {
"choices": [
"merged",
"replaced",
"overridden",
"deleted",
"rendered",
"gathered",
"purged",
"parsed",
],
"default": "merged",
"type": "str",
},
} # pylint: disable=C0301
Loading
Loading