aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2017-01-26 11:13:00 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-27 01:06:47 +0000
commit3d31f00c64de8900730440750182e64fa01ef885 (patch)
treecdbfde0c80d4ae46b13697f9ebf997f2276f7b04 /src
parente7c034bf63afda379adcca1b810a4c671f4b3213 (diff)
Python API: event_callback not initialised.
Even when not requesting notification the VPP API sends event notifications on certain calls. E.g. creating interfaces. Traceback (most recent call last): File "/vpp/ipfix/src/vpp-api/python/vpp_papi/vpp_papi.py", line 447, in msg_handler_sync if self.event_callback: AttributeError: VPP instance has no attribute 'event_callback' Change-Id: I4ca30c49df298655dc8948c5ebd68de0b3d6a592 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_papi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py
index cefbe37021b..110f4b161e7 100644
--- a/src/vpp-api/python/vpp_papi/vpp_papi.py
+++ b/src/vpp-api/python/vpp_papi/vpp_papi.py
@@ -62,6 +62,7 @@ class VPP():
self.results = {}
self.timeout = 5
self.apifiles = []
+ self.event_callback = None
if not apifiles:
# Pick up API definitions from default directory