From 937f6403389affaa8db37cf0cad9f034050d67e5 Mon Sep 17 00:00:00 2001 From: Igor Duarte Cardoso Date: Thu, 27 Jul 2017 12:48:49 +0000 Subject: [PATCH] Add correlation type "nsh" to both PPs and PCs Add correlation type "nsh" to both Port Pair and Port Create commands' help descriptions. The NSH correlation/encapsulation has been added to networking-sfc and this patch makes the client show the option in the help description. Change-Id: Ib25d24cd05e994b7865641a8235d36c741533488 Partial-Bug: #1625278 --- neutronclient/osc/v2/sfc/sfc_port_chain.py | 3 ++- neutronclient/osc/v2/sfc/sfc_port_pair.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/neutronclient/osc/v2/sfc/sfc_port_chain.py b/neutronclient/osc/v2/sfc/sfc_port_chain.py index 37b30208d..0ab2166e6 100755 --- a/neutronclient/osc/v2/sfc/sfc_port_chain.py +++ b/neutronclient/osc/v2/sfc/sfc_port_chain.py @@ -68,7 +68,8 @@ class CreateSfcPortChain(command.ShowOne): action=parseractions.MultiKeyValueAction, optional_keys=['correlation', 'symmetric'], help=_('Dictionary of chain parameters. Supports ' - 'correlation=mpls and symmetric=true|false.')) + 'correlation=(mpls|nsh) (default is mpls) ' + 'and symmetric=(true|false).')) parser.add_argument( '--port-pair-group', metavar='', diff --git a/neutronclient/osc/v2/sfc/sfc_port_pair.py b/neutronclient/osc/v2/sfc/sfc_port_pair.py index b8e64e4c4..2c3f5b969 100755 --- a/neutronclient/osc/v2/sfc/sfc_port_pair.py +++ b/neutronclient/osc/v2/sfc/sfc_port_pair.py @@ -58,7 +58,7 @@ class CreateSfcPortPair(command.ShowOne): action=parseractions.MultiKeyValueAction, optional_keys=['correlation', 'weight'], help=_('Dictionary of service function parameters. ' - 'Currently, correlation=(None|mpls) and weight ' + 'Currently, correlation=(None|mpls|nsh) and weight ' 'are supported. Weight is an integer that influences ' 'the selection of a port pair within a port pair group ' 'for a flow. The higher the weight, the more flows will '