Skip to content

Commit

Permalink
Add Enterprise SONiC "dhcp_relay" resource module (#131)
Browse files Browse the repository at this point in the history
* Add Enterprise SONiC "dhcp_relay" resource module

* Update sonic_dhcp_relay.py

* Update delete all handling

* Address review comments
  • Loading branch information
ArunSaravananBalachandran authored Dec 29, 2022
1 parent 534f2ed commit f98c88d
Show file tree
Hide file tree
Showing 17 changed files with 1,717 additions and 1 deletion.
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

0 comments on commit f98c88d

Please sign in to comment.