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 LST resource module #447

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(self, **kwargs):
'mgmt_servers',
'ospf_area',
'ssh',
'lst',
]

argument_spec = {
Expand Down
Empty file.
81 changes: 81 additions & 0 deletions plugins/module_utils/network/sonic/argspec/lst/lst.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#
# -*- 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_lst module
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'options': {
'interfaces': {
'elements': 'dict',
'options': {
'downstream_group': {'type': 'str'},
'name': {'required': True, 'type': 'str'},
'upstream_groups': {
'elements': 'dict',
'options': {
'group_name': {'required': True, 'type': 'str'}
},
'type': 'list'
}
},
'type': 'list'
},
'lst_groups': {
'elements': 'dict',
'options': {
'all_evpn_es_downstream': {'type': 'bool'},
'all_mclags_downstream': {'type': 'bool'},
'group_description': {'type': 'str'},
'group_type': {'choices': ['l3'], 'type': 'str'},
'name': {'required': True, 'type': 'str'},
'threshold_down': {'type': 'int'},
'threshold_type': {'choices': ['percentage'], 'type': 'str'},
'threshold_up': {'type': 'int'},
'timeout': {'type': 'int'}
},
'type': 'list'
}
},
'type': 'dict'
},
'state': {
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
Empty file.
Loading
Loading