| Class | Libvirt::Network |
| In: |
ext/libvirt/_libvirt.c
|
| Parent: | Object |
Class Libvirt::Network
| connection | [R] |
Call virNetworkIsActive to determine if this network is currently active.
/*
* call-seq:
* net.active? -> [true|false]
*
* Call +virNetworkIsActive+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkIsActive]
* to determine if this network is currently active.
*/
static VALUE libvirt_netw_active_p(VALUE s) {
Call virNetworkGetAutostart to determine if this network will be autostarted when libvirtd starts.
/*
* call-seq:
* net.autostart? -> [true|false]
*
* Call +virNetworkGetAutostart+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetAutostart]
* to determine if this network will be autostarted when libvirtd starts.
*/
static VALUE libvirt_netw_autostart(VALUE s){
Call virNetworkSetAutostart to set this network to be autostarted when libvirtd starts.
/*
* call-seq:
* net.autostart = [true|false]
*
* Call +virNetworkSetAutostart+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkSetAutostart]
* to set this network to be autostarted when libvirtd starts.
*/
static VALUE libvirt_netw_autostart_set(VALUE s, VALUE autostart) {
Call virNetworkGetAutostart to determine if this network will be autostarted when libvirtd starts.
/*
* call-seq:
* net.autostart? -> [true|false]
*
* Call +virNetworkGetAutostart+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetAutostart]
* to determine if this network will be autostarted when libvirtd starts.
*/
static VALUE libvirt_netw_autostart(VALUE s){
Call virNetworkGetBridgeName to retrieve the bridge name for this network.
/*
* call-seq:
* net.bridge_name -> string
*
* Call +virNetworkGetBridgeName+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetBridgeName]
* to retrieve the bridge name for this network.
*/
static VALUE libvirt_netw_bridge_name(VALUE s) {
Call virNetworkCreate to start this network.
/*
* call-seq:
* net.create -> nil
*
* Call +virNetworkCreate+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkCreate]
* to start this network.
*/
static VALUE libvirt_netw_create(VALUE s) {
Call virNetworkDestroy to shutdown this network.
/*
* call-seq:
* net.destroy -> nil
*
* Call +virNetworkDestroy+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkDestroy]
* to shutdown this network.
*/
static VALUE libvirt_netw_destroy(VALUE s) {
Call virNetworkFree to free this network. The object will no longer be valid after this call.
/*
* call-seq:
* net.free -> nil
*
* Call +virNetworkFree+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkFree]
* to free this network. The object will no longer be valid after this call.
*/
static VALUE libvirt_netw_free(VALUE s) {
Call virNetworkGetName to retrieve the name of this network.
/*
* call-seq:
* net.name -> string
*
* Call +virNetworkGetName+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetName]
* to retrieve the name of this network.
*/
static VALUE libvirt_netw_name(VALUE s) {
Call virNetworkIsPersistent to determine if this network is persistent.
/*
* call-seq:
* net.persistent? -> [true|false]
*
* Call +virNetworkIsPersistent+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkIsPersistent]
* to determine if this network is persistent.
*/
static VALUE libvirt_netw_persistent_p(VALUE s) {
Call virNetworkUndefine to undefine this network.
/*
* call-seq:
* net.undefine -> nil
*
* Call +virNetworkUndefine+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkUndefine]
* to undefine this network.
*/
static VALUE libvirt_netw_undefine(VALUE s) {
Call virNetworkGetUUIDString to retrieve the UUID of this network.
/*
* call-seq:
* net.uuid -> string
*
* Call +virNetworkGetUUIDString+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetUUIDString]
* to retrieve the UUID of this network.
*/
static VALUE libvirt_netw_uuid(VALUE s) {
Call virNetworkGetXMLDesc to retrieve the XML for this network.
/*
* call-seq:
* net.xml_desc(flags=0) -> string
*
* Call +virNetworkGetXMLDesc+[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetXMLDesc]
* to retrieve the XML for this network.
*/
static VALUE libvirt_netw_xml_desc(int argc, VALUE *argv, VALUE s) {