Skip to content

Commit

Permalink
Merge branch 'ansible-collections:main' into vrrp_module
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-kt authored May 9, 2024
2 parents 2444ce6 + 9622527 commit 9df1d25
Show file tree
Hide file tree
Showing 277 changed files with 19,869 additions and 516 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/299-mclag-session-vrf-support.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_mclag - Enable session-vrf command support in mclag(https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/299).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_logging - Add support for protocol option in logging module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/317).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_route_maps - Add playbook check and diff modes support for route_maps module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/331).
- sonic_prefix_lists - Add playbook check and diff modes support for prefix_lists module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/331).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_bgp_neighbors - Add support for replaced and overridden states (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/336).
- sonic_bgp_neighbors - Add support for the "fabric_external" option (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/336).
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
minor_changes:
- sonic_mclag - Add playbook check and diff modes support for mclag module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/337).
- sonic_port_breakout - Add playbook check and diff modes support for port_breakout module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/337).
- sonic_vxlans - Add playbook check and diff modes support for vxlans module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/337).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
minor_changes:
- sonic_stp - Add playbook check and diff modes support for stp module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/338).
- sonic_mac - Add playbook check and diff modes support for mac module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/338).
- sonic_lldp_global - Add playbook check and diff modes support for lldp_global module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/338).
3 changes: 3 additions & 0 deletions changelogs/fragments/342-system-auto-breakout-module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- sonic_system - Add support for configuring auto-breakout feature (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/342).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- unittest - Update config requests validation (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/344).
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
minor_changes:
- sonic_bgp - Add playbook check and diff modes support for bgp module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/350).
- sonic_bgp_af - Add playbook check and diff modes support for bgp_af module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/350).
- sonic_bgp_as_paths - Add playbook check and diff modes support for bgp_as_paths module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/350).
- sonic_bgp_communities - Add playbook check and diff modes support for bgp_communities module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/350).
- sonic_bgp_ext_communities - Add playbook check and diff modes support for bgp_ext_communities module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/350).
3 changes: 3 additions & 0 deletions changelogs/fragments/351-bgp-af-import-vrf-support.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- bgp_af - Add support for 'import vrf' commands (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/351).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- sonic_system - Add support for 'standard_extended' interface-naming mode (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/352).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- sonic_prefix_lists - Fix replaced state handling (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/354).
- sonic_prefix_lists - Fix idempotency failure (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/354).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- sonic_bgp_neighbors - Add playbook check and diff modes support for bgp_neighbors module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/360).
- sonic_bgp_neighbors_af - Add playbook check and diff modes support for bgp_neighbors_af module (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/360).
7 changes: 7 additions & 0 deletions changelogs/fragments/364-interfaces-fix-loopback.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
bugfixes:
- sonic_interfaces - Fix replaced and overridden state handling for Loopback interfaces (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/364).

minor_changes:
- sonic_interfaces - Add description, enabled option support for Loopback interfaces (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/364).
- sonic_interfaces - Update replaced state handling (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/364).
2 changes: 2 additions & 0 deletions changelogs/fragments/366-github-issue-357-fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_interfaces - Fix GitHub issue 357 - set proper default value when deleted (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/366).
2 changes: 2 additions & 0 deletions changelogs/fragments/373-qos-scheduler-update-states.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- sonic_qos_scheduler - Update states implementation (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/373).
4 changes: 4 additions & 0 deletions changelogs/fragments/377-interfaces-vlans-fix-facts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- sonic_interfaces - Fix exception when gathering facts (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/377).
- sonic_vlans - Fix exception when gathering facts (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/377).
50 changes: 50 additions & 0 deletions playbooks/common_examples/qos_buffer_init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
- name: Initializing buffer
hosts: datacenter
connection: network_cli
become: yes
gather_facts: no
collections:
- dellemc.enterprise_sonic
tasks:
- name: Executing the buffer init command
ignore_errors: yes
sonic_config:
lines:
- command: buffer init lossless
prompt: '\[Proceed y/N\]:'
answer: 'y'
- name: print a debug message
ansible.builtin.debug:
msg: Made it to the debug message after issuing command with reboot
- name: Connecting to server after reboot
hosts: datacenter
connection: network_cli
become: yes
gather_facts: no
collections:
- dellemc.enterprise_sonic
tasks:
- name: "Wait for Connection"
ansible.builtin.wait_for_connection:
connect_timeout: 20
sleep: 5
delay: 200
timeout: 400
- name: print a debug message
ansible.builtin.debug:
msg: Made it to the final debug message after connection re-establishment
- name: Configuring QoS buffer
connection: network_cli
sonic_qos_buffer:
config:
buffer_pools:
- name: ingress_lossless_pool
xoff: 2500000
buffer_profiles:
- name: profile1
pool: ingress_lossless_pool
size: 40
static_threshold: 20
pause_threshold: 50000
state: merged
12 changes: 12 additions & 0 deletions plugins/module_utils/network/sonic/argspec/bgp_af/bgp_af.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ def __init__(self, **kwargs):
},
'type': 'list'
},
'import': {
'options': {
'vrf': {
'options': {
'vrf_list': {'type': 'list', 'elements': 'str'},
'route_map': {'type': 'str'}
},
'type': 'dict'
}
},
'type': 'dict'
},
'safi': {
'choices': ['unicast', 'evpn'],
'default': 'unicast',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(self, **kwargs):
},
'type': 'dict'
},
'fabric_external': {'type': 'bool'},
'ip_afi': {
'options': {
'default_policy_name': {'type': 'str'},
Expand Down Expand Up @@ -108,7 +109,7 @@ def __init__(self, **kwargs):
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted'],
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged'
}
} # pylint: disable=C0301
12 changes: 11 additions & 1 deletion plugins/module_utils/network/sonic/argspec/facts/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ def __init__(self, **kwargs):
'bfd',
'copp',
'route_maps',
'stp'
'stp',
'sflow',
'fips',
'qos_buffer',
'qos_pfc',
'qos_maps',
'qos_scheduler',
'qos_wred',
'pim_global',
'pim_interfaces',
'login_lockout'
]

argument_spec = {
Expand Down
Empty file.
54 changes: 54 additions & 0 deletions plugins/module_utils/network/sonic/argspec/fips/fips.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#
# -*- 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_fips module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'options': {
'enable': {
'type': 'bool'
}
},
'type': 'dict'
},
'state': {
'choices': ['merged', 'deleted'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def __init__(self, **kwargs):
'type': 'str'},
'remote_port': {'type': 'int'},
'source_interface': {'type': 'str'},
'vrf': {'type': 'str'}
'vrf': {'type': 'str'},
'protocol': {'choices': ['TCP', 'UDP'],
'type': 'str'},
},
'type': 'list'
}
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#
# -*- 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_login_lockout module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'options': {
'console_exempt': {
'type': 'bool'
},
'max_retries': {
'type': 'int'
},
'period': {
'type': 'int'
}
},
'type': 'dict'
},
'state': {
'choices': ['merged', 'deleted', 'overridden', 'replaced'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
1 change: 1 addition & 0 deletions plugins/module_utils/network/sonic/argspec/mclag/mclag.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def __init__(self, **kwargs):
'type': 'dict'
},
'session_timeout': {'type': 'int'},
'session_vrf': {'type': 'str'},
'source_address': {'type': 'str'},
'system_mac': {'type': 'str'},
'unique_ip': {
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#
# -*- 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_pim_global module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


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

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'elements': 'dict',
'options': {
'ecmp_enable': {'type': 'bool'},
'ecmp_rebalance_enable': {'type': 'bool'},
'join_prune_interval': {'type': 'int'},
'keepalive_timer': {'type': 'int'},
'ssm_prefix_list': {'type': 'str'},
'vrf_name': {'default': 'default', 'type': 'str'}
},
'type': 'list'
},
'state': {
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
Empty file.
Loading

0 comments on commit 9df1d25

Please sign in to comment.