Signed-off-by: Li Yang <[email protected]>
---
virttest/virsh.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/virttest/virsh.py b/virttest/virsh.py
index f847d92..4e1ea5c 100644
--- a/virttest/virsh.py
+++ b/virttest/virsh.py
@@ -1080,6 +1080,18 @@ def detach_interface(name, option="", **dargs):
return command(cmd, **dargs)
+def net_uuid(network, extra="", **dargs):
+ """
+ Get network UUID on host.
+
+ @param: network: name/parameter for network option/argument
+ @param: extra: extra parameters to pass to command (e.g. --disable)
+ @param: dargs: standardized virsh function API keywords
+ @return: CmdResult object
+ """
+ return command("net-uuid %s %s" % (network, extra), **dargs)
+
+
def net_dumpxml(net_name="", extra="", **dargs):
"""
Dump XML from network named net_name.
--
1.7.1
--
Regards,
--------------------------------------------------
Li Yang
TEL:+86+25-86630566-8526
EMail:[email protected]
--------------------------------------------------
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel