mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 06:50:22 +00:00
07450cd429
This new attribute will control whether or not libvirt will pay attention to guest notifications about changes to network device mac addresses and receive filters. The default for this is 'no' (for security reasons). If it is set to 'yes' *and* the specified device model and connection support it (currently only macvtap+virtio) then libvirt will watch for NIC_RX_FILTER_CHANGED events, and when it receives one, it will issue a query-rx-filter command, retrieve the result, and modify the host-side macvtap interface's mac address and unicast/multicast filters accordingly. The functionality behind this attribute will be in a later patch. This patch merely adds the attribute to the top-level of a domain's <interface> as well as to <network> and <portgroup>, and adds documentation and schema/xml2xml tests. Rather than adding even more test files, I've just added the net attribute in various applicable places of existing test files.
23 lines
689 B
XML
23 lines
689 B
XML
<network trustGuestRxFilters='no'>
|
|
<name>vepa-net</name>
|
|
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a8b</uuid>
|
|
<forward dev='eth1' mode='vepa'>
|
|
<interface dev='eth1'/>
|
|
<interface dev='eth2'/>
|
|
<interface dev='eth3'/>
|
|
</forward>
|
|
<virtualport type='802.1Qbg'>
|
|
<parameters managerid='11' typeid='1193047' typeidversion='2'/>
|
|
</virtualport>
|
|
<portgroup name='bob' default='yes'>
|
|
<virtualport type='802.1Qbg'>
|
|
<parameters typeid='2193047' typeidversion='3'/>
|
|
</virtualport>
|
|
</portgroup>
|
|
<portgroup name='alice' trustGuestRxFilters='yes'>
|
|
<virtualport type='802.1Qbg'>
|
|
<parameters managerid='13'/>
|
|
</virtualport>
|
|
</portgroup>
|
|
</network>
|