summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <bcafarel@redhat.com>2017-07-25 16:12:09 +0200
committerBernard Cafarelli <bcafarel@redhat.com>2017-07-25 17:37:49 +0200
commitb14e842b4ff8cda21ae573fc4240e5e5200b9b27 (patch)
tree142c3f5b0f4c410955bfd6e93deff3b353bb3f88
parent3c211f30af8976d2be518c68eae14b08fba09c6a (diff)
downloadpython-neutronclient-b14e842b4ff8cda21ae573fc4240e5e5200b9b27.tar.gz
SFC plugin: fix flow classifier list display
Current code displays "<type 'type'>[port]:xx" for source/destination ports: $ openstack sfc flow classifier list -c Summary -f value protocol: UDP, <type 'type'>[port]: 192.168.0.14/32[any:any], <type 'type'>[port]: 192.168.0.16/32[any:any], neutron_source_port: 5c196983-c319-41d7-9af0-02301ed85513, neutron_destination_port: None, l7_parameters: {} Change-Id: Ia5c772d48b22d4007dad8645cbfd2ea81cbb80ad Closes-Bug: #1706379
-rwxr-xr-xneutronclient/osc/v2/sfc/sfc_flow_classifier.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neutronclient/osc/v2/sfc/sfc_flow_classifier.py b/neutronclient/osc/v2/sfc/sfc_flow_classifier.py
index 38a3cbb..1d41d73 100755
--- a/neutronclient/osc/v2/sfc/sfc_flow_classifier.py
+++ b/neutronclient/osc/v2/sfc/sfc_flow_classifier.py
@@ -194,7 +194,7 @@ class ListSfcFlowClassifier(command.Lister):
if max_port is None:
max_port = 'any'
return '%s[port]: %s[%s:%s]' % (
- type, ip_prefix, min_port, max_port)
+ val, ip_prefix, min_port, max_port)
def take_action(self, parsed_args):
client = self.app.client_manager.neutronclient