Re: [libvirt] [PATCH 9/13] Add virsh support for new CLI commands

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

 




"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote on 03/17/2010 07:52:53 AM:


>
> On Thu, Mar 11, 2010 at 08:09:13AM -0500, Stefan Berger wrote:
> > This patch adds virsh support for the five new CLI commands to manage
> > network filters.
> >
> > Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
> >
>
> > ---
> >  tools/virsh.c |  349 ++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++
> >  1 file changed, 349 insertions(+)
> >
> > Index: libvirt-acl/tools/virsh.c
> > ===================================================================
> > --- libvirt-acl.orig/tools/virsh.c
> > +++ libvirt-acl/tools/virsh.c
> > @@ -252,6 +252,14 @@ static virNetworkPtr vshCommandOptNetwor
> >      vshCommandOptNetworkBy(_ctl, _cmd, _name,                      \
> >                             VSH_BYUUID|VSH_BYNAME)
> >  
> > +static virNWFilterPtr vshCommandOptNWFilterBy(vshControl *ctl,
> const vshCmd *cmd,
> > +                                                  char **name, int flag);
> > +
> > +/* default is lookup by Name and UUID */
> > +#define vshCommandOptNWFilter(_ctl, _cmd, _name)                    \
> > +    vshCommandOptNWFilterBy(_ctl, _cmd, _name,                      \
> > +                            VSH_BYUUID|VSH_BYNAME)
> > +
> >  static virInterfacePtr vshCommandOptInterfaceBy(vshControl *ctl,
> const vshCmd *cmd,
> >                                                  char **name, int flag);
> >  
> > @@ -3808,6 +3816,300 @@ cmdInterfaceDestroy(vshControl *ctl, con
> >      return ret;
> >  }
> >  
> > +
> > +/*
> > + * "nwfilter-define" command
> > + */
> > +static const vshCmdInfo info_nwfilter_define[] = {
> > +    {"help", gettext_noop("define or update a network filter from
> an XML file")},
> > +    {"desc", gettext_noop("Define a new network filter or update
> an existing one.")},
> > +    {NULL, NULL}
> > +};
>
> Since you wrote this, we've decide to replace 'gettext_noop' with 'N_'
> in all virsh code. 'make syntax-check' should warn about this now, i
> believe


Thanks for pointing this out -- fixed.
Unfortunately 'make syntax-check' does not report the warning. Also, what package provides the 'cppi' tool that is being used during the syntax check?

Thanks and regards,
    Stefan


>
> Regards,
> Daniel
> --
> |: Red Hat, Engineering, London    -o-  
http://people.redhat.com/berrange/:|
> |:
http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org:|
> |:
http://autobuild.org        -o-         http://search.cpan.org/~danberr/:|
> |: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
--
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]