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'
@@ -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
