第 74 章 sfc

本章论述了 sfc 命令下的命令。

74.1. sfc 流分类器创建

创建流分类器

使用方法:

openstack sfc flow classifier create [-h]
                                            [-f {json,shell,table,value,yaml}]
                                            [-c COLUMN] [--noindent]
                                            [--prefix PREFIX]
                                            [--max-width <integer>]
                                            [--fit-width] [--print-empty]
                                            [--description <description>]
                                            [--protocol <protocol>]
                                            [--ethertype {IPv4,IPv6}]
                                            [--source-port <min-port>:<max-port>]
                                            [--destination-port <min-port>:<max-port>]
                                            [--source-ip-prefix <source-ip-prefix>]
                                            [--destination-ip-prefix <destination-ip-prefix>]
                                            [--logical-source-port <logical-source-port>]
                                            [--logical-destination-port <logical-destination-port>]
                                            [--l7-parameters L7_PARAMETERS]
                                            <name>

表 74.1. positional 参数

概述

<name>

流分类器的名称

表 74.2. 命令参数

概述

-h, --help

显示帮助信息并退出

--description <description>

流分类器的描述

--protocol <protocol>

IP 协议名称。协议名称应根据 iana 标准。

--ethertype {IPv4,IPv6}

L2 ethertype,默认为 ipv4

--source-port <min-port>:<max-port>

源协议端口(allowed range [1,65535]. 必须指定为 a:b,其中 a=min-port 和 b=max-port)在允许范围内。

--destination-port <min-port>:<max-port>

目的地协议端口(允许范围 [1,65535])。必须指定为允许范围内的 a:b,其中 a=min-port 和 b=max- port)。

--source-ip-prefix <source-ip-prefix>

cidr 标记中的源 IP 地址

--destination-ip-prefix <destination-ip-prefix>

cidr 标记中的目的地 IP 地址

--logical-source-port <logical-source-port>

Neutron 源端口(名称或 id)

--logical-destination-port <logical-destination-port>

Neutron 目的地端口(名称或 id)

--l7-parameters L7_PARAMETERS

l7 参数字典。当前,这个选项不支持值。

表 74.3. 输出格式选项

概述

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

输出格式,默认为 table

-c COLUMN, --column COLUMN

指定要包含的列,可以重复显示多个列

表 74.4. JSON 格式选项

概述

--noindent

是否禁用缩进 json

表 74.5. Shell formatter 选项

概述

--prefix PREFIX

在所有变量名称中添加前缀

表 74.6. 表格式器选项

概述

--max-width <integer>

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

--fit-width

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

--print-empty

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