[libvirt-perl PATCH] interface: list active and inactive interface by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



flags with 0 can not list interfaces, use flags in libvirt.h
by default to list all of active and inactive interfaces

 VIR_CONNECT_LIST_INTERFACES_INACTIVE = 1 << 0
 VIR_CONNECT_LIST_INTERFACES_ACTIVE   = 1 << 1
---
 Virt.xs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Virt.xs b/Virt.xs
index a22cd2f..ea45e34 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -1980,7 +1980,8 @@ list_all_domains(con, flags=0)
 
 
 void
-list_all_interfaces(con, flags=0)
+list_all_interfaces(con, flags=VIR_CONNECT_LIST_INTERFACES_ACTIVE|
+                               VIR_CONNECT_LIST_INTERFACES_INACTIVE)
       virConnectPtr con;
       unsigned int flags;
  PREINIT:
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]