| commit | abd98cc468da8d488146a16372a6a1b58905892f | [log] [tgz] |
|---|---|---|
| author | garciaana <naiara.garciaa@ehu.eus> | Mon Feb 20 14:42:18 2017 +0100 |
| committer | garciaana <naiara.garciaa@ehu.eus> | Mon Feb 20 14:42:18 2017 +0100 |
| tree | db6a590603ba65c76933130c53c61682bd30c7bb | |
| parent | e9f6f1a5ff8da7db0704ade6f977048528b99b09 [diff] [blame] |
get_of_rules corrected Change-Id: I4b3d6d2f035765f595b797320d8f42d7dddac09f Signed-off-by: garciaana <naiara.garciaa@ehu.eus>
diff --git a/onos.py b/onos.py index 53def9d..86fbac7 100644 --- a/onos.py +++ b/onos.py
@@ -212,6 +212,7 @@ return r, c # get rules try: + self.headers['content-type'] = 'text/plain' of_response = requests.get(self.url + "flows/" + self.id, headers=self.headers) error_text = "Openflow response %d: %s" % (of_response.status_code, of_response.text)