Closed finkjordanj closed 5 months ago
Hi @finkjordanj could you please try it again with v0.2.2-apha and update if it works now?
@fmunozmiranda the issue with the tfprotov6 plugin crashing apperas to be resolved, however after apply I see all subsequent applys trying to change the guest_port_bouncing and radius_group_attribute.
The config is the same as what was in the original post.
ink@LTWXCGVT333:~/dev/meraki-terraform-test $ terraform apply
meraki_devices_appliance_uplinks_settings.this: Refreshing state...
data.meraki_networks.dev_networks: Reading...
data.meraki_networks.dev_networks: Read complete after 1s
meraki_networks_appliance_firewall_settings.this: Refreshing state...
meraki_networks_appliance_firewall_firewalled_services.this_snmp: Refreshing state...
meraki_networks_appliance_vlans.this_vlan_1: Refreshing state... [id=1]
meraki_networks_appliance_connectivity_monitoring_destinations.this: Refreshing state...
meraki_networks_snmp.this: Refreshing state...
meraki_networks_traffic_analysis.this_spoke: Refreshing state...
meraki_networks_appliance_firewall_firewalled_services.this_icmp: Refreshing state...
meraki_networks_syslog_servers.this_spoke: Refreshing state...
meraki_networks_switch_access_policies.this_site_access_policy: Refreshing state... [name=dot1x/mab]
meraki_networks_appliance_firewall_firewalled_services.this_web: Refreshing state...
meraki_networks_appliance_vlans_settings.this_vlans: Refreshing state...
meraki_networks_appliance_vlans.this_vlan_30: Refreshing state... [id=30]
meraki_networks_appliance_vlans.this_vlan_20: Refreshing state... [id=20]
meraki_networks_appliance_vlans.this_vlan_5: Refreshing state... [id=5]
meraki_networks_appliance_vlans.this_vlan_10: Refreshing state... [id=10]
meraki_networks_appliance_vlans.this_vlan_2: Refreshing state... [id=2]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# meraki_networks_switch_access_policies.this_site_access_policy will be updated in-place
~ resource "meraki_networks_switch_access_policies" "this_site_access_policy" {
~ guest_port_bouncing = true -> false
name = "dot1x/mab"
~ radius_group_attribute = "11" -> ""
# (17 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
If i accept the change it still reads the values in wrong during refresh it appears. So not sure if the value on apply is making it to the dashboard correctly if or the reach from the dashboard isn't being processed correctly by the terraform state refresh.
Please let me know if you want me to open a separate issue on this oddity.
Could you please validate at your Meraki Dashboard if changes of guest_port_bouncing
and radius_group_attribute
were correctly updated?
Please try to update it Via API too. And verify changes were applied and share me screenshots please
The radius attribute doesn't appear to be suggesting the change anymore. Here is the python direct api testing. The guest_port_bouncing appears to be unconfigurable based on what values were passed in via terraform and the api directly.
Python
for site in networks:
if site["name"].find("750-") != -1:
try:
policy = dashboard.switch.updateNetworkSwitchAccessPolicy(
site.get('id'), "1",
name='dot1x/mab',
radiusServers=[{'host': '<-blanked->', 'port': 1812, 'secret': '<-blanked->'}],
radius={'criticalAuth': {'dataVlanId': 10, 'suspendPortBounce': True}, 'failedAuthVlanId': 10, 'reAuthenticationInterval': 3600},
guestPortBouncing=False,
radiusTestingEnabled=False,
radiusCoaSupportEnabled=False,
radiusAccountingEnabled=True,
radiusAccountingServers=[{'host': '<-blanked->', 'port': 1813, 'secret': '<-blanked->'}],
radiusGroupAttribute='',
hostMode='Single-Host',
accessPolicyType='Hybrid authentication',
increaseAccessSpeed=False,
dot1x={'controlDirection': 'both'},
voiceVlanClients=False,
urlRedirectWalledGardenEnabled=False,
)
printj(policy)
The output from the api call.
{
"accessPolicyNumber": "1",
"name": "dot1x/mab",
"radiusServers": [
{
"serverId": "783626335163254409",
"host": "<-blanked->",
"port": 1812
}
],
"radiusTestingEnabled": true,
"guestPortBouncing": true,
"radiusGroupAttribute": "",
"radius": {
"criticalAuth": {
"dataVlanId": 10,
"voiceVlanId": null,
"suspendPortBounce": true
},
"failedAuthVlanId": 10,
"reAuthenticationInterval": 3600,
"cache": {
"enabled": true,
"timeout": 24
}
},
"radiusCoaSupportEnabled": false,
"radiusAccountingEnabled": true,
"radiusAccountingServers": [
{
"serverId": "783626335163254410",
"host": "<-blanked->",
"port": 1813
}
],
"hostMode": "Single-Host",
"accessPolicyType": "Hybrid authentication",
"authenticationMethod": "my RADIUS server",
"increaseAccessSpeed": false,
"guestVlanId": null,
"voiceVlanClients": false,
"urlRedirectWalledGardenEnabled": false,
"dot1x": {
"controlDirection": "both"
},
"counts": {
"ports": {
"withThisPolicy": 0
}
}
}
I believe the guest_port_bouncing even though i have it defined it isn't applicable with some other configuration so even though it was called out as false, the non applied configuration must be set to true and our false while applying may not be getting saved. I don't know exactly in the dashboard the guets_port_bouncing is shown so this secondary change may not be an issue.
Hi @finkjordanj , I was able to reproduce this, and I'd like to check it with the MS team. It is not a Terraform matter. I'll update once I get answers.
Closing this because is not a terraform issue.
Prerequisites
Describe the bug When attempting to build an access policy via terraform resource call getting error on apply about tfprotov6 plug crash.
Expected behavior Expect for resource build to complete.
Screenshots Error on apply.
Environment (please complete the following information):
Additional context Removed updates as device in place updates from reads occurring.