Hi all,

I am trying to change the behaviour of the forwarding depending on the
status of a port.

Therefore I wrote the following group table entry:

curl -X POST -d '{
    "dpid": 1,
    "type": "SELECT",
    "group_id": 1,
    "buckets": [
        {
            "weight": 1000,
            "watch_port": 2,
            "actions": [
                {
                    "type": "OUTPUT",
                    "port": 2
                }
            ]
        },
        {
            "weight": 1,
            "watch_port": 3,
            "actions": [
                            {
                            "type": "PUSH_VLAN",
                            "ethertype": 33024
                            },
                            {
                            "type": "SET_FIELD",
                            "field": "vlan_vid",
                            "value": 4097
                            },
                            {
                            "type":"OUTPUT",
                            "port": 3
                            }
                        ]
        }
    ]
 }' http://localhost:8080/stats/groupentry/add

so that if port 2 is down then the packet go through port 3 and the vlan id
is set to 1.

But unfortunately it's not working (I try it with ping) and I don't
understand why :/.

Because when I remove the actions about the vlan like below it's working
(with the ping).

curl -X POST -d '{
    "dpid": 1,
    "type": "SELECT",
    "group_id": 1,
    "buckets": [
        {
            "weight": 1000,
            "watch_port": 2,
            "actions": [
                {
                    "type": "OUTPUT",
                    "port": 2
                }
            ]
        },
        {
            "weight": 1,
            "watch_port": 3,
            "actions": [

                            {
                            "type":"OUTPUT",
                            "port": 3
                            }

                        ]
        }
    ]
 }' http://localhost:8080/stats/groupentry/add

Do you have an idea what I'm doing wrong?

Thanks!

Best,
Clément
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to