1. On IP address:
If you are running beacon locally on your host (using eclipse) and using
the VM, the IP address will be your host's IP address/127.0.0.1
2. For python code, use something like this (using the attached file
flowmod.py):
from flowmod import FlowMod
fm = FlowMod('00:00:00:00:00:00:00:01', 'flow-mod-1')\
.src_mac('0e:cd:01:12:ff:de')\
.dst_mac('d6:45:5d:b9:bb:a6')\
.active('true')
fm.push()
On Thu, May 12, 2011 at 4:09 PM, Gaba Foli kodjo <[email protected]>wrote:
> Hi Mandeep,
>
> Thank you for your answer. I am interested in the python example. Please
> send it to me.
> I am able to run the beacon controller from my local machine with eclipse
> to connect to the mininet network on the virtual machine. How can I get the
> beacon web page IP. I tried the local machine where eclipse is running IP
> but I am not getting the page. Please do have any clue?
>
> Thanks,
> Foli
>
> Le 12 mai 2011 à 19:46, Mandeep Dhami a écrit :
>
> For beacon, have a look at
> http://www.openflowhub.org/display/Beacon/Getting+Started+with+Beacon+Workbench.
> It has a section on using beacon's REST interface to create flow entries
> using HTTP PUT (search for text "create a similar flow entry using the
> REST interface").
>
> You can issue that http PUT request using command line (curl, as shown
> there) or use the native HTTP library in the language of your choice (Java,
> python, etc). Let me know if you need an example of using that interface
> from python.
>
> Regards,
> Mandeep
>
> On Thu, May 12, 2011 at 9:26 AM, Gaba Foli kodjo
> <[email protected]>wrote:
>
>> Hi,
>>
>> Is there any tutorial explaining how to modify the flow table trough a
>> Java (beacon controller), pyton or C++ code? Please share any tips or
>> advice.
>>
>> Thanks,
>> Foli
>>
>> PS: www.openflow.org is down
>> _______________________________________________
>> openflow-discuss mailing list
>> [email protected]
>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>>
>
>
>
flowmod.py
Description: Binary data
_______________________________________________ openflow-discuss mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
