[PATCH v2.1 0/3] Support network interface downscript

Chen Hanxiao posted 3 patches 3 years, 11 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1590453661-1791-1-git-send-email-chen_han_xiao@126.com
There is a newer version of this series
docs/formatdomain.html.in               |  6 ++-
docs/news.xml                           | 10 +++++
docs/schemas/domaincommon.rng           |  8 ++++
src/conf/domain_conf.c                  |  9 ++++
src/conf/domain_conf.h                  |  1 +
src/qemu/qemu_extdevice.c               |  4 ++
src/qemu/qemu_hotplug.c                 |  3 ++
tests/qemuxml2argvdata/downscript.xml   | 60 +++++++++++++++++++++++++
tests/qemuxml2xmloutdata/downscript.xml | 60 +++++++++++++++++++++++++
tests/qemuxml2xmltest.c                 |  1 +
10 files changed, 161 insertions(+), 1 deletion(-)
create mode 100644 tests/qemuxml2argvdata/downscript.xml
create mode 100644 tests/qemuxml2xmloutdata/downscript.xml
[PATCH v2.1 0/3] Support network interface downscript
Posted by Chen Hanxiao 3 years, 11 months ago
QEMU has the ability to run a script when a NIC is brought up and down. 
Libvirt only enables use of the up script at this time.
This series add support for postscript when NIC is down/detached.

Chen Hanxiao (3):
  interface: introduce downscript
  downscript: add support for booting and hotplug interface
  news: add description about downscript

 docs/formatdomain.html.in               |  6 ++-
 docs/news.xml                           | 10 +++++
 docs/schemas/domaincommon.rng           |  8 ++++
 src/conf/domain_conf.c                  |  9 ++++
 src/conf/domain_conf.h                  |  1 +
 src/qemu/qemu_extdevice.c               |  4 ++
 src/qemu/qemu_hotplug.c                 |  3 ++
 tests/qemuxml2argvdata/downscript.xml   | 60 +++++++++++++++++++++++++
 tests/qemuxml2xmloutdata/downscript.xml | 60 +++++++++++++++++++++++++
 tests/qemuxml2xmltest.c                 |  1 +
 10 files changed, 161 insertions(+), 1 deletion(-)
 create mode 100644 tests/qemuxml2argvdata/downscript.xml
 create mode 100644 tests/qemuxml2xmloutdata/downscript.xml

-- 
2.23.0

Re: [PATCH v2.1 0/3] Support network interface downscript
Posted by Michal Privoznik 3 years, 11 months ago
On 5/26/20 2:40 AM, Chen Hanxiao wrote:
> QEMU has the ability to run a script when a NIC is brought up and down.
> Libvirt only enables use of the up script at this time.
> This series add support for postscript when NIC is down/detached.
> 
> Chen Hanxiao (3):
>    interface: introduce downscript
>    downscript: add support for booting and hotplug interface
>    news: add description about downscript
> 
>   docs/formatdomain.html.in               |  6 ++-
>   docs/news.xml                           | 10 +++++
>   docs/schemas/domaincommon.rng           |  8 ++++
>   src/conf/domain_conf.c                  |  9 ++++
>   src/conf/domain_conf.h                  |  1 +
>   src/qemu/qemu_extdevice.c               |  4 ++
>   src/qemu/qemu_hotplug.c                 |  3 ++
>   tests/qemuxml2argvdata/downscript.xml   | 60 +++++++++++++++++++++++++
>   tests/qemuxml2xmloutdata/downscript.xml | 60 +++++++++++++++++++++++++
>   tests/qemuxml2xmltest.c                 |  1 +
>   10 files changed, 161 insertions(+), 1 deletion(-)
>   create mode 100644 tests/qemuxml2argvdata/downscript.xml
>   create mode 100644 tests/qemuxml2xmloutdata/downscript.xml
> 

I'm fixing all the small nits I've raised and pushing.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal