74.12. SFC 端口对创建

创建端口对

使用方法:

openstack sfc port pair create [-h] [-f {json,shell,table,value,yaml}]
                                      [-c COLUMN] [--noindent]
                                      [--prefix PREFIX]
                                      [--max-width <integer>] [--fit-width]
                                      [--print-empty]
                                      [--description <description>]
                                      [--service-function-parameters correlation=<correlation-type>,weight=<weight>]
                                      --ingress <ingress> --egress <egress>
                                      <name>

表 74.45. 位置参数

概述

<name>

端口对的名称

表 74.46. 可选参数

概述

-h, --help

显示帮助信息并退出

--description <description>

端口对的描述

--service-function-parameters correlation=<correlation-type>,weight=<weight>

支持服务函数参数的字典。目前,支持 correlation=(None|mpls|nsh)和 weight。weight 是一个整数,它会影响为流的 port 对选择端口对。权重越高,流量越大将哈希到端口对。默认权重为 1。

--Ingress <ingress>

Ingress neutron 端口(名称或 id)

--egress <egress>

出口 neutron 端口(名称或 id)

表 74.47. 输出格式器

概述

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

输出格式,默认为 table

-c COLUMN, --column COLUMN

指定要包含的列,可以重复

表 74.48. JSON Formatter

概述

--noindent

是否禁用缩进 json

表 74.49. shell Formatter

概述

--prefix PREFIX

为所有变量名称添加前缀

表 74.50. 表格式

概述

--max-width <integer>

最大显示宽度 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。

--fit-width

适合显示宽度的表。如果 --max-width 大于 0,则意味着。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用

--print-empty

如果没有要显示数据,则打印空表。