Background information:
I created a WLAN profile called "My-Tunnel-SSID" in the New Central Config UI.
After some initial testing, I figured I would delete and start fresh, but hit a bug that was preventing me from deleting the WLAN profile altogether.
So I turned to the New Central Config API to see if I could further troubleshoot the issue, delete the profiles, etc...
Here's snippet of the Campus Access Point's WLAN Profile...
GET /v1alpha1/wlan-ssids/My-Tunnel-SSID
{
"ssid": "My-Tunnel-SSID",
"forward-mode": "FORWARD_MODE_L2",
"gw-profile": "My-Tunnel-SSID_1766034791835377384_",
"vlan-selector": "VLAN_RANGES",
"vlan-id-range": ["10"],
}
There is a system generated "gw-profile" from when the SSID was created in the New Central UI.
From what I can tell, the "gw-profile" is a "aaa-profile" that would tell this WLAN profile to tunnel to specific gateway cluster(s).
However, when I GET that config, there's no mention or reference to gateway clusters there either? So where would this be reflected in the API?
GET /v1alpha1/aaa-profile/name/My-Tunnel-SSID_1766034791835377384_
{
"name": "My-Tunnel-SSID_1766034791835377384_",
"authorization": {
"pre-auth-role": My-Tunnel-SSID-Role",
"default-vlan-type": "VLAN_RANGES",
"default-vlan-id": 10
}
}
Now slightly confused, I tried to edit/delete the AAA profile in the Web UI, but I could not delete it as it was system generated.
I decided I would create a new one and update the WLAN profile.
PUT /v1alpha1/aaa-profiles/My-Tunnel-SSID_TEST
PATCH /v1alpha1/wlan-ssids/My-Tunnel-SSID
--data '{"gw-profile": "My-Tunnel-SSID_TEST"}'
This worked and was reflected upon a new GET of the WLAN Profile.
GET /v1alpha1/wlan-ssids/My-Tunnel-SSID
{
"ssid": "My-Tunnel-SSID",
"forward-mode": "FORWARD_MODE_L2",
"gw-profile": "My-Tunnel-SSID_TEST",
"vlan-selector": "VLAN_RANGES",
"vlan-id-range": ["10"],
}
Out of curiosity, I tested deleting the system-generated profile, but I still could not.
However, I WAS able to delete the new "My-Tunnel-SSID-TEST" gw-profile (aaa profile).
It seems like there would be guardrails around this, but for whatever reason, I could delete the gw-profile (aaa profile) while still referencing it in the WLAN profile.
But I still could not delete the WLAN profile - which got the following error.
DELETE / v1alpha1/wlan-ssids/My-Tunnel-SSID
{
"message": "Overlay WLAN SSID 'My-Tunnel-SSID' exists. Delete the overlay WLAN SSID before deleting WLAN SSID.",
"debugId": "6211ced80e2a69e356d17718e878ad5e",
"errorCode": "HPE_GL_ERROR_BAD_REQUEST",
"httpStatusCode": 400
}
So I'm left with some questions...
What is the Overlay WLAN SSID and where do I find this in the API documentation?
What exactly is a "gw-profile" in the WLAN profile config and why doesn't it reference any gateways?
Also, why are there guardrails around deleted system-generated profiles even when I've removed the reference from the WLAN Profile?
And why are there NOT guardrails around deleting the user-generated gw-profile that is actively referenced by the WLAN Profile?
Would it be better to create ALL profiles via API so there is nothing system generated?