class Libvirt::Interface
Constants
- XML_INACTIVE
Attributes
connection[R]
Public Instance Methods
active? → [true|false]
click to toggle source
Call virInterfaceIsActive to determine if this interface is currently active.
static VALUE libvirt_interface_active_p(VALUE p) { ruby_libvirt_generate_call_truefalse(virInterfaceIsActive, ruby_libvirt_connect_get(p), interface_get(p)); }
create(flags=0) → nil
click to toggle source
Call virInterfaceCreate to start this interface.
static VALUE libvirt_interface_create(int argc, VALUE *argv, VALUE i) { VALUE flags = RUBY_Qnil; rb_scan_args(argc, argv, "01", &flags); ruby_libvirt_generate_call_nil(virInterfaceCreate, ruby_libvirt_connect_get(i), interface_get(i), ruby_libvirt_value_to_uint(flags)); }
destroy(flags=0) → nil
click to toggle source
Call virInterfaceDestroy to shutdown this interface.
static VALUE libvirt_interface_destroy(int argc, VALUE *argv, VALUE i) { VALUE flags = RUBY_Qnil; rb_scan_args(argc, argv, "01", &flags); ruby_libvirt_generate_call_nil(virInterfaceDestroy, ruby_libvirt_connect_get(i), interface_get(i), ruby_libvirt_value_to_uint(flags)); }
free → nil
click to toggle source
Call virInterfaceFree to free this interface. The object will no longer be valid after this call.
static VALUE libvirt_interface_free(VALUE i) { ruby_libvirt_generate_call_free(Interface, i); }
mac → String
click to toggle source
Call virInterfaceGetMACString to retrieve the MAC address of this interface.
static VALUE libvirt_interface_mac(VALUE i) { ruby_libvirt_generate_call_string(virInterfaceGetMACString, ruby_libvirt_connect_get(i), 0, interface_get(i)); }
name → String
click to toggle source
Call virInterfaceGetName to retrieve the name of this interface.
static VALUE libvirt_interface_name(VALUE i) { ruby_libvirt_generate_call_string(virInterfaceGetName, ruby_libvirt_connect_get(i), 0, interface_get(i)); }
undefine → nil
click to toggle source
Call virInterfaceUndefine to undefine this interface.
static VALUE libvirt_interface_undefine(VALUE i) { ruby_libvirt_generate_call_nil(virInterfaceUndefine, ruby_libvirt_connect_get(i), interface_get(i)); }
xml_desc → String
click to toggle source
Call virInterfaceGetXMLDesc to retrieve the XML of this interface.
static VALUE libvirt_interface_xml_desc(int argc, VALUE *argv, VALUE i) { VALUE flags = RUBY_Qnil; rb_scan_args(argc, argv, "01", &flags); ruby_libvirt_generate_call_string(virInterfaceGetXMLDesc, ruby_libvirt_connect_get(i), 1, interface_get(i), ruby_libvirt_value_to_uint(flags)); }