Hi,
I am trying to set Queues and setting traffic to use that queues.
I have written the queue rules in a python code. Previously they have
worked. but today the rules shows empty.
I could not figure out what is wrong.
Could you please, let me know whether I am missing something here.
The snippet of the code:
data1 = {'port_name': 'eth2', 'type': 'linux-htb', 'max_rate': '100000000',
'queues': [{'max_rate':'10000000'}, {'min_rate':'80000000'}]}
r1 = requests.post('http://localhost:8080/qos/queue/00000a9acaf4c34f',
data=json.dumps(data1))
print "Queues on eth2 of OVS1 :", r1.text
rule = requests.get('http://localhost:8080/qos/rules/00000a9acaf4c34f')
print "Rules before assigning Queues to traffic:", rule.json()
ruletraffic= {'match': {'dl_type':'IPv4', 'nw_proto':'TCP', 'nw_dst':
'10.10.8.10', 'tp_dst':'9991'}, 'actions':{'queue':'1'}}
ruletrafficreq = requests.post('
http://localhost:8080/qos/rules/00000a9acaf4c34f',
data=json.dumps(ruletraffic))
ruleprint = requests.get('http://localhost:8080/qos/rules/00000a9acaf4c34f')
print "Rules set:", ruleprint.json()
The output is showing:
Queues on eth2 of OVS1 : [{"switch_id": "00000a9acaf4c34f",
"command_result": {"result": "success", "details": {"0": {"config":
{"max-rate": "10000000"}}, "1": {"config": {"min-rate": "80000000"}}}}}]
Rules before assigning Queues to traffic: [{u'switch_id':
u'00000a9acaf4c34f', u'command_result': []}]
Rules set: [{u'switch_id': u'00000a9acaf4c34f', u'command_result': []}]
when i tried to print 'ruletrafficreq.text', it gives me 'Invalid rule
parameter.'
It was working before and now not working.
Thanks
Gandhimathi
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel