Hello, So I think I've done it. I tested it on 3 networks and it worked. See the code below: import csv from datetime import datetime import os import meraki # Either input your API key below by uncommenting line 10 and changing line 15 to api_key=api_key, # or set an environment variable (preferred) to define your API key. The former is insecure and not recommended. # For example, in Linux/macOS: export MERAKI_DASHBOARD_API_KEY=093b24e85df15a3e66f1fc359f4c48493eaa1b73 api_key = 'xxx' def updateNetworkVlan(self, networkId: str, vlanId: str, **kwargs): csv_file = open('TestScript.csv') csv_reader = csv.reader(csv_file, delimiter=',') # csv_reader stocheaza id retea si subnet print(csv_reader) for NetworkID, Subnet, IP in csv_reader: print(NetworkID, Subnet, IP) collect = {} network_id = NetworkID collect[NetworkID] = network_id vlan_id = '1' collect['vlan_id'] = vlan_id update_network_vlan = UpdateNetworkVlanModel() update_network_vlan.name = 'Agentii' update_network_vlan.subnet = Subnet update_network_vlan.appliance_ip = IP update_network_vlan.dhcp_handling = DhcpHandlingEnum.ENUM_RUN_A_DHCP_SERVER update_network_vlan.dhcp_lease_time = DhcpLeaseTimeEnum.ENUM_1_DAY update_network_vlan.dhcp_boot_options_enabled = False update_network_vlan.dhcp_boot_next_server = 'null' update_network_vlan.dhcp_boot_filename = 'null' update_network_vlan.dns_nameservers = 'google_dns' collect['update_network_vlan'] = update_network_vlan result = vlans_controller.update_network_vlan(collect) One more question tough, after I run it I would like to get a print back that everythong was OK or if I got any errors on any networks. How can I do that? Really appreciate the guidance !!
... View more