mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
virt-install: support --network trustGuestRxFilters= (bz 1427600)
This commit is contained in:
parent
8ebed65459
commit
d31e933f24
@ -196,7 +196,7 @@
|
||||
</virtualport>
|
||||
<link state="up"/>
|
||||
</interface>
|
||||
<interface type="direct">
|
||||
<interface type="direct" trustGuestRxFilters="yes">
|
||||
<source dev="eth5" mode="vepa"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<target dev="mytap12"/>
|
||||
|
@ -475,7 +475,7 @@ c.add_compare(""" \
|
||||
--network user,mac=12:34:56:78:11:22,portgroup=foo,link_state=down,rom_bar=on,rom_file=/tmp/foo \
|
||||
--network bridge=foobar,model=virtio,driver_name=qemu,driver_queues=3 \
|
||||
--network bridge=ovsbr,virtualport_type=openvswitch,virtualport_profileid=demo,virtualport_interfaceid=09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b,link_state=yes \
|
||||
--network type=direct,source=eth5,source_mode=vepa,target=mytap12,virtualport_type=802.1Qbg,virtualport_managerid=12,virtualport_typeid=1193046,virtualport_typeidversion=1,virtualport_instanceid=09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b,boot_order=1 \
|
||||
--network type=direct,source=eth5,source_mode=vepa,target=mytap12,virtualport_type=802.1Qbg,virtualport_managerid=12,virtualport_typeid=1193046,virtualport_typeidversion=1,virtualport_instanceid=09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b,boot_order=1,trustGuestRxFilters=yes \
|
||||
--network user,model=virtio,address.type=spapr-vio,address.reg=0x500 \
|
||||
--network vhostuser,source_type=unix,source_path=/tmp/vhost1.sock,source_mode=server,model=virtio \
|
||||
\
|
||||
|
@ -2097,6 +2097,8 @@ class ParserNetwork(VirtCLIParser):
|
||||
_register_virt_parser(ParserNetwork)
|
||||
_add_device_address_args(ParserNetwork)
|
||||
ParserNetwork.add_arg("type", "type", cb=ParserNetwork.set_type_cb)
|
||||
ParserNetwork.add_arg("trustGuestRxFilters", "trustGuestRxFilters",
|
||||
is_onoff=True)
|
||||
ParserNetwork.add_arg("source", "source")
|
||||
ParserNetwork.add_arg("source_mode", "source_mode")
|
||||
ParserNetwork.add_arg("source_type", "source_type")
|
||||
|
@ -284,6 +284,7 @@ class VirtualNetworkInterface(VirtualDevice):
|
||||
virtualport = XMLChildProperty(VirtualPort, is_single=True)
|
||||
type = XMLProperty("./@type",
|
||||
default_cb=lambda s: s.TYPE_BRIDGE)
|
||||
trustGuestRxFilters = XMLProperty("./@trustGuestRxFilters", is_yesno=True)
|
||||
|
||||
macaddr = XMLProperty("./mac/@address",
|
||||
set_converter=_validate_mac,
|
||||
|
Loading…
Reference in New Issue
Block a user