ansible-meraki icon indicating copy to clipboard operation
ansible-meraki copied to clipboard

meraki_mx_vlan - add groupPolicyId

Open DerrickTJ opened this issue 2 years ago • 1 comments

Would like to have the ability to apply groupPolicyId to the VLAN as it is part of the API.

The easy path is to just ask for the groupPolicyId and be done with it. The extra mile would be to allow for the group policy name instead, and do the look up against {{baseUrl}}/networks/{{networkID}}/groupPolicies for the groupPolicyId

groupPolicyId is an optional field. Not required.

Example VLAN with a groupPolicyId applied

    {
        "id": 4,
        "networkId": "L_#####",
        "name": "PublicWifi",
        "applianceIp": "192.168.#.#",
        "subnet": "192.168.#.0/23",
        "groupPolicyId": "100",
        "fixedIpAssignments": {},
        "reservedIpRanges": [],
        "dnsNameservers": "opendns",
        "dhcpHandling": "Run a DHCP server",
        "dhcpLeaseTime": "1 hour",
        "dhcpBootOptionsEnabled": false,
        "dhcpOptions": [],
        "interfaceId": "###",
        "mandatoryDhcp": {
            "enabled": false
        }

DerrickTJ avatar Jan 13 '23 18:01 DerrickTJ

I can work on this and shouldn't be too bad to accept both ID and name.

kbreit avatar Jan 18 '23 13:01 kbreit