-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
nxos_vrf_global
resource module (#870)
* vrf_global init * added parsers * chore: auto fixes from pre-commit.com hooks * add final parsers * chore: auto fixes from pre-commit.com hooks * minor changes in parser * fixed parsers for ssm_translate * chore: auto fixes from pre-commit.com hooks * fixed and added some parsers * chore: auto fixes from pre-commit.com hooks * fixed wrong model issue * chore: auto fixes from pre-commit.com hooks * chore: auto fixes from pre-commit.com hooks * config side code * chore: auto fixes from pre-commit.com hooks * pre-commit fix * chore: auto fixes from pre-commit.com hooks * more pre-commit fix * more pre-commit * added unit test * chore: auto fixes from pre-commit.com hooks * fix syntax * fixed parsed * fix sanity * added commands * added examples * chore: auto fixes from pre-commit.com hooks * fix lint * added intergration test * chore: auto fixes from pre-commit.com hooks * added more tests * replaced * changes to tests * fixed domain names * added rendered * rtt * fix lint * fix docs * chore: auto fixes from pre-commit.com hooks * fix intend * fix spacing * update deprecation * chore: auto fixes from pre-commit.com hooks * edit runtime * fix lint * chore: auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a69be39
commit 3f9912d
Showing
35 changed files
with
4,577 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (https://github.com/ansible-collections/cisco.nxos/pull/870). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nxos.py |
Empty file.
Empty file.
260 changes: 260 additions & 0 deletions
260
plugins/module_utils/network/nxos/argspec/vrf_global/vrf_global.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.