On 5/26/20 2:40 AM, Chen Hanxiao wrote:
https://gitlab.com/libvirt/libvirt/-/issues/13 Add support for downscript: <interface type='ethernet'> <mac address='00:11:22:33:44:55'/> <script path='/etc/qemu-ifup'/> <downscript path='/path/to/my/downscript'/> </interface> Signed-off-by: Chen Hanxiao <chen_han_xiao@xxxxxxx> --- docs/formatdomain.html.in | 6 +++++- docs/schemas/domaincommon.rng | 8 ++++++++ src/conf/domain_conf.c | 9 +++++++++ src/conf/domain_conf.h | 1 + 4 files changed, 23 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
This should reflect what version the <downscript/> was added in.
be used to do whatever extra host network integration is required. </p>
Michal