newbee click questions
Eddie Kohler
kohler at aciri.org
Tue Jun 26 23:34:17 EDT 2001
You could do exactly this from click-combine. It might not work like this
today (in particular, the StaticThreadSched won't work), but it will soon.
(1) Write the two router configurations. Maybe they are very similar, only
with different configuration data; doesn't matter; functionally, it is 2
different configurations, that (for example) refer to different device
elements. Put configs in files a.click and b.click.
(2) Combine with click-combine as follows:
click-combine A:a.click B:b.click > combined.click
Note: no links.
(3) click-install combined.click
If you want multiple threads, then:
(3) compile Click with --enable-multithread=2
(4) add an element to combined.click like
StaticThreadSched(A 0, B 1);
(says run all elements in router A on thread 0, and all elements in router
B on thread 1)
(5) click-install -t2 combined.click
love,
ed
More information about the click
mailing list