74.6. SFC 端口链创建
创建端口链
使用方法:
openstack sfc port chain create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>] [--fit-width] [--print-empty] [--description <description>] [--flow-classifier <flow-classifier>] [--chain-parameters correlation=<correlation-type>,symmetric=<boolean>] --port-pair-group <port-pair-group> <name>
表 74.22. 位置参数
值 | 概述 |
---|---|
<name> | 端口链的名称 |
表 74.23. 可选参数
值 | 概述 |
---|---|
-h, --help | 显示帮助信息并退出 |
--description <description> | 端口链的描述 |
--flow-classifier <flow-classifier> | 添加流类符(名称或 ID)。此选项可以重复。 |
--chain-parameters correlation=<correlation-type>,symmetric=<boolean> | 链参数字典。支持 correlation=(mpls|nsh) (默认为 mpls)和 symmetric=(true|false)。 |
--port-pair-group <port-pair-group> | 添加端口对组(名称或 id)。此选项可以重复。 |
表 74.24. 输出格式器
值 | 概述 |
---|---|
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | 输出格式,默认为 table |
-c COLUMN, --column COLUMN | 指定要包含的列,可以重复 |
表 74.25. JSON Formatter
值 | 概述 |
---|---|
--noindent | 是否禁用缩进 json |
表 74.26. shell Formatter
值 | 概述 |
---|---|
--prefix PREFIX | 为所有变量名称添加前缀 |
表 74.27. 表格式
值 | 概述 |
---|---|
--max-width <integer> | 最大显示宽度 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。 |
--fit-width | 适合显示宽度的表。如果 --max-width 大于 0,则意味着。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用 |
--print-empty | 如果没有要显示数据,则打印空表。 |