class Libvirt::Interface
Constants
- XML_INACTIVE
Attributes
Public Instance Methods
Source
static VALUE libvirt_interface_active_p(VALUE p)
{
ruby_libvirt_generate_call_truefalse(virInterfaceIsActive,
ruby_libvirt_connect_get(p),
interface_get(p));
}
Call virInterfaceIsActive to determine if this interface is currently active.
Source
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));
}
Call virInterfaceCreate to start this interface.
Source
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));
}
Call virInterfaceDestroy to shutdown this interface.
Source
static VALUE libvirt_interface_free(VALUE i)
{
ruby_libvirt_generate_call_free(Interface, i);
}
Call virInterfaceFree to free this interface. The object will no longer be valid after this call.
Source
static VALUE libvirt_interface_mac(VALUE i)
{
ruby_libvirt_generate_call_string(virInterfaceGetMACString,
ruby_libvirt_connect_get(i),
0, interface_get(i));
}
Call virInterfaceGetMACString to retrieve the MAC address of this interface.
Source
static VALUE libvirt_interface_name(VALUE i)
{
ruby_libvirt_generate_call_string(virInterfaceGetName,
ruby_libvirt_connect_get(i), 0,
interface_get(i));
}
Call virInterfaceGetName to retrieve the name of this interface.
Source
static VALUE libvirt_interface_undefine(VALUE i)
{
ruby_libvirt_generate_call_nil(virInterfaceUndefine,
ruby_libvirt_connect_get(i),
interface_get(i));
}
Call virInterfaceUndefine to undefine this interface.
Source
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));
}
Call virInterfaceGetXMLDesc to retrieve the XML of this interface.