Skip to contentSkip to conversation

mirror the config on the fly !?

LARTC raptor 1 participant 1 message Oct 7, 2002

lore
Share & tools
lore

raptor

author
#0 lore raw

hi,

is there easy way to "mirror" the configuration... what i have in mind.. normaly when we setup a class we setting class like this :

dev eth0 {
    class(<$ch1>) if ip_dst = 192.168.0.5;

....
$ch1 = class(rate X,ceil Y);
}
eth1 mirror eth0;# <----now I wan to do something like this ..

so my config will mean this :

dev eth0 {
    class(<$ch1>) if ip_dst = 192.168.0.5;
....
   $ch1 = class(rate X,ceil Y);
}
dev eth1 {
    class(<$mch1>) if ip_src = 192.168.0.5;

....
$mch1 = class(rate X,ceil Y);
}

dst --become--> src AND class-names got appended one "m" in front..

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/