Signed-off-by: Chen Hanxiao <chen_han_xiao@xxxxxxx> --- docs/formatdomain.html.in | 6 +++++- docs/news.xml | 10 ++++++++++ 2 files changed, 15 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'> diff --git a/docs/news.xml b/docs/news.xml index 4cef804aac..67fb85377d 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -52,6 +52,16 @@ </release> <release version="v6.3.0" date="2020-05-05"> <section title="New features"> + <change> + <summary> + qemu: support network interface downscript + </summary> + <description> + QEMU has the ability to run a script when a NIC is brought up + and down. Libvirt only enables use of the up script. + Now add support for postscript when NIC is down/detached. + </description> + </change> <change> <summary> qemu: support disabling hotplug/unplug of PCIe devices -- 2.23.0