kohler / click

The Click modular router: fast modular packet processing and analysis
Other
743 stars 321 forks source link

chaning .click file dynamicly #490

Closed ali64mohammad closed 3 years ago

ali64mohammad commented 3 years ago

Hi is it possible to change .click config and apply changes without rerunning click.

ahenning commented 3 years ago

Yes, see https://github.com/kohler/click/issues/459

ali64mohammad commented 3 years ago

if i understand correctly hotconfig is for changing config in element.(?) but i mean for example change this file:

PollDevice(eth1, true)
  -> SetTimestamp
  -> Queue(8)
  -> DelayShaper(10)
  -> BandwidthShaper(131072B/s) // 1Mb
  -> ToDevice(eth2);

PollDevice(eth2, true)
  -> SetTimestamp
  -> Queue(8)
  -> DelayShaper(10)
  -> BandwidthShaper(131072B/s) // 1Mb
  -> ToDevice(eth1);

change it for example like this:

PollDevice(eth1, true)
  -> ToDevice(eth2);

PollDevice(eth2, true)
  -> ToDevice(eth1);

and apply changes with out restarting click. this is possible with hotconfig?

tbarbette commented 3 years ago

Yes. Except the second configuration is not correct :p

ali64mohammad commented 3 years ago

it was just for example, Thanks