On 11/25/2012 07:08 PM, Mr Dash Four wrote:
>> No -- it was implemented; I simply neglected to document it.
 >
> Indeed. It works, though I have another question regarding macros:
> since these are included in the chain 'inline' so to speak, is it
> possible for a macro to get the name of the chain in which this
> particular macro is going to be 'inlined'?

It would be possible but I don't think that it is desirable. Such a 
scheme would prevent being able to use the same switch in multiple chains.

>
> If that is possible, this would have a good practical use in the
> SWITCH column of that macro (which is, indeed, implemented) so that I
> could, for example, use "${chain)_macro_switch" in the SWITCH column.

Again, I'm not in favor of that approach.

> Related to that question, in case what I've just suggested is not
> possible: can I pass more than 1 parameter to a macro?
>

It is not currently possible but it is something that I would like to do 
and it would be my preferred approach to providing the capability that 
you are looking for.

If I can get it implemented in the next week, I'll include it in 4.5.10; 
otherwise, it will have to wait for 4.5.11.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to