create_subnet
Create a Neutron subnet on a network, using either a provided CIDR or a subnet pool for automatic allocation. Set DHCP, gateway, DNS, IPv6 modes, and allocation pools as needed.
Instructions
Create a Neutron subnet. Service: Neutron (network). Mutates state.
Pass cidr, or subnetpool_id so Neutron allocates the prefix. prefixlen is the length requested from that pool. ipv6_address_mode and ipv6_ra_mode are slaac, dhcpv6-stateful, or dhcpv6-stateless. allocation_pools is a list of objects with start and end addresses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network_id": "<network_id>"
},
"name": "create_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | No | ||
| name | No | ||
| prefixlen | No | ||
| gateway_ip | No | ||
| ip_version | No | ||
| network_id | Yes | ||
| description | No | ||
| enable_dhcp | No | ||
| ipv6_ra_mode | No | ||
| subnetpool_id | No | ||
| dns_nameservers | No | ||
| allocation_pools | No | ||
| ipv6_address_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||