Hi,


How to use OpenFlow controller in a normal python script?



I see that the example in
https://ryu.readthedocs.io/en/latest/writing_ryu_app.html#whetting-your-appetite
can run successfully using command “/usr/bin/ryu run ~/l2.py”. I want to
run the l2.py script with “python3 ~/l2.py” (by adding “if __name__ ==
"__main__":” and with some more coding.



I tried to do something but did not work. I kept the “L2Switch” class from
the example and in my main added “l2 = L2Switch()” and “l2.start()” but
that does not work. I observed that the ports 6633 and 6653 are not open
indicating that the OpenFlow controller has not started.



With best regards,

Govinda
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to