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

Add nxos_vrf_global resource module #870

Merged
merged 48 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b517c84
vrf_global init
roverflow Jun 17, 2024
91fc875
added parsers
roverflow Jun 19, 2024
df5ca2c
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 19, 2024
7a5ce68
add final parsers
roverflow Jun 24, 2024
49cbdb5
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 24, 2024
e0d7acc
minor changes in parser
roverflow Jun 24, 2024
babcc08
Merge branch 'main' into vrfglobal
roverflow Jun 24, 2024
96c5f9e
fixed parsers for ssm_translate
roverflow Jun 25, 2024
a228bb8
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 25, 2024
5faf758
fixed and added some parsers
roverflow Jun 27, 2024
0678ca6
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 27, 2024
334a477
fixed wrong model issue
roverflow Jul 10, 2024
90c95ed
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 10, 2024
ff96e7c
Merge branch 'main' into vrfglobal
roverflow Jul 14, 2024
2e14029
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 14, 2024
4bc1ce1
config side code
roverflow Jul 14, 2024
9b009cc
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 14, 2024
d9ead61
pre-commit fix
roverflow Jul 14, 2024
99c16db
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 14, 2024
3db2bd1
more pre-commit fix
roverflow Jul 14, 2024
a1a5d42
more pre-commit
roverflow Jul 14, 2024
a60c67c
added unit test
roverflow Jul 14, 2024
e950132
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 14, 2024
11b3170
fix syntax
roverflow Jul 14, 2024
15dc857
fixed parsed
roverflow Jul 14, 2024
6e347f1
fix sanity
roverflow Jul 14, 2024
b6ae3aa
added commands
roverflow Jul 14, 2024
0b77116
added examples
roverflow Jul 15, 2024
0708490
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
2d9c5d3
fix lint
roverflow Jul 15, 2024
168f800
added intergration test
roverflow Jul 15, 2024
81e4006
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
7bb1dd0
added more tests
roverflow Jul 15, 2024
d56bf3b
replaced
roverflow Jul 19, 2024
4004a9b
changes to tests
roverflow Jul 24, 2024
3f71091
fixed domain names
roverflow Jul 25, 2024
7563bb0
added rendered
roverflow Jul 25, 2024
c6f17b1
rtt
roverflow Jul 25, 2024
86fc7af
fix lint
roverflow Jul 25, 2024
9af94b7
fix docs
roverflow Jul 25, 2024
2bb4fe0
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 25, 2024
ab1c2be
fix intend
roverflow Jul 25, 2024
b7b4ffe
fix spacing
roverflow Jul 25, 2024
8138425
update deprecation
roverflow Jul 25, 2024
433e199
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 25, 2024
4df5ca1
edit runtime
roverflow Jul 25, 2024
4981d63
fix lint
roverflow Jul 25, 2024
19bf56c
chore: auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 25, 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 @@ -116,6 +116,7 @@ Name | Description
[cisco.nxos.nxos_vpc_interface](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vpc_interface_module.rst)|Manages interface VPC configuration
[cisco.nxos.nxos_vrf](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vrf_module.rst)|Manages global VRF configuration.
[cisco.nxos.nxos_vrf_af](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vrf_af_module.rst)|Manages VRF AF.
[cisco.nxos.nxos_vrf_global](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vrf_global_module.rst)|Resource module to configure VRF definitions.
[cisco.nxos.nxos_vrf_interface](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vrf_interface_module.rst)|Manages interface specific VRF configuration.
[cisco.nxos.nxos_vrrp](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vrrp_module.rst)|Manages VRRP configuration on NX-OS switches.
[cisco.nxos.nxos_vsan](https://github.com/ansible-collections/cisco.nxos/blob/main/docs/cisco.nxos.nxos_vsan_module.rst)|Configuration of vsan for Cisco NXOS MDS Switches.
Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/nxos_vrf_global.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- Add nxos_vrf_global resource module in favor of nxos_vrf module.
2 changes: 2 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,5 @@ plugin_routing:
redirect: cisco.nxos.nxos_vxlan_vtep_vni
zone_zoneset:
redirect: cisco.nxos.nxos_zone_zoneset
vrf_global:
redirect: cisco.nxos.nxos_vrf_global
1 change: 1 addition & 0 deletions plugins/action/vrf_global.py
Empty file added plugins/lookup/__init__.py
Empty file.
Empty file.
260 changes: 260 additions & 0 deletions plugins/module_utils/network/nxos/argspec/vrf_global/vrf_global.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
# -*- 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_vrf_global module
"""


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

argument_spec = {
"config": {
"type": "dict",
"options": {
"vrfs": {
"type": "list",
"elements": "dict",
"options": {
"name": {"required": True, "type": "str"},
"description": {"type": "str"},
"ip": {
"type": "dict",
"options": {
"auto_discard": {"type": "bool"},
"domain_list": {"type": "list", "elements": "str"},
"domain_name": {"type": "str"},
"icmp_err": {
"type": "dict",
"options": {
"source_interface": {
"type": "dict",
"options": {
"interface": {
"type": "str",
"choices": [
"loopback",
"ethernet",
"port-channel",
],
},
"interface_value": {"type": "str"},
},
},
},
},
"igmp": {
"type": "dict",
"options": {
"ssm_translate": {
"type": "list",
"elements": "dict",
"options": {
"group": {"type": "str"},
"source": {"type": "str"},
},
},
},
},
"mroutes": {
"type": "list",
"elements": "dict",
"options": {
"group": {"type": "str"},
"source": {"type": "str"},
"preference": {"type": "int"},
"vrf": {"type": "str"},
},
},
"multicast": {
"type": "dict",
"options": {
"group_range_prefix_list": {"type": "str"},
"multipath": {
"type": "dict",
"options": {
"resilient": {"type": "bool"},
"splitting_type": {
"type": "dict",
"mutually_exclusive": [
[
"legacy",
"nbm",
"none",
"sg_hash",
"sg_hash_next_hop",
],
],
"options": {
"none": {"type": "bool"},
"legacy": {"type": "bool"},
"nbm": {"type": "bool"},
"sg_hash": {
"type": "bool",
},
"sg_hash_next_hop": {
"type": "bool",
},
},
},
},
},
"rpf": {
"type": "list",
"elements": "dict",
"options": {
"vrf_name": {"type": "str"},
"group_list_range": {
"type": "str",
},
},
},
},
},
"name_server": {
"type": "dict",
"options": {
"address_list": {
"type": "list",
"elements": "str",
},
"use_vrf": {
"type": "dict",
"options": {
"vrf": {"type": "str"},
"source_address": {"type": "str"},
},
},
},
},
"route": {
"type": "list",
"elements": "dict",
"mutually_exclusive": [
["tags", "vrf", "track"],
],
"options": {
"source": {"type": "str"},
"destination": {"type": "str"},
"tags": {
"type": "dict",
"options": {
"tag_value": {"type": "int"},
"route_pref": {"type": "int"},
},
},
"vrf": {"type": "str"},
"track": {"type": "str"},
},
},
},
},
"vni": {
"type": "dict",
"options": {
"vni_number": {"type": "int"},
"layer_3": {"type": "bool"},
},
},
"multicast": {
"type": "dict",
"options": {
"service_reflect": {
"type": "list",
"elements": "dict",
"options": {
"service_interface": {"type": "str"},
"map_to": {"type": "str"},
},
},
},
},
"ipv6": {
"type": "dict",
"options": {
"mld_ssm_translate": {
"type": "list",
"elements": "dict",
"options": {
"icmp": {"type": "bool"},
"group": {"type": "str"},
"source": {"type": "str"},
},
},
"multicast": {
"type": "dict",
"options": {
"group_range_prefix_list": {"type": "str"},
"multipath": {
"type": "dict",
"options": {
"resilient": {"type": "bool"},
"splitting_type": {
"type": "dict",
"mutually_exclusive": [
[
"none",
"sg_hash",
"sg_hash_next_hop",
],
],
"options": {
"none": {"type": "bool"},
"sg_hash": {
"type": "bool",
},
"sg_hash_next_hop": {
"type": "bool",
},
},
},
},
},
},
},
},
},
},
},
},
},
"running_config": {"type": "str"},
"state": {
"choices": [
"parsed",
"gathered",
"deleted",
"merged",
"replaced",
"rendered",
"overridden",
"purged",
],
"default": "merged",
"type": "str",
},
} # pylint: disable=C0301
Empty file.
Loading
Loading