Class Libvirt::Interface
In: ext/libvirt/_libvirt.c
Parent: Object

Methods

active?   create   destroy   free   mac   name   undefine   xml_desc  

Constants

XML_INACTIVE = INT2NUM(VIR_INTERFACE_XML_INACTIVE)

Attributes

connection  [R] 

Public Instance methods

Call virInterfaceIsActive to determine if this interface is currently active.

[Source]

/*
 * call-seq:
 *   interface.active? -> [true|false]
 *
 * Call +virInterfaceIsActive+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceIsActive]
 * to determine if this interface is currently active.
 */
static VALUE libvirt_interface_active_p(VALUE p) {

Call virInterfaceCreate to start this interface.

[Source]

/*
 * call-seq:
 *   interface.create(flags=0) -> nil
 *
 * Call +virInterfaceCreate+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceCreate]
 * to start this interface.
 */
static VALUE libvirt_interface_create(int argc, VALUE *argv, VALUE s) {

Call virInterfaceDestroy to shutdown this interface.

[Source]

/*
 * call-seq:
 *   interface.destroy(flags=0) -> nil
 *
 * Call +virInterfaceDestroy+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceDestroy]
 * to shutdown this interface.
 */
static VALUE libvirt_interface_destroy(int argc, VALUE *argv, VALUE s) {

Call virInterfaceFree to free this interface. The object will no longer be valid after this call.

[Source]

/*
 * call-seq:
 *   interface.free -> nil
 *
 * Call +virInterfaceFree+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceFree]
 * to free this interface.  The object will no longer be valid after this call.
 */
static VALUE libvirt_interface_free(VALUE s) {

Call virInterfaceGetMACString to retrieve the MAC address of this interface.

[Source]

/*
 * call-seq:
 *   interface.mac -> string
 *
 * Call +virInterfaceGetMACString+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceGetMACString]
 * to retrieve the MAC address of this interface.
 */
static VALUE libvirt_interface_mac(VALUE s) {

Call virInterfaceGetName to retrieve the name of this interface.

[Source]

/*
 * call-seq:
 *   interface.name -> string
 *
 * Call +virInterfaceGetName+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceGetName]
 * to retrieve the name of this interface.
 */
static VALUE libvirt_interface_name(VALUE s) {

Call virInterfaceUndefine to undefine this interface.

[Source]

/*
 * call-seq:
 *   interface.undefine -> nil
 *
 * Call +virInterfaceUndefine+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceUndefine]
 * to undefine this interface.
 */
static VALUE libvirt_interface_undefine(VALUE s) {

Call virInterfaceGetXMLDesc to retrieve the XML of this interface.

[Source]

/*
 * call-seq:
 *   interface.xml_desc -> string
 *
 * Call +virInterfaceGetXMLDesc+[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceGetXMLDesc]
 * to retrieve the XML of this interface.
 */
static VALUE libvirt_interface_xml_desc(int argc, VALUE *argv, VALUE s) {

[Validate]