[P4-dev] connect own target with openflow to ryu
pierce.mcentagart at barefootnetworks.com
Mon Nov 28 18:42:06 EST 2016
Yes it's possible to use the mininet script with your own target but you
need to change it a little.
The openflow_l2.py script has a function called "setup_bd" which is
relevant only for the switch.p4 based behavioral-model. For your target,
you can delete this function and the lines that call it.
The thrift server running on port 9090 should be for the autogenerated
PD-API. This needs to be started in the main.c you wrote for your target.
Your "p4factory/targets/simple_router/run_add_demo_entries.bash" should add
table entries via this server.
Please let me know if you have any other issues,
On Mon, Nov 28, 2016 at 5:46 AM, Tanja Ulmen <tanja.ulmen at rwth-aachen.de>
> I have created an own target with the p4factory and it is running with a
> mininet script. Now my question is: is there a way to connect my own target
> with openflow to a ryu controller?
> I already added the p4ofagent, and I tried to use the openflow_l2.py
> mininet script with my own behavioral-model instead of the one of the
> switch.p4. The script tries to connect to some thrift server on port 9090
> that I don't have. I have tried to understand how the switch.p4 is working,
> but I don't really get it. If I understand it correctly, in the switch.p4
> this thrift server on 9090 is started by the switchapi and it is used to
> add some auto-generated tables? Until now I add the tables to my switch
> with a file similar to "p4factory/targets/simple_
> It would be nice if I could use openflow with my own target.
> I hope you can help me :).
> Best regards,
> P4-dev mailing list
> P4-dev at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev