summaryrefslogtreecommitdiff
path: root/python/ovs/reconnect.py
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2012-02-29 17:20:14 -0800
committerEthan Jackson <ethan@nicira.com>2012-03-02 13:30:25 -0800
commitffc86c0db7d5ad44cd0ec513d08f0160afa06a9c (patch)
treea7102444092d5e361d74c0e6ff38018f0dd5b96a /python/ovs/reconnect.py
parent4fb7d8142603008589c79a6e5caed3a6da8f7188 (diff)
downloadopenvswitch-ffc86c0db7d5ad44cd0ec513d08f0160afa06a9c.tar.gz
python: Add ovs_error() helper function to Python.
The ovs_error() and ovs_fatal() helper functions are useful enough to be ported to Python. A user will be added in a future commit. Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'python/ovs/reconnect.py')
-rw-r--r--python/ovs/reconnect.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/ovs/reconnect.py b/python/ovs/reconnect.py
index a6ecc39b3..7e58f5041 100644
--- a/python/ovs/reconnect.py
+++ b/python/ovs/reconnect.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2010, 2011 Nicira Networks
+# Copyright (c) 2010, 2011, 2012 Nicira Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,13 +15,14 @@
import os
import ovs.vlog
+import ovs.util
# Values returned by Reconnect.run()
CONNECT = 'connect'
DISCONNECT = 'disconnect'
PROBE = 'probe'
-EOF = -1
+EOF = ovs.util.EOF
vlog = ovs.vlog.Vlog("reconnect")