In policy-classifier , port-range attribute once set by user using CLI/GUI cannot be unset/updated to default/none.
test@localhost:~/devstack$ gbp policy-classifier-create test --port-range 300:500
Created a new policy_classifier:
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| description | |
| direction | |
| id | 3ed590f7-51fe-47ff-8cbc-18f4a74f060b |
| name | test |
| port_range | 300:500 |
| protocol | |
| shared | False |
| tenant_id | 3b4eb7e4327b4d90be39288b2e8dd163 |
+-------------+--------------------------------------+
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-classifier-update test --port-range ''
Bad Request (HTTP 400) (Request-ID: req-8ffc4baa-443b-4613-96b6-a677b4669375)
test@localhost:~/devstack$
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-classifier-update test --port-range None
Bad Request (HTTP 400) (Request-ID: req-381878f1-8066-459a-8a83-f8f3c4062228)
test@localhost:~/devstack$