Hi,

On 28 November 2014 at 02:23, Yusuke Iwase <[email protected]> wrote:
> Hi,
>
>
> OpenFlow1.3 Spec describes watch_port/watch_group as follows.
>
>   /* Bucket for use in groups. */
>   struct ofp_bucket {
>     ...
>     uint32_t watch_port;   /* Port whose state affects whether this
>                               bucket is live. Only required for fast
>                               failover groups. */
>     uint32_t watch_group;  /* Group whose state affects whether this
>                               bucket is live. Only required for fast
>                               failover groups. */
>     ...
>   }
>
> So, if the watch_port/watch_group is down, a bucket which includes
> this port and/or group can NOT be a candidate for forwarding.

I'm not sure that I understand very well how the state of a group can
be measured. For a port I can understand that we look if the link
connected to this port is up or down but I don't see how it can be
done for a group?

> Currently, the curl command of ofctl_rest.py is not compatible with masked 
> vlan tags.
> But now, we are making patches to support it.
> Please wait for the patches release.

Ok thanks, and when do you expect to release the patches?

If I understood well if I push these rules:
$ curl -X POST -d '{
    "dpid": 1,
    "type": "FF",
    "group_id": 1,
    "buckets": [
        {
            "watch_port": 2,
            "actions": [
                {
                    "type": "OUTPUT",
                    "port": 2
                }
            ]
        }
        {
            "watch_port": 3,
            "actions": [
                {
                    "type": "OUTPUT",
                    "port": 3
                }
            ]
        }
    ]
 }' http://localhost:8080/stats/groupentry/add

$ curl -X POST -d '{
    "dpid": 1,
    "match":{
        "nw_dst": "11.0.0.2",
        "eth_type": 2048
    },
    "actions":[
        {
            "type":"GROUP",
            "group_id": 1
        }
    ]
 }' http://localhost:8080/stats/flowentry/add

the switch 1 will send the packet that have for destination 11.0.0.2
out through the port 2 if the link connected to port 2 is working and
out through the port 3 (if the link connected to port 2 is not working
and the one connected to port 3 is working). Right?

Thanks,

Best,
Clément

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to