Multiple Actions?

Showing 1-8 of 8 messages
Multiple Actions? Ryan Flaherty 6/5/12 1:52 PM
Hello,
I am experimenting with floodlight (using the master) and just
checking out what I can do with it when I was wondering how far I can
go with one flow.  Is it possible to have multiple actions in a flow?
It appears that the last action overwrites the previous one.  Is this
how openflow is supposed to work, or am I just messing up?  Here is
the flow that I am pushing:

flow1 = {
        'switch':"00:0a:34:40:b5:3c:18:00",
        "name":"vlan20_from_223_#1",
        "ether-type":"2048",
        "src-ip":"10.10.2.223",
        "active":"true",
        "actions":"set-vlan-id=20",
        "actions":"output=all"
}

Thanks!
Re: [floodlight-dev] Multiple Actions? Alex Reimers 6/5/12 1:55 PM
Hi Ryan,
Actions should be a comma separated list of the actions you want to perform. Keep in mind that not every switch supports multiple actions and that some switches may interpret the list of actions differently.
-Alex

-- 
Alex Reimers
MTS at Big Switch Networks

--
You received this message because you are subscribed to the Google Groups "Floodlight-developers" group.
To post to this group, send email to floodli...@openflowhub.org.
To unsubscribe from this group, send email to floodlight-de...@openflowhub.org.

Re: Multiple Actions? Ryan Flaherty 6/5/12 1:58 PM
Thanks Alex!
> > To post to this group, send email to floodlight-...@openflowhub.org (mailto:floodlight-...@openflowhub.org).
> > To unsubscribe from this group, send email to floodlight-dev+unsubscr...@openflowhub.org (mailto:floodlight-dev+unsubscr...@openflowhub.org).
Re: Multiple Actions? cnm...@gmail.com 1/9/14 2:18 PM
Hello Ryan and Alex,

I am new to Floodlight and experiencing similar difficulty in the correct syntax of configuring multiple actions thru REST API.

I am trying to redirect traffic ingress from port 1 to port 2 after altering destination mac. I am using this curl command:

curl -d '{"switch": "00:00:f8:0f:41:7c:d6:04","name":"redirect", "cookie":"0", "priority":"32768", "ingress-port":"1", "active":"true", "actions":"output=2", "actions":"set-dst-mac=00:01:02:03:04:05"}' http://10.1.10.44:8080/wm/staticflowentrypusher/json

It does not work, as Floodlight honors the 2nd action (set-dst-mac) but not the first one (output).

Could you guys advise how i should change my curl cmd to make it work?

Thanks a lot in advance!!

-Peter
Re: [floodlight-dev] Re: Multiple Actions? Jason Parraga 1/9/14 2:35 PM
Output actions have to be last as they are the last action that should be performed on a packet.


--
You received this message because you are subscribed to the Google Groups "Floodlight-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to floodlight-de...@openflowhub.org.

To post to this group, send email to floodli...@openflowhub.org.
Visit this group at http://groups.google.com/a/openflowhub.org/group/floodlight-dev/.



--
Jason Parraga
Technical Marketing Engineer at Big Switch Networks
Remotely Studying Computer Science at Marist College
Re: [floodlight-dev] Re: Multiple Actions? cnm...@gmail.com 1/9/14 4:27 PM
I have tried:

curl -d '{"switch": "00:00:f8:0f:41:7c:d6:04","name":"redirect", "cookie":"0", "priority":"32768", "ingress-port":"1", "active":"true", "actions":"set-dst-mac=00:01:02:03:04:05", "actions":"output=2"}' http://10.1.10.44:8080/wm/staticflowentrypusher/json

and

curl -d '{"switch": "00:00:f8:0f:41:7c:d6:04","name":"redirect", "cookie":"0", "priority":"32768", "ingress-port":"1", "active":"true", "actions":"set-dst-mac=00:01:02:03:04:05, output=2"}' http://10.1.10.44:8080/wm/staticflowentrypusher/json

Neither works.

Always the last action is honored. Any idea?
Re: [floodlight-dev] Re: Multiple Actions? Jason Parraga 1/10/14 2:25 PM
So if you look at the controller you should be able to see debugging messages in the output.

For the second I got :  12:46:22.018 ERROR [n.f.s.StaticFlowEntryPusher:Dispatcher: Thread-1064] Unexpected action ' output', ' output=2

The problem is the whitespace between the actions, thats all.
Re: [floodlight-dev] Re: Multiple Actions? cnm...@gmail.com 1/10/14 6:01 PM
Hi Jason,

Thanks a lot for the pointer!!

-Peter