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 sonic_mirroring resource module #415

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions changelogs/fragments/415-sonic-mirroring-module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
major_changes:
- sonic_mirroring - Add 'sonic_mirroring' module to Dell enterprise SONiC collection (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/415).
3 changes: 2 additions & 1 deletion plugins/module_utils/network/sonic/argspec/facts/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def __init__(self, **kwargs):
'pim_global',
'pim_interfaces',
'login_lockout',
'poe'
'poe',
'mirroring'
]

argument_spec = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#
# -*- coding: utf-8 -*-
# Copyright 2024 Dell Inc. or its subsidiaries. All Rights Reserved
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

#############################################
# WARNING #
#############################################
#
# This file is auto generated by the resource
# module builder playbook.
#
# Do not edit this file manually.
#
# Changes to this file will be over written
# by the resource module builder.
#
# Changes should be made in the model used to
# generate this file or in the resource module
# builder template.
#
#############################################

"""
The arg spec for the sonic_mirroring module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


class MirroringArgs(object): # pylint: disable=R0903

"""The arg spec for the sonic_mirroring module
"""

def __init__(self, **kwargs):
pass

argument_spec = {
"config": {
"options": {
"span": {
"elements": "dict",
"options": {
"name": {"required": True, "type": "str"},
"dst_port": {"type": "str"},
"source": {"type": "str"},
"direction": {"choices": ["rx", "tx", "both"],
"type": "str"}
},
"type": "list"
},
"erspan": {
"elements": "dict",
"options": {
"name": {"required": True, "type": "str"},
"dst_ip": {"type": "str"},
"src_ip": {"type": "str"},
"source": {"type": "str"},
"direction": {"choices": ["rx", "tx", "both"],
"type": "str"},
"dscp": {"type": "int"},
"gre": {"type": "str"},
"ttl": {"type": "int"},
"queue": {"type": "int"}
},
"type": "list"
}
},
"type": "dict"
},
"state": {
"choices": ["merged", "replaced", "overridden", "deleted"],
"default": "merged",
"type": "str"
}
} # pylint: disable=C0301
Loading
Loading