Thanks for your reply. I'll try with ofctl and will seek out for help if I'm
not able to progress.
-Balaji

On Thu, Jun 2, 2011 at 1:14 PM, Kyriakos Zarifis <[email protected]>wrote:

> Hey,
>
> I'm actually not sure that there's a general model, it depends a lot on
> _when_ you want to install flows. NOX is essentially an event programming
> platform, meaning that it will typically do things when other things happen:
> It will generally edit flows when a signal is sent from the network. (or
> maybe when a timer expires, but technically it's the same, as the timer
> would be triggered by a similar network event). Such events could be
> connections from new switches, link state changes, new traffic arrival
> (packet_in), etc.
>
> If you want to edit flow tables manually, in real time and at random times,
> not triggered by such events, then a tool like dpctl/ofctl might make more
> sense.
>
> You *could* write a NOX component that gets external input (through
> messenger and/or the console.py script, or the GUI), which would make the
> component run a bit of code. It's basically the same principle, you'd be
> 'injecting' a custom event to NOX, and it's handler would install the flow
> you want. But this might be a bit more complicated and not worth the effort,
> if all you need is to install a flow entry, which you can do with ofctl. If
> you want to share your goal in more detail maybe I could think of a more
> specific answer
>
> On Thu, Jun 2, 2011 at 12:57 PM, Balaji Venkataraman <[email protected]>wrote:
>
>> Thanks for your reply, can you please share with us any links or working
>> model of such an application. It will be very useful to understand how to
>> develop this and use it.
>>
>> Thanks and Regards,
>> Balaji
>>
>>
>> On Thu, Jun 2, 2011 at 12:17 PM, Kyriakos Zarifis 
>> <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> NOX does not currently have a command line or a way to manage flow tables
>>> non-programmatically. (However, it is something worth considering for the
>>> future, as it looks like a few people have expressed interest in something
>>> like that. It can be a command line or a more interactive way through the
>>> GUI.)
>>>
>>> For now, you'd have to write your own application like you said  (or use
>>> ofctl)
>>>
>>>
>>> On Thu, Jun 2, 2011 at 12:09 PM, Balaji Venkataraman 
>>> <[email protected]>wrote:
>>>
>>>> I was about to ask the same question, I'm using openvswitch and able to
>>>> apply flows using ovs-ofctl from command line in the switch environment. 
>>>> How
>>>> can one do the same from the NOX? Do we need to write our own application
>>>> for using openflow or does NOX have any way of configuring the flow to the
>>>> switch?
>>>>
>>>> Thanks and Regards,
>>>> Balaji
>>>>
>>>>
>>>> On Thu, Jun 2, 2011 at 11:23 AM, Kyriakos Zarifis <
>>>> [email protected]> wrote:
>>>>
>>>>> If you want to proactively install flow entries a reasonable place to
>>>>> put the code that does it might be the handler of datapath_join, in your
>>>>> component. This code runs when a new switch connects to NOX, and the
>>>>> switch's information is passed to the handler through the event.
>>>>>
>>>>> If that doesn't work for want you want to do, maybe you can describe
>>>>> when exactly you want to install flows
>>>>>
>>>>>
>>>>> On Thu, Jun 2, 2011 at 11:05 AM, kashyap TA <[email protected]>wrote:
>>>>>
>>>>>> Hi All,
>>>>>>         Yes, I tried doing a component, but there is one problem. As
>>>>>> long as I understand the python component, it get a data packet and from
>>>>>> that it get some info and then progemas a flow.
>>>>>>
>>>>>> In my case, All I need to do it program a flow in the switch using the
>>>>>> NOX where I say if it is from a particular port say "portA" with a mac
>>>>>> address"ab:cd:de:ef" and vlan "10" then forward it to "portB" on else 
>>>>>> flood
>>>>>> to all the ports. I am not sure we can just install flows into the box 
>>>>>> with
>>>>>> out getting a datat packet. The swith is a openflow hardware enabled 
>>>>>> switch.
>>>>>>
>>>>>>
>>>>>> Please let me know. If anybody has a sample flow it would be great.
>>>>>> Please do let me know.
>>>>>>
>>>>>> Thanks and Regards
>>>>>> Kashyap
>>>>>> On Thu, May 26, 2011 at 4:41 PM, Baohua Yang <[email protected]>wrote:
>>>>>>
>>>>>>> NOX doesn't provide a CLI, so you might have to write a APP to setup
>>>>>>> your routing rules.
>>>>>>> See here for more information of how to write a simple APP.
>>>>>>> http://noxrepo.org/noxwiki/
>>>>>>>
>>>>>>>  On Thu, May 26, 2011 at 1:09 PM, kashyap TA 
>>>>>>> <[email protected]>wrote:
>>>>>>>
>>>>>>>>  Hi,
>>>>>>>>    I am running nox on my linux machine and I have a openflow
>>>>>>>> enabled hardware switch. I am able to initiate a connection between 
>>>>>>>> the Nox
>>>>>>>> Controller and the hardware switch. I need to push some flows on to the
>>>>>>>> Switch from the NOX controller. Can I do that? and if so how ? I am 
>>>>>>>> not able
>>>>>>>> to find any help guide. I am new to Nox controller. Can some body help.
>>>>>>>>
>>>>>>>> I just need to push a flow which says, if the packet comes from a
>>>>>>>> particular port, push it out on a particular port.
>>>>>>>>
>>>>>>>>
>>>>>>>> Please do let me know.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks and Regards
>>>>>>>> Kashyap
>>>>>>>>  _______________________________________________
>>>>>>>> nox-dev mailing list
>>>>>>>> [email protected]
>>>>>>>> http://noxrepo.org/mailman/listinfo/nox-dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best wishes!
>>>>>>> Baohua
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> nox-dev mailing list
>>>>>> [email protected]
>>>>>> http://noxrepo.org/mailman/listinfo/nox-dev
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> nox-dev mailing list
>>>>> [email protected]
>>>>> http://noxrepo.org/mailman/listinfo/nox-dev
>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to