class Libvirt::NWFilter

Attributes

connection[R]

Public Instance Methods

free → nil click to toggle source

Call virNWFilterFree to free this network filter. After this call the network filter object is no longer valid.

static VALUE libvirt_nwfilter_free(VALUE n)
{
    ruby_libvirt_generate_call_free(NWFilter, n);
}
name → String click to toggle source

Call virNWFilterGetName to retrieve the network filter name.

static VALUE libvirt_nwfilter_name(VALUE n)
{
    ruby_libvirt_generate_call_string(virNWFilterGetName,
                                      ruby_libvirt_connect_get(n), 0,
                                      nwfilter_get(n));
}
undefine → nil click to toggle source

Call virNWFilterUndefine to undefine the network filter.

static VALUE libvirt_nwfilter_undefine(VALUE n)
{
    ruby_libvirt_generate_call_nil(virNWFilterUndefine,
                                   ruby_libvirt_connect_get(n),
                                   nwfilter_get(n));
}
uuid → String click to toggle source

Call virNWFilterGetUUIDString to retrieve the network filter UUID.

static VALUE libvirt_nwfilter_uuid(VALUE n)
{
    ruby_libvirt_generate_uuid(virNWFilterGetUUIDString,
                               ruby_libvirt_connect_get(n), nwfilter_get(n));
}
xml_desc(flags=0) → String click to toggle source

Call virNWFilterGetXMLDesc to retrieve the XML for this network filter.

static VALUE libvirt_nwfilter_xml_desc(int argc, VALUE *argv, VALUE n)
{
    VALUE flags = RUBY_Qnil;

    rb_scan_args(argc, argv, "01", &flags);

    ruby_libvirt_generate_call_string(virNWFilterGetXMLDesc,
                                      ruby_libvirt_connect_get(n), 1,
                                      nwfilter_get(n),
                                      ruby_libvirt_value_to_uint(flags));
}