is it possible with the tcng-macros or something else to make classes in such a way so that I write them once and set simultaneously classes on many interfaces.. what i mean , something like this : #define-xx superClass(a,b,c) ....... then using superClass(x,y,z) should generate : dev eth0 { egress { class(rate x){} } } dev eth1 { egress { class(rate y){} } } dev eth2 { egress { class(rate z){} } } thanx raptor _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Werner Almesberger
2003-Mar-04 00:37 UTC
Re: [tcng] classes on several interfaces at once ?
raptor wrote:> is it possible with the tcng-macros or something else to make classes > in such a way so that I write them once and set simultaneously classes > on many interfaces.. what i mean , something like this :Well, probably :-) It''s up to you do decide how much time you want to spend on some intricate macro hack, or if you want to write a script that generates full or partial tcng output instead. While it can be fun to create something exceedingly complicated in cpp (try meters.tc for a taste), you have to consider that time_spent = O(something^complexity) :-) - Werner -- _________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net / /_http://www.almesberger.net/____________________________________________/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/