Un recurso physio_device siempre está contenido en una sección <Content>. Este recurso se puede modificar mediante los subcomandos add-io, set-io, remove-io, create-vf, destroy-vf y set-domain.
Ejemplo 22-19 Ejemplo de XML de physio_deviceLos siguientes ejemplos muestran cómo realizar acciones en las funciones virtuales, las funciones físicas y los complejos raíz.
El siguiente fragmento de ejemplo de XML muestra cómo utilizar el comando ldm add-io para agregar la función virtual /SYS/MB/NET0/IOVNET.PF0.VF0 al dominio ldg1.
<LDM_interface version="1.3">
<cmd>
<action>add-io</action>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1">
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>physio_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">
/SYS/MB/NET0/IOVNET.PF0.VF0</gprop:GenericProperty>
</Item>
</Section>
</Content>
</Envelope>
</data>
</cmd>
</LDM_interface>El siguiente fragmento de ejemplo de XML muestra cómo utilizar el comando ldm set-io para establecer el valor de propiedad iov_bus_enable_iov en on para el complejo raíz pci_1.
<LDM_interface version="1.3">
<cmd>
<action>set-io</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>physio_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">pci_1</gprop:GenericProperty>
<gprop:GenericProperty key="iov_bus_enable_iov">
on</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>El siguiente fragmento de ejemplo de XML muestra cómo utilizar el comando ldm set-io para establecer el valor de propiedad unicast-slots en 6 para la función física /SYS/MB/NET0/IOVNET.PF1.
<LDM_interface version="1.3">
<cmd>
<action>set-io</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>physio_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">
/SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty>
<gprop:GenericProperty key="unicast-slots">6</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>El siguiente fragmento de ejemplo de XML muestra cómo utilizar el comando ldm create-vf para crear la función virtual /SYS/MB/NET0/IOVNET.PF1.VF0 con los siguientes valores de propiedad.
unicast-slots=6
pvid=3
mtu=1600
<LDM_interface version="1.3">
<cmd>
<action>create-vf</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vf_device</rasd:OtherResourceType>
<gprop:GenericProperty key="iov_pf_name">
/SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty>
<gprop:GenericProperty key="unicast-slots">6</gprop:GenericProperty>
<gprop:GenericProperty key="pvid">3</gprop:GenericProperty>
<gprop:GenericProperty key="mtu">1600</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>El siguiente fragmento de ejemplo XML muestra cómo usar el comando ldm create-vf para crear el número de funciones virtuales especificado por el valor iov_pf_repeat_count_str (3) con la función física /SYS/MB/NET0/IOVNET.PF1. No puede especificar otros valores de propiedad cuando se crean varias funciones virtuales con la propiedad iov_pf_repeat_count_str.
<LDM_interface version="1.3">
<cmd>
<action>create-vf</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vf_device</rasd:OtherResourceType>
<gprop:GenericProperty key="iov_pf_name">
/SYS/MB/NET0/IOVNET.PF1</gprop:GenericProperty>
<gprop:GenericProperty key="iov_pf_repeat_count_str">
3</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
</cmd>
</LDM_interface>