Skip to content

Commit

Permalink
Merge branch 'ansible-collections:main' into add_UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
stalabi1 authored Dec 1, 2023
2 parents 36da834 + 0432923 commit e30e48a
Show file tree
Hide file tree
Showing 155 changed files with 15,412 additions and 1,179 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_l3_interfaces - Added support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/241)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_bgp_communities - Add support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/251).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_bgp_ext_communities - Add support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/252).
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
major_changes:
- Playbook check and diff modes utility functions and sonic_radius_server module support for the check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/279).
minor_changes:
- sonic_radius_server - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/279).
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
major_changes:
- ntp_and_tacacs - Playbook check and diff modes support for sonic_ntp and sonic_tacacs_server modules (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/281).
minor_changes:
- sonic_ntp - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/281).
- sonic_tacacs_server - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/281).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_system - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/284).
- sonic_port_group - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/284).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
minor_changes:
- sonic_vrfs - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/285).
- sonic_logging - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/285).
- sonic_ip_neighbor - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/285).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- sonic_mclag - Add support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/288).
- sonic_mclag - Add VLAN range support for 'unique_ip' and 'peer_gateway' options (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/288).
2 changes: 2 additions & 0 deletions changelogs/fragments/289-bgp-neighbors-prefix-limit-fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- sonic_bgp_neighbors - Fixed prefix-limit issue (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/289)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- sonic_bgp_as_paths - Add support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/290).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- sonic_port_breakout - Add support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/291).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_vrfs - Add mgmt VRF support to sonic_vrfs module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/293).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- regression_report - Generate regression test report based on verbosity (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/294).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_vrfs - Add mgmt VRF replaced state handling to sonic_vrfs module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/298).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_vlans - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/301).
- sonic_interfaces - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/301).
2 changes: 2 additions & 0 deletions changelogs/fragments/302-stp-commands-delete-state-fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- stp - Correct the commands list for STP delete state (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/302).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_l2_interfaces - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/303).
- sonic_lag_interfaces - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/303).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_users - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/304).
- sonic_aaa - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/304).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
minor_changes:
- sonic_acl_interfaces - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/306).
- sonic_l2_acls - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/306).
- sonic_l3_acls - Add support for playbook check and diff modes (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/306).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_interfaces - Change deleted design for interfaces module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/310).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_static_routes - Add playbook check and diff modes support for static routes resource module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/313).
2 changes: 2 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ plugin_routing:
redirect: dellemc.enterprise_sonic.sonic
sonic_system:
redirect: dellemc.enterprise_sonic.sonic
sonic_pki:
redirect: dellemc.enterprise_sonic.sonic
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def __init__(self, **kwargs):
'type': 'list'},
'name': {'required': True, 'type': 'str'}},
'type': 'list'},
'state': {'choices': ['merged', 'deleted'],
'state': {'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'}} # pylint: disable=C0301
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# -*- coding: utf-8 -*-
# Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved
# Copyright 2023 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)

Expand Down Expand Up @@ -54,6 +54,6 @@ def __init__(self, **kwargs):
'default': 'standard',
'type': 'str'}},
'type': 'list'},
'state': {'choices': ['merged', 'deleted'],
'state': {'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'}} # pylint: disable=C0301
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# -*- coding: utf-8 -*-
# Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved
# Copyright 2023 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)

Expand Down Expand Up @@ -68,7 +68,7 @@ def __init__(self, **kwargs):
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted'],
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#
# -*- coding: utf-8 -*-
# Copyright 2023 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_snooping module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'options': {
'afis': {
'elements': 'dict',
'options': {
'afi': {
'choices': ['ipv4', 'ipv6'],
'required': True,
'type': 'str',
},
'enabled': {'type': 'bool'},
'source_bindings': {
'elements': 'dict',
'options': {
'mac_addr': {'required': True, 'type': 'str'},
'ip_addr': {'type': 'str'},
'intf_name': {'type': 'str'},
'vlan_id': {'type': 'int'},
},
'type': 'list',
},
'trusted': {
'elements': 'dict',
'options': {
'intf_name': {'required': True, 'type': 'str'},
},
'type': 'list',
},
'verify_mac': {'type': 'bool'},
'vlans': {'elements': 'str', 'type': 'list'},
},
'type': 'list',
}
},
'type': 'dict',
},
'state': {
'choices': ['merged', 'deleted', 'overridden', 'replaced'],
'default': 'merged',
'type': 'str',
},
} # pylint: disable=C0301
7 changes: 5 additions & 2 deletions plugins/module_utils/network/sonic/argspec/facts/facts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# -*- coding: utf-8 -*-
# Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved
# Copyright 2023 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)
"""
Expand Down Expand Up @@ -47,17 +47,20 @@ def __init__(self, **kwargs):
'static_routes',
'ntp',
'logging',
'pki',
'ip_neighbor',
'port_group',
'dhcp_relay',
'dhcp_snooping',
'acl_interfaces',
'l2_acls',
'l3_acls',
'lldp_global',
'mac',
'bfd',
'copp',
'route_maps'
'route_maps',
'stp'
]

argument_spec = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# -*- coding: utf-8 -*-
# Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved
# Copyright 2023 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)

Expand Down Expand Up @@ -74,7 +74,7 @@ def __init__(self, **kwargs):
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted'],
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/network/sonic/argspec/mclag/mclag.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, **kwargs):
'type': 'dict'
},
'state': {
'choices': ['merged', 'deleted'],
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
Expand Down
Empty file.
78 changes: 78 additions & 0 deletions plugins/module_utils/network/sonic/argspec/pki/pki.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#
# -*- coding: utf-8 -*-
# Copyright 2022 Dell EMC
# 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_pki module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'options': {
'security_profiles': {
'elements': 'dict',
'options':
{
'cdp_list': {'elements': 'str', 'type': 'list'},
'certificate_name': {'type': 'str'},
'key_usage_check': {'type': 'bool'},
'ocsp_responder_list':
{
'elements': 'str',
'type': 'list'
},
'peer_name_check': {'type': 'bool'},
'profile_name': {'required': True, 'type': 'str'},
'revocation_check': {'type': 'bool'},
'trust_store': {'type': 'str'}
},
'type': 'list'
},
'trust_stores': {
'elements': 'dict',
'options': {
'ca_name': {'elements': 'str', 'type': 'list'},
'name': {'required': True, 'type': 'str'}
},
'type': 'list'
}
},
'type': 'dict'
},
'state': {
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, **kwargs):
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted'],
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged'
}
} # pylint: disable=C0301
Empty file.
Loading

0 comments on commit e30e48a

Please sign in to comment.