From 3d31f00c64de8900730440750182e64fa01ef885 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 26 Jan 2017 11:13:00 +0100 Subject: 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 --- src/vpp-api/python/vpp_papi/vpp_papi.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vpp-api/python/vpp_papi') 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 -- cgit 1.2.3-korg