qemu-doc: Get rid of "vlan=X" example in the documentation
authorThomas Huth <thuth@redhat.com>
Mon, 15 Jan 2018 07:40:17 +0000 (08:40 +0100)
committerJason Wang <jasowang@redhat.com>
Mon, 29 Jan 2018 08:05:38 +0000 (16:05 +0800)
The vlan concept is marked as deprecated, so we should not use
this for examples in the documentation anymore.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
qemu-options.hx

index 56b9a8692e74fd0ba5cc167a8e53dc6a3a5cdd28..8ce427da788061a27b800ef6f9d68db6c6d2e071 100644 (file)
@@ -2242,8 +2242,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