CLI does not allow unsetting the external segments for L3 Policy
Bug #1424257 reported by
Sumit Naiksatam
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Group Based Policy Client |
Incomplete
|
High
|
Sumit Naiksatam |
Bug Description
Doing:
gbp l3policy-update <ext-segment> --external-segment ""
results in an exception.
Changed in group-based-policy-client: | |
milestone: | none → next |
Changed in group-based-policy-client: | |
status: | Confirmed → Incomplete |
To post a comment you must log in.
This seemed to have worked for me:
gbp l3policy-show b8cc6371- 59a0-4824- 90e0-e201b4962a be ------- ------- --+---- ------- ------- ------- ------- ------- ------- --+ ------- ------- --+---- ------- ------- ------- ------- ------- ------- --+ d411-4f9c- a41d-6cc400dd63 71": [""]} | 59a0-4824- 90e0-e201b4962a be | 3c2a-4c55- 986e-7189dfc2b4 16 | management_ l3policy | 61ae-43a8- 83a8-5295ee7e1b ce | prefix_ length | 24 | fb97db8376b79d7 2c | ------- ------- --+---- ------- ------- ------- ------- ------- ------- --+ controller ~(keystone_admin)]# gbp l3policy-update b8cc6371- 59a0-4824- 90e0-e201b4962a be --external-segment "" 59a0-4824- 90e0-e201b4962a be controller ~(keystone_admin)]# gbp l3policy-show b8cc6371- 59a0-4824- 90e0-e201b4962a be ------- ------- --+---- ------- ------- ------- ------- ------+ ------- ------- --+---- ------- ------- ------- ------- ------+ 59a0-4824- 90e0-e201b4962a be | 3c2a-4c55- 986e-7189dfc2b4 16 | management_ l3policy | 61ae-43a8- 83a8-5295ee7e1b ce | prefix_ length | 24 | fb97db8376b79d7 2c | ------- ------- --+---- ------- ------- ------- ------- ------+
+------
| Field | Value |
+------
| description | |
| external_segments | {"c6032a0a-
| id | b8cc6371-
| ip_pool | 192.168.0.0/16 |
| ip_version | 4 |
| l2_policies | 93e7a59a-
| name | service_
| routers | 95a213a3-
| shared | False |
| subnet_
| tenant_id | 928403289ccf49a
+------
[root@sg1-
Updated l3_policy: b8cc6371-
[root@sg1-
+------
| Field | Value |
+------
| description | |
| external_segments | {} |
| id | b8cc6371-
| ip_pool | 192.168.0.0/16 |
| ip_version | 4 |
| l2_policies | 93e7a59a-
| name | service_
| routers | 95a213a3-
| shared | False |
| subnet_
| tenant_id | 928403289ccf49a
+------