6.145.3. 更新 PUT
更新逻辑网络.
可以更新 name
、
description
、ip、vlan
、stp
和 display
属性。
例如,要更新逻辑网络 123
的描述,可发送如下请求:
PUT /ovirt-engine/api/networks/123
PUT /ovirt-engine/api/networks/123
这样的请求正文:
<network> <description>My updated description</description> </network>
<network>
<description>My updated description</description>
</network>
网络的最大传输单元使用 PUT 请求来设置,以指定 mtu
属性的整数值。
例如,要设置最大传输单元会发送如下请求:
PUT /ovirt-engine/api/datacenters/123/networks/456
PUT /ovirt-engine/api/datacenters/123/networks/456
这样的请求正文:
<network> <mtu>1500</mtu> </network>
<network>
<mtu>1500</mtu>
</network>
注意
更新外部网络不会传播到提供程序。