Hi,

I think it is not so hard to eliminate Ruby dependency from Trema.
You may develop and run your controller application without Ruby as follows:

(1) Create a Makefile to build libtrema.a and core modules (switch_manager at 
least)
(2) Build libtrema.a and core modules with the Makefile
(3) Write your controller in C
(4) Build your controller which links with libtrema.a
(5) Run your controller manually or by a script like follows:

  $ mkdir -p /somewhere/tmp/log; mkdir /somewhere/tmp/pid; mkdir -p 
/somewhere/tmp/sock
  $ export TREMA_HOME=/somewhere
  $ /somewhere/switch_manager/switch_manager --daemonize --port=6633 \
  --switch=/somewhere/switch_manager/switch -- \
  port_status::your_app packet_in::your_app state_notify::your_app 
vendor::your_app
  $ /somewhere/your_app/your_app --name your_app --daemonize

Regards,
CHIBA Yasunobu

(2012/02/15 23:24), Simon van der Linden wrote:
Hello,

I'm looking for an elementary library to implement a controller in C. I would 
like not to depend on Ruby as Trema does (AFAIK the only controller framework 
for plain C). I have seen the small controller in the OpenFlow reference 
implementation, but at first glance the basic protocol implementation does not 
seem exported.

I would appreciate if someone could point me to such a library. Otherwise I 
will work on extracting the useful bits from Trema for instance in order to 
create one.

Cheers,

-- Simon
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss



--
CHIBA Yasunobu
System Platforms Research Labs, NEC Corporation
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to