Re: [libvirt-glib PATCH] Add filterref and filterref parameter support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

On Mon, Oct 21, 2013 at 11:36:25AM -0700, Ian Main wrote:
> On Wed, Oct 16, 2013 at 11:12:46AM +0200, Christophe Fergeau wrote:
> > I'm wondering if we should call that method
> > gvir_config_domain_interface_filterref_set_filter_name()
> > so that in the future we can have
> > gvir_config_domain_interface_filterref_set_filter(GVirConfigDomainInterfaceFilterref *ref,
> >                                                   GVirConfigNwFilter *filter);
> 
> Where would the GVirConfigNwFilter come from?  This would be an
> interface to actually create the filter definition or get a handle for
> one?

The former. Hopefully one day libvirt-gconfig will have API like

GVirConfigNwFilter *filter;
GVirConfigNwFilterRule *rule;

filter = gvir_config_nw_filter_new();
gvir_config_nw_filter_set_name(filter, "my-filter");
rule = gvir_config_nw_filter_rule_new();
gvir_config_nw_filter_rule_set_action(rule, GVIR_CONFIG_NW_FILTER_RULE_ACTION_DROP);
gvir_config_nw_filter_add_rule(filter, rule);

which would just generate the XML for the rule.

Christophe

Attachment: pgpjvCOh2w_zw.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]