Show Table of Contents
4.24. vnicprofile
vnicprofile 资源类型是所有 VNIC(virtual network interface controller - 虚拟网络接口控制器)配置集资源在 Red Hat Virtualization 环境中的组合。
表 4.67. VNIC 配置集参数
| 名称 | 类型 | 描述 | 必需的 | 用户可创建 | 用户可更新 |
|---|---|---|---|---|---|
--name
|
字符串
|
VNIC 配置集的名称。
|
是
|
是
|
是
|
--network-id
|
字符串
|
使用这个配置集的逻辑网络的标识。
|
是
|
否
|
否
|
--correlation_id
|
字符串
|
一个跨系统日志操作的标识。如果客户端没有定义这个标识,系统将会自动产生一个。
|
否
|
是
|
否
|
--description
|
字符串
|
配置集的描述。
|
否
|
是
|
是
|
--expect
|
'201-created'
|
在所期望的 HTTP 头返回前,请求以异步的方式进行处理。它对需要长时间来执行的任务非常有用,可以防止在任务完成前返回成功信号。
|
否
|
否
|
否
|
--custom_properties-custom_property
|
集合
|
传递给脚本的一组用户自定义的环境变量。
|
否
|
是
|
是
|
--port_mirroring
|
布尔值
|
指定这个配置集是否使用端口镜像功能。它的有效值包括
True 和 False,默认值是 False。
|
否
|
否
|
否
|
--custom_properties-custom_property 参数是一个使用下表中的子参数的集合。
表 4.68. --custom_properties-custom_property 参数
| 名称 | 类型 | 描述 |
|---|---|---|
custom_property.name
|
字符串
|
自定义属性名。
|
custom_property.value
|
字符串
|
自定义属性的值。
|
例 4.51. 创建一个新的 VNIC 配置集
[RHEVM shell (connected)]# add vnicprofile --name Gold --network-id 08305a2f-6952-4999-9646-c16137dc6d42
例 4.52. 更新一个 vnic 配置集
[RHEVM shell (connected)]# update vnicprofile Gold --port_mirroring true
例 4.53. 删除一个 vnic 配置集
[RHEVM shell (connected)]# remove vnicprofile Gold

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.