第 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. 位置参数
概述

<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- 端口在允许范围内。

--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 Formatter
概述

--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

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

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat, Inc.