GBP: L3Policy create should have validity check for ip-pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Group Based Policy |
Fix Released
|
Medium
|
Krishna Kothapalli |
Bug Description
During the creation of GBP L3Policy Object, we need to implement validity check for the attribute values.
For example: today any ipaddress is accepted as the ip-pool, including the invalid ones as 0.0.0.0/0 and 255.255.255.255/32.
The above should report error instead of awaiting on the backend neutron to fail in allocating ip-address from an invalid ip-pool.
User should be notified ahead on his attempt of creating an ip-pool with invalid address, instead of hitting the error later down the line
test@localhost:
Created a new l3_policy:
+------
| Field | Value |
+------
| description | |
| external_segments | {} |
| id | 07779195-
| ip_pool | 255.255.255.255/32 |
| ip_version | 4 |
| l2_policies | |
| name | A |
| routers | bd35a374-
| shared | False |
| subnet_
| tenant_id | b3094e3ded7e4d6
+------
test@localhost:
test@localhost:
test@localhost:
Deleted l3_policy: A
test@localhost:
test@localhost:
Created a new l3_policy:
+------
| Field | Value |
+------
| description | |
| external_segments | {} |
| id | 09e55ad4-
| ip_pool | 0.0.0.0/0 |
| ip_version | 4 |
| l2_policies | |
| name | A |
| routers | de491a67-
| shared | False |
| subnet_
| tenant_id | b3094e3ded7e4d6
+------
test@localhost:
affects: | group-based-policy-client → group-based-policy |
Changed in group-based-policy: | |
milestone: | none → kilo-gbp-1 |
assignee: | nobody → Krishna Kothapalli (krishna-sunitha) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in group-based-policy: | |
milestone: | kilo-gbp-1 → kilo-gbp-2 |
tags: | added: juno-backport-potential |
Changed in group-based-policy: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/158183
Review: https:/