6.157. Nic struct


表示虚拟机的 NIC。

例如,NIC 的 XML 代表如下所示:

<nic href="/ovirt-engine/api/vms/123/nics/456" id="456">
  <name>nic1</name>
  <vm href="/ovirt-engine/api/vms/123" id="123"/>
  <interface>virtio</interface>
  <linked>true</linked>
  <mac>
    <address>02:00:00:00:00:00</address>
  </mac>
  <plugged>true</plugged>
  <vnic_profile href="/ovirt-engine/api/vnicprofiles/789" id="789"/>
</nic>
Copy to Clipboard Toggle word wrap
Expand
表 6.206. 属性概述
名称类型概述

boot_protocol

BootProtocol

 

注释

字符串

自由包含此对象的注释的文本。

description

字符串

以纯文本形式的人类可读描述。

id

字符串

唯一标识符。

interface

NicInterface

用于 NIC 的驱动程序类型。

链接

布尔值

定义 NIC 是否链接到虚拟机。

mac

Mac

接口的 MAC 地址。

name

字符串

以纯文本形式的人类可读名称。

on_boot

布尔值

 

plugged

布尔值

定义 NIC 是否插入到虚拟机。

Expand
表 6.207. 链接概述
名称类型概述

instance_type

InstanceType

(可选)引用设备所使用的实例类型。

network

Network

对接口应连接到的网络的引用。

network_attachments

NetworkAttachment[]

 

network_labels

NetworkLabel[]

 

reported_devices

ReportedDevice[]

 

statistics

Statistic[]

NIC 统计数据的链接。

模板

模板

(可选)引用设备所使用的模板。

virtual_function_allowed_labels

NetworkLabel[]

 

virtual_function_allowed_networks

network[]

 

vm

Vm

不要使用这个元素,改为使用 vms

vms

Vm[]

对使用此设备的虚拟机的引用。

vnic_profile

VnicProfile

 
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat