IAM for static IPs in templates

2 views
Skip to first unread message

Marten Lucas

unread,
Jan 19, 2026, 4:08:53 PM (17 hours ago) Jan 19
to OpenWISP
Hi,

I am not sure I understand the IAM of OpenWisp correctly.

I setup a subnet and created IPs for my local infra network (the IPs for the switches).

Now I want to Apply them to a template so that I don't rely on the Configuration variables.
But how do I get a secific IP in the template?


What I have is:
{
            "type": "ethernet",
            "name": "br_lan_172",
            "addresses": [
                {
                    "proto": "static",
                    "family": "ipv4",
                    "address": "172.16.100.2",
                    "mask": 24
                }
            ],
            "device": "br-lan.172",
            "delegate": false
        }

and in the IAM:
{ "id": "93964498-70a0-4b00-9bab-0d7626473b87", "created": "2026-01-18T18:55:12.126729Z", "modified": "2026-01-18T18:55:12.126729Z", "ip_address": "172.16.100.2", "description": "switch-eg", "subnet": "34dfeb04-2d55-453b-8e41-65901a3a48fb" },

1) How do I connect the two ?

2) I have another template for static IPs in the network. Can I use IAM for this template as well? I was hoping I can manage the IAM - IP entries with the MAC and then they get applied to the template.

Please appologize if I get the purpose of IAM wrong. I am fine with using config variables but I don't wanna miss out if there is an easier way.

thx for the help and the great project.

regards

Reply all
Reply to author
Forward
0 new messages