Thank you!. This works!
On 11/12/14, 4:13 PM, "Yusuke Iwase" <[email protected]> wrote:
>Hi,
>
>You can describe buckets as comma-separated array.
>How about this command like as follows?
>
>$ curl -X POST -d '{
> "dpid": 1,
> "type": "ALL",
> "group_id": 1,
> "buckets": [
> {
> "actions":[
> {
> "type": "DEC_MPLS_TTL"
> },
> {
> "type": "OUTPUT",
> "port": 1
> }
> ]
> },
> {
> "actions":[
> {
> "type": "DEC_MPLS_TTL"
> },
> {
> "type": "OUTPUT",
> "port": 2
> }
> ]
> }
> ]
> }' http://localhost:8080/stats/groupentry/add
>
>$ curl -X GET http://localhost:8080/stats/groupdesc/1
>{
> "1": [
> {
> "type": "ALL",
> "group_id": 1,
> "buckets": [
> {
> "watch_port": 4294967295,
> "weight": 0,
> "watch_group": 4294967295,
> "actions": [
> "DEC_MPLS_TTL",
> "OUTPUT:1"
> ]
> },
> {
> "watch_port": 4294967295,
> "weight": 0,
> "watch_group": 4294967295,
> "actions": [
> "DEC_MPLS_TTL",
> "OUTPUT:2"
> ]
> }
> ]
> }
> ]
>}
>
>
>On 2014年11月12日 11:27, Ashok Jude wrote:
>> Hi All
>>
>> I am able to add one bucket per group using the below command. I
>>wanted to add more buckets to same groupID. Can you please give me the
>>curl command for that?
>> Not abe to find with search. Basically, each bucket should have
>>different actions.
>>
>> curl -X POST -d '{ \
>> "dpid": 71145865295808, \
>>
>> "type": "ALL", \
>> "group_id": 1, \
>> "buckets": [ \
>> { \
>> "actions": [ \
>> { \
>> "type": "OUTPUT", \
>> "port": 1 \
>> } \
>> ] \
>> } \
>> ] \
>> }' \
>> http://localhost:8080/stats/groupentry/add
>>
>>
>>
>>
>>
>>-------------------------------------------------------------------------
>>-----
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push
>>notifications.
>> Take corrective actions from your mobile device.
>>
>>http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clk
>>trk
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel