Hi Attilo,

The files you are playing with belong to the switch implementation and not
NOX. My instructions described how to use the controller to define a list of
actions that should be performed on a switch when a flow is matched.

If you are actually trying to add new actions (new functionalities) on the
switch that are not in the openflow specification, that's a whole different
(and much bigger) story - and it's an openflow question. But I'm pretty sure
that's not what you want to do. The 2 actions you described in the first
message (set vlan, send on a port) are both valid, existing OF actions. You
just need to make NOX tell the switch to perform them. So when I said "add
actions to the action list", I was referring to the action list that NOX
sends to a switch in a flow_mod message instructing it to insert a flow
entry and what to do with packets matching it.

Regards

On Fri, Oct 29, 2010 at 3:15 AM, Attilio Broglio <
attilio.brog...@create-net.org> wrote:

> Hi Kyriakos,
>
> in these days I am working in order to add my multi-action in the
> action-list.
> I put my action type in the openflow.h file and also I create some specific
> action in the dp_act.c.
> Up to now I'am able to do only simple action on the switch, not
> multi-actions, but I'm going on this direction.
>
> But I have 2 questions:
> When I describe the action I put the implementation in the file
> "udatapath/dp_act.c".
> I see that there is also another similar file in "datapath/dp_act.c" that
> more or less is the same.
> So wich are the differences between these 2 files?
> And it's right to implement the action only in the udatapath/dp_act.c (as I
> do)?
>
> Thanks,
> Attilio
>
>
>
> ----- Original Message -----
> From: "Kyriakos Zarifis" <kyr.zari...@gmail.com>
> To: "Attilio Broglio" <attilio.brog...@create-net.org>
> Cc: nox-dev@noxrepo.org
> Sent: Monday, October 25, 2010 9:08:04 PM
> Subject: Re: [nox-dev] multi command to a switch
>
> Hi Attilio,
>
>
> "actions" is a list which is executed by the switch when a flow is matched,
> so you should be able to do that by appending one or more actions to the
> action list.
> (Setting vlan id, stripping vlan id, sending out a port are 3 separate
> actions)
>
> On Mon, Oct 25, 2010 at 8:55 AM, Attilio Broglio <
> attilio.brog...@create-net.org > wrote:
>
>
> Hi,
>
> I have a short question about nox/openflow (I am working on the switch.cc
> file).
> I would to know if it's possible to apply 2 different actions to a flow .
>
> For example: A packet arrives to the port 1 and I want to send it to the
> port 2 with a vlan_ID, and at the same time, send it also to the port 3 with
> a different VLAN_ID.
>
> Is this possible or not?
>
> Thanks,
> Attilio
>
> _______________________________________________
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
>
>
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to