CLI does not allow unsetting the external segments for L3 Policy

Bug #1424257 reported by Sumit Naiksatam
12
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
Revision history for this message
Sumit Naiksatam (snaiksat) wrote :

This seemed to have worked for me:

gbp l3policy-show b8cc6371-59a0-4824-90e0-e201b4962abe
+----------------------+------------------------------------------------+
| Field | Value |
+----------------------+------------------------------------------------+
| description | |
| external_segments | {"c6032a0a-d411-4f9c-a41d-6cc400dd6371": [""]} |
| id | b8cc6371-59a0-4824-90e0-e201b4962abe |
| ip_pool | 192.168.0.0/16 |
| ip_version | 4 |
| l2_policies | 93e7a59a-3c2a-4c55-986e-7189dfc2b416 |
| name | service_management_l3policy |
| routers | 95a213a3-61ae-43a8-83a8-5295ee7e1bce |
| shared | False |
| subnet_prefix_length | 24 |
| tenant_id | 928403289ccf49afb97db8376b79d72c |
+----------------------+------------------------------------------------+
[root@sg1-controller ~(keystone_admin)]# gbp l3policy-update b8cc6371-59a0-4824-90e0-e201b4962abe --external-segment ""
Updated l3_policy: b8cc6371-59a0-4824-90e0-e201b4962abe
[root@sg1-controller ~(keystone_admin)]# gbp l3policy-show b8cc6371-59a0-4824-90e0-e201b4962abe
+----------------------+--------------------------------------+
| Field | Value |
+----------------------+--------------------------------------+
| description | |
| external_segments | {} |
| id | b8cc6371-59a0-4824-90e0-e201b4962abe |
| ip_pool | 192.168.0.0/16 |
| ip_version | 4 |
| l2_policies | 93e7a59a-3c2a-4c55-986e-7189dfc2b416 |
| name | service_management_l3policy |
| routers | 95a213a3-61ae-43a8-83a8-5295ee7e1bce |
| shared | False |
| subnet_prefix_length | 24 |
| tenant_id | 928403289ccf49afb97db8376b79d72c |
+----------------------+--------------------------------------+

Changed in group-based-policy-client:
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.