OF protocols need this in many places.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/utils.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ryu/utils.py b/ryu/utils.py
index a14929b..1bc7ea3 100644
--- a/ryu/utils.py
+++ b/ryu/utils.py
@@ -61,3 +61,7 @@ def find_flagfile(default_path=RYU_DEFAULT_FLAG_FILE):
         sys.argv.insert(1, flagfile)
         LOG.debug('flagfile = %s', filename)
         return
+
+
+def round_up(x, y):
+    return ((x + y - 1) / y) * y
-- 
1.7.4.4


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to