[libvirt] [PATCH V6 04/11] Use scripting for cleaning and renaming of chains

2011-11-18 Thread Stefan Berger
Use scripts for the renaming and cleaning up of chains. This allows us to get rid of some of the code that is only capable of renaming and removing chains whose names are hardcoded. A shell function 'collect_chains' is introduced that is given the name of an ebtables chain and then recursively

Re: [libvirt] [PATCH V6 04/11] Use scripting for cleaning and renaming of chains

2011-11-18 Thread Eric Blake
On 11/18/2011 06:32 AM, Stefan Berger wrote: Use scripts for the renaming and cleaning up of chains. This allows us to get rid of some of the code that is only capable of renaming and removing chains whose names are hardcoded. +static const char ebtables_script_func_collect_chains[] = +

Re: [libvirt] [PATCH V6 04/11] Use scripting for cleaning and renaming of chains

2011-11-18 Thread Stefan Berger
On 11/18/2011 11:01 AM, Eric Blake wrote: On 11/18/2011 06:32 AM, Stefan Berger wrote: Use scripts for the renaming and cleaning up of chains. This allows us to get rid of some of the code that is only capable of renaming and removing chains whose names are hardcoded. +static const char