Thanks for the help, all. I can confirm that adding a UUID to the VLAN in config.xml and reconfiguring fixed my issue.
I can only assume that the age of my VLAN, remaining untouched for multiple main version upgrades of Opnsense caused it to never receive a UUID at all. I suppose I should file a bug, now... sigh.
I'm sorry, but I didn't see anything in your post which required a reply. It was obvious from the beginning that UUIDs were used to identify the VLANs, as all API methods were referencing UUIDs - the issue being that the UUID for my VLAN changed every time it was retrieved.
I had no reason to believe any of this applied to me. I had a fully functioning VLAN for years, I obviously didn't miss clicking apply. And my VLAN was not assigned.
I have never edited my config file before today. Hell, I had to ask in this thread where it was!
My oldest backup has my vlan in its current state - that is, without a UUID. It was from 6 April 2023.
OPNsense 25.1.1-amd64.
I'm afraid I haven't the foggiest when I installed Opnsense. I'd guest 2022...? But I've at least run this install through the last 3-4 major versions.
The config file is huge, I wouldn't feel comfortable sharing it publicly even if I had tried to clean it up.
I can only assume that the age of my VLAN, remaining untouched for multiple main version upgrades of Opnsense caused it to never receive a UUID at all. I suppose I should file a bug, now... sigh.
QuoteI feel ignored 😉
I'm sorry, but I didn't see anything in your post which required a reply. It was obvious from the beginning that UUIDs were used to identify the VLANs, as all API methods were referencing UUIDs - the issue being that the UUID for my VLAN changed every time it was retrieved.
QuoteI think I missed an apply. I suspect the same could happen the other way (deletion fails because the assignment is still present).
I had no reason to believe any of this applied to me. I had a fully functioning VLAN for years, I obviously didn't miss clicking apply. And my VLAN was not assigned.
QuoteYou should be able to find the operation that "corrupted" the configuration by looking at the history.
Hopefully you didn't mess that up when you edited in the config file by hand.
I have never edited my config file before today. Hell, I had to ask in this thread where it was!
My oldest backup has my vlan in its current state - that is, without a UUID. It was from 6 April 2023.
QuoteBtw, what version OPNsense are you running, my test was on 25.7.a_36.
OPNsense 25.1.1-amd64.
QuoteFor it to be reported I guess it would be helpful to know the current OPNsense version and if possible get an idea of the upgrade path taken (e.g. "started with OPNsense 1 in 1889 and went from there" :) ) and best the full config file (minus all privacy sensitive data). Somewhere along the upgrades the UUIDs should have been added but wasn't.
I'm afraid I haven't the foggiest when I installed Opnsense. I'd guest 2022...? But I've at least run this install through the last 3-4 major versions.
The config file is huge, I wouldn't feel comfortable sharing it publicly even if I had tried to clean it up.