This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on http://stackoverflow.com/questions/6470428/catch-multiple-exceptions-in-one-line-except-block | |
class ValidationError(Exception): | |
pass | |
class ValidationErrors(ValidationError): | |
def __str__(self): | |
return ' '.join(str(e) for e in self.args[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from pyof.v0x01.controller2switch.barrier_reply import BarrierReply | |
from tests.rawdump import RawDump | |
class TestBarrierReply(unittest.TestCase): | |
def setUp(self): | |
self.message = BarrierReply(xid=5) | |
self.raw_file = RawDump('v0x01').read('ofpt_barrier_reply') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"byte_count": 2.210526315789474, | |
"flow_id": "270c2bf0814144dd2d61754c99c36ea7", | |
"packet_count": 0.05263157894736842 | |
}, | |
{ | |
"byte_count": 1061.964344855589, | |
"flow_id": "28839aa2f877f12efb7936affe6e2ad5", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"byte_count": [], | |
"packet_count": [], | |
"timestamps": [] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"actions": [ | |
{ | |
"port": 2, | |
"type": "action_output" | |
} | |
], | |
"buffer_id": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"actions": [ | |
{ | |
"port": 2, | |
"type": "action_output" | |
} | |
], | |
"buffer_id": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"actions": [ | |
{ | |
"port": 2, | |
"type": "action_output" | |
} | |
], | |
"buffer_id": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"actions": [ | |
{ | |
"port": 2, | |
"type": "action_output" | |
} | |
], | |
"buffer_id": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<script>//<![CDATA[ | |
document.write('<script src="//' + (location.hostname || 'localhost') + ':35729/livereload.js?snipver=1"><\/script>') | |
//]]></script> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tox] | |
envlist = py36 | |
[testenv] | |
whitelist_externals= | |
rm | |
make | |
commands= | |
; Force packaging even if setup.{py,cfg} haven't changed |
OlderNewer