Comment 4 for bug 1195974

Revision history for this message
yong sheng gong (gongysh) wrote :

following is my experiment with wrong cidr 10.0.4.2/24:
$ quantum net-create net3
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 3f206a91-a00b-497c-bc4d-36c8435d3293 |
| name | net3 |
| provider:network_type | gre |
| provider:physical_network | |
| provider:segmentation_id | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 51c051a17638408d8969ada0ae5b9b95 |
+---------------------------+--------------------------------------+
$ quantum subnet-create net3 10.0.4.2/24 --name subnet3
Created a new subnet:
+------------------+--------------------------------------------+
| Field | Value |
+------------------+--------------------------------------------+
| allocation_pools | {"start": "10.0.4.2", "end": "10.0.4.254"} |
| cidr | 10.0.4.2/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.0.4.1 |
| host_routes | |
| id | 95f6c03f-5881-40f8-9dcc-48c475650a35 |
| ip_version | 4 |
| name | subnet3 |
| network_id | 3f206a91-a00b-497c-bc4d-36c8435d3293 |
| tenant_id | 51c051a17638408d8969ada0ae5b9b95 |
+------------------+--------------------------------------------+
$ quantum port-create net3 --fixed-ip ip_address=10.0.4.6
Invalid input for operation: IP address 10.0.4.6 is not a valid IP for the defined networks subnets.