I was looking into an issue where PVE presents me this error when trying to create a SDN subnet:
The thing is there is a bigger prefix that includes the to be created prefix, and due to that it's unwilling.
In this case 10.1.0.0/16, but that's by design in netbox that you can nest prefixes.
As far as I could find out, this comes from this line:
https://github.com/proxmox/pve-network/blob/master/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm#L405
Tbh this should be ?prefix= instead of ?q= to only match the exact prefix.
Tested this with PVE 8.4.1 and Netbox 4.2.5
Cheers, Lukas
create sdn subnet object failed: prefix 10.1.50.0/24 already exists in netbox at /usr/share/perl5/PVE/Network/SDN/Ipams/NetboxPlugin.pm line 80. (500)The thing is there is a bigger prefix that includes the to be created prefix, and due to that it's unwilling.
In this case 10.1.0.0/16, but that's by design in netbox that you can nest prefixes.
As far as I could find out, this comes from this line:
https://github.com/proxmox/pve-network/blob/master/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm#L405
Tbh this should be ?prefix= instead of ?q= to only match the exact prefix.
Tested this with PVE 8.4.1 and Netbox 4.2.5
Cheers, Lukas