qemu-doc: Get rid of "vlan=X" example in the documentation
PATCH 1/1 qemu-doc: Get rid of "vlan=X" example in the documentation
The vlan concept is marked as deprecated, so we should not use this for examples in the documentation anymore.
Signed-off-by Thomas Huth <[email protected]>
--- qemu-options.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-options.hx +2 -2
@@ -2257,8 +2257,8 @@ qemu-system-i386 linux.img -net nic -net tap #launch a QEMU instance with two NICs, each one connected #to a TAP device qemu-system-i386 linux.img \ - -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 \ - -net nic,vlan=1 -net tap,vlan=1,ifname=tap1 + -netdev tap,id=nd0,ifname=tap0 -device e1000,netdev=nd0 \ + -netdev tap,id=nd1,ifname=tap1 -device rtl8139,netdev=nd1 @end example @example
Signature · 1 line
1.8.3.1
Jason Wang
AppliedQuoted 13 lines · Thomas Huth
The vlan concept is marked as deprecated, so we should not use this for examples in the documentation anymore.
Signed-off-by Thomas Huth <[email protected]>--- qemu-options.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)qemu-options.hx +0
-0
qemu-options.hx qemu-system-i386 linux.img -net nic -net tap · line 2264
Quoted 10 lines
qemu-options.hx +2
-2@@ -2257,8 +2257,8 @@ qemu-system-i386 linux.img -net nic -net tap #launch a QEMU instance with two NICs, each one connected #to a TAP device qemu-system-i386 linux.img \ - -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 \ - -net nic,vlan=1 -net tap,vlan=1,ifname=tap1 + -netdev tap,id=nd0,ifname=tap0 -device e1000,netdev=nd0 \ + -netdev tap,id=nd1,ifname=tap1 -device rtl8139,netdev=nd1 @end example @example
Applied.
Thanks