Mystery solved, needed a priority of 0.  Don't know why.  Switch is HPE Comware, btw.  Word to the wise.
 
 
On 07/27/16, Scott Reeve<scott.re...@verizon.net> wrote:
 
Trying to have all go from Table 0 to Table 1.

This:


seems to indicate a null match criteria "{}" but it doesn't work.
Here's my code: 


 curl -X POST -d '{
    "dpid": 2,
    "cookie": 0,
    "table_id": 0,
    "idle_timeout": 0,
    "hard_timeout": 0,
    "flags": 0,
    "priority": 22222,
    "match":{
    },
    "actions": [
        {
            "type":"GOTO_TABLE",
            "table_id": 1
        }
    ]

It does work if the vlan and eth_dst are filled in in the match criteria.
I think the switch requires those two fields.  So perhaps I could just wildcard the eth_dst.  That should work also.

Any suggestions?



 
On 07/14/16, Scott Reeve<scott.re...@verizon.net> wrote:
 
Hi,

Not so much of a python question, but a question about the JSON sent to the app.

I'm running the standard RYU pre-built app as follows:

 ryu-manager --verbose --ofp-listen-host 15.234.166.21 ofctl_rest.py

I use the CURL command from another ubuntu host and it all works fine.
I can create flows, look at stats, etc.
I can create a group no problem.

However, when I want to create a flow that outputs to that group, my switch rejects it.
I can see in wireshark that it's not formatted correct, so it's pretty clear that my JSON is incorrect.

Here's the JSON:

curl -X POST -d '{
    "dpid": 2,
    "cookie": 1,
    "cookie_mask": 1,
    "table_id": 0,
    "idle_timeout": 0,
    "hard_timeout": 0,
    "priority": 30000,
    "match":{"ipv6_dst": "ff02::1/64", "eth_type": 34525},
    "actions":[
        {
            "type":"GROUP",
            "out_group": 1
        }
    ]



I've tried a bunch of things.
I've also tried with an "actions" like this:

    "actions":[
        {
            "type":"OUTPUT",
            "out_group": 1
        }
    ]

Any idea what the "actions" section should look like?

I saw no examples here:


Thanks,

Scott

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

Reply via email to