feat: support port ranges in switch_port_configs (e.g. port_range = "1-24")

Replace port_id with port_range in variable; add local to expand ranges
into individual port entries before creating meraki_switch_port resources.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jose Martinez
2026-03-18 11:37:11 +01:00
co-authored by Claude Sonnet 4.6
parent 67420fc099
commit 775dbce9a8
4 changed files with 29 additions and 11 deletions
+2 -3
View File
@@ -33,12 +33,11 @@ switch_access_policies = [
# switch_port_configs = [
# {
# serial = "XXXX-XXXX-XXXX" # serial del switch
# port_id = "1"
# name = "Workstation 1"
# port_range = "1-24" # rango de puertos (o "1" para uno solo)
# type = "access"
# vlan = 100
# access_policy_type = "Custom access policy"
# access_policy_number = 1 # número de la política 802.1X-CORPO
# access_policy_number = 1 # número de la política DOT1X-CORPO (id=1)
# },
# ]
switch_port_configs = []