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