[Click] Dynamically add/change interfaces in Click config

Eddie Kohler ekohler at gmail.com
Fri Dec 16 09:32:18 EST 2011


In kernel mode, another way to do this, is to name a LOT of devices, including 
some that don't yet exist. I assume the new mininet interfaces have a regular 
name framework? -- like "mininet0", "mininet1", ...? I can't easily find this 
information online. You could then say:

FromDevice(mininet0, ALLOW_NONEXISTENT true) -> ..
FromDevice(mininet1, ALLOW_NONEXISTENT true) -> ..
FromDevice(mininet2, ALLOW_NONEXISTENT true) -> ..

Then as the devices are created, the FromDevices will automatically hook up to 
them.

Eddie


On 12/05/2011 04:17 PM, rchertov wrote:
> Typically on Emulab-type testbeds, I do the following.  Make a generic
> click script.  Use perl or bash to determine which interfaces need to be
> used.  Then, use sed to create a click script for a particular node.
>
>   FromDevice(NET_DEVICE) ->  Discard;
>
> sed -e 's/NET_DEVICE/eth12/' generic_script.click>  custom_script.click
>
> Roman
>
>
> On Mon, 5 Dec 2011 13:42:22 -0500, Shrutarshi Basu wrote:
>> Hi all,
>> I'm trying to get Click running under the Mininet network
>> virtualizer. Mininet creates veth interfaces when new switches/hosts
>> are added to the network. However it seems that for Click
>> configurations the interfaces have to be specified statically in the
>> config file. Is there someway I can use a variable to represent the
>> interfaces and then pass in the actual veth interfaces once Mininet
>> has created them? I suppose one way would be to pass the config file
>> through some sort of custom preprocessor that spits out a real config
>> with the correct interfaces and then install that configuration. Is
>> there some standard/alternative way of doing what I want?
>> Thanks,
>> Basu
>>
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list