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
布尔值
指定这个配置集是否使用端口镜像功能。它的有效值包括 TrueFalse,默认值是 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