[PATCH 3/3] doc: downscript: updating the documentation

Chen Hanxiao chen_han_xiao at 126.com
Thu May 21 13:59:51 UTC 2020


We can give a postscript for some netdev.

Signed-off-by: Chen Hanxiao <chen_han_xiao at 126.com>
---
 docs/formatdomain.html.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 23eb029234..4e2320d537 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -5879,7 +5879,10 @@
     <p>
       After creating/opening the tap device, an optional shell script
       (given in the <code>path</code> attribute of
-      the <code><script></code> element) will be run; this can
+      the <code><script></code> element) will be run;
+      Also, after detaching/closing the tap device, an optional shell
+      script (given in the <code>path</code> attribute of
+      the <code><downscript></code> element) will be run; this can
       be used to do whatever extra host network integration is
       required.
     </p>
@@ -5889,6 +5892,7 @@
 <devices>
   <interface type='ethernet'>
     <script path='/etc/qemu-ifup-mynet'/>
+    <downscript path='/etc/qemu-ifdown-mynet'/>
   </interface>
   ...
   <interface type='ethernet'>
-- 
2.23.0




More information about the libvir-list mailing list