unable to delete malformed SDN subnet

abourges

New Member
Dec 20, 2024
8
0
1
Hi,

...I managed to create a malformed SDN subnet via API :-(

Code:
 {
    "subnet": "sdnZn1-10.20.10.0-24",
    "type": "subnet",
    "vnet": "vl2010"
 }

The object was created:

Code:
{
    "data": [
        {
            "mask": "10.20.10.0",
            "cidr": "sdnZn1/10.20.10.0",
            "digest": "2c191927fc8b604b496993130d038bb8c8b3c35d",
            "subnet": "sdnZn1-sdnZn1-10.20.10.0-24",
            "type": "subnet",
            "zone": "sdnZn1",
            "id": "sdnZn1-sdnZn1-10.20.10.0-24",
            "dhcp-range": [],
            "network": "sdnZn1",
            "vnet": "vl2010"
        }
    ]
}

However - I'm unable to delete the wrong prefix due to type-checking when trying to delete via UI:

Code:
Parameter verification failed. (400)

subnet: invalid format - value does not look like a valid CIDR network


Deleting via API does not work, neither:

1747835818328.png


Any hint on how to get rid of that subnet?

Thanks,

Andreas
 
Delete it from the configuration file (/etc/pve/sdn/subnets.cfg), if you have direct access.
 
Hi,

...that's what I just did :-) worked flawlessly! But it seems that data type verification is missing when generating subnets via API ...

Thanks,

Andreas