Hello All.

I am trying to use the rest_qos.py file that provides QOS functionalities. But 
I am unsure how to create the syntax of the messages. What I am trying is to 
open a new queue. here is my piece of code >

                        ##create rest requets for creating a queue
                        rest_cmd={}
                        rest_cmd[REST_QUEUE_TYPE]='linux-htb'                   
                        rest_cmd[REST_QUEUE_MAX_RATE]=10
                        
                        #Configure the queues that we will use
                        queues=[]                       
                        
                        queue={}
                        queue[REST_QUEUE_MAX_RATE]=10
                        queue[REST_QUEUE_MIN_RATE]=1                            
                
                        queues.append(queue)#Here we can add as many queues as 
we want
                        
                        #add the ques to our rest command                       
                        rest_cmd[REST_QUEUES]=queues
                        
                        
                        #We need to call this function ::)
                        #QoS.set_ovsdb_addr()                   
                        addres='tcp:0.0.0.0:8080'
                        ofs.set_ovsdb_addr(dpid, addres)


The error I am receiving is:

ValueError: ValueError: ovsdb addr is not available.

127.0.0.1 - - [19/Sep/2014 08:35:03] code 400, message Bad request syntax 
('{"id":0,"method":"get_schema","params":["Open_vSwitch"]}')
127.0.0.1 - - [19/Sep/2014 08:35:03] 
"{"id":0,"method":"get_schema","params":["Open_vSwitch"]}" 400 -



Can someone guide me in how the message syntax is created  :)


thanks for your help and time

------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to