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 Enterprise SONiC "dhcp_relay" resource module #131

Merged
Merged
Show file tree
Hide file tree
Changes from 3 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
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
#
# -*- coding: utf-8 -*-
# Copyright 2022 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_dhcp_relay module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'elements': 'dict',
'options': {
'ipv4': {
'options': {
'circuit_id': {
'choices': ['%h:%p', '%i', '%p'],
'type': 'str'
},
'link_select': {'type': 'bool'},
'max_hop_count': {'type': 'int'},
'policy_action': {
'choices': ['append', 'discard', 'replace'],
'type': 'str'
},
'server_addresses': {
'elements': 'dict',
'options': {
'address': {'type': 'str'}
},
'type': 'list'
},
'source_interface': {'type': 'str'},
'vrf_name': {'type': 'str'},
'vrf_select': {'type': 'bool'}
},
'type': 'dict'
},
'ipv6': {
'options': {
'max_hop_count': {'type': 'int'},
'server_addresses': {
'elements': 'dict',
'options': {
'address': {'type': 'str'}
},
'type': 'list'
},
'source_interface': {'type': 'str'},
'vrf_name': {'type': 'str'},
'vrf_select': {'type': 'bool'}
},
'type': 'dict'
},
'name': {'required': True, 'type': 'str'}
},
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
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 @@ -45,7 +45,8 @@ def __init__(self, **kwargs):
'radius_server',
'static_routes',
'ntp',
'logging'
'logging',
'dhcp_relay'
]

argument_spec = {
Expand Down
Empty file.
Loading