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

IP ECMP loadshare mode resource module #442

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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
major_changes:
- sonic_loadshare_mode - Add 'sonic_loadshare_mode' module to Dell enterprise SONiC collection (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/442).
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def __init__(self, **kwargs):
'pim_interfaces',
'login_lockout',
'poe',
'loadshare_mode',
'mgmt_servers',
'ospf_area'
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
#
# -*- 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_loadshare_mode module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

"""The arg spec for the sonic_loadshare_mode module
"""

def __init__(self, **kwargs):
pass

argument_spec = {
"config": {
"options": {
"hash_algorithm": {
"type": "str",
"choices": ["CRC",
"XOR",
"CRC_32LO",
"CRC_32HI",
"CRC_CCITT",
"CRC_XOR",
"JENKINS_HASH_LO",
"JENKINS_HASH_HI"]},
"hash_ingress_port": {"type": "bool"},
"hash_offset": {
"options": {
"offset": {"type": "int"},
"flow_based": {"type": "bool"}
},
"type": "dict"
},
"hash_roce_qpn": {"type": "bool"},
"hash_seed": {"type": "int"},
"ipv4": {
"options": {
"ipv4_dst_ip": {"type": "bool"},
"ipv4_src_ip": {"type": "bool"},
"ipv4_ip_proto": {"type": "bool"},
"ipv4_l4_dst_port": {"type": "bool"},
"ipv4_l4_src_port": {"type": "bool"},
"ipv4_symmetric": {"type": "bool"}
},
"type": "dict"
},
"ipv6": {
"options": {
"ipv6_dst_ip": {"type": "bool"},
"ipv6_src_ip": {"type": "bool"},
"ipv6_next_hdr": {"type": "bool"},
"ipv6_l4_dst_port": {"type": "bool"},
"ipv6_l4_src_port": {"type": "bool"},
"ipv6_symmetric": {"type": "bool"}
},
"type": "dict"
}
},
"type": "dict"
},
"state": {
"choices": ["merged", "replaced", "overridden", "deleted"],
"default": "merged",
"type": "str"
}
} # pylint: disable=C0301
Loading
Loading