]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: fix passt example
authorLaine Stump <laine@redhat.com>
Wed, 18 Jan 2023 14:07:53 +0000 (09:07 -0500)
committerLaine Stump <laine@redhat.com>
Mon, 23 Jan 2023 16:43:32 +0000 (11:43 -0500)
Somehow the example I neglected to fully update the example for the
interface passt backend when the design changed during
development. This fixes the example to reflect what is in the code.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/formatdomain.rst

index f76c7c3d81f5f8ed4fa34b0e49d311263cee68d8..965a064247a3bb145e516710d4016827852e7d38 100644 (file)
@@ -4858,18 +4858,18 @@ ports **with the exception of some subset**.
        <backend type='passt' logFile='/var/log/passt.log'/>
        <mac address="00:11:22:33:44:55"/>
        <source dev='eth0'/>
-       <ip family='ipv4' address='172.17.2.0' prefix='24'/>
-       <ip family='ipv6' address='2001:db8:ac10:fd01::' prefix='64'/>
-       <portForward proto='tcp' address='2001:db8:ac10:fd01::1:10' start='2022'>
-         <port start='22'/>
+       <ip family='ipv4' address='172.17.2.4' prefix='24'/>
+       <ip family='ipv6' address='2001:db8:ac10:fd01::20'/>
+       <portForward proto='tcp'>
+         <range start='2022' to='22'/>
        </portForward>
-       <portForward proto='udp' address='1.2.3.4' start='5000' end='5020'>
-         <port start='6000' end='6020'/>
+       <portForward proto='udp' address='1.2.3.4'>
+         <range start='5000' end='5020' to='6000'/>
+         <range start='5010' end='5015' exclude='yes'/>
        </portForward>
-       <portForward exclude='yes' proto='tcp' address='1.2.3.4' start='5010' end='5015'/>
-       <portForward proto='tcp' start='80'/>
-       <portForward proto='tcp' start='443'>
-         <port start='344'/>
+       <portForward proto='tcp' address='2001:db8:ac10:fd01::1:10'>
+         <range start='80'/>
+         <range start='443' to='344'/>
        </portForward>
      </interface>
    </devices>