I've wrote an API according to the "set dpdk int placement" in the
"vpp/src/plugins/dpdk/device/cli.c". When the mentioned API has been called
by the python program, we receive the below error:
You can see API code here <http://dpaste.com/2K0HKWP> and API structure here
<http://dpaste.com/28S70XA>
I wondering although I recive the mentioned error, the expected result can
be meet.
I noticed when there is no arp set with "set ip arp" command. when we try
to remove some arp with mentioned command Segmentation fault (core dumped)
occurs.

-------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/.bin/Test_API.py", line 9, in <module>
    queue = 0,
  File "/root/.bin/vpp_call.py", line 58, in call_vpp
    t = func_call(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vpp_papi.py", line 361, in <lambda>
    f = lambda **kwargs: (self._call_vpp(i, msgdef, multipart, **kwargs))
  File "/usr/lib/python2.7/dist-packages/vpp_papi.py", line 569, in
_call_vpp
    r = self.decode_incoming_msg(msg)
  File "/usr/lib/python2.7/dist-packages/vpp_papi.py", line 505, in
decode_incoming_msg
    r = self.decode(msgdef, msg)
  File "/usr/lib/python2.7/dist-packages/vpp_papi.py", line 271, in decode
    return self.__struct_type(False, msgdef, buf, 0, None)[1]
  File "/usr/lib/python2.7/dist-packages/vpp_papi.py", line 213, in
__struct_type
    return self.__struct_type_decode(msgdef, buf, offset)
  File "/usr/lib/python2.7/dist-packages/vpp_papi.py", line 315, in
__struct_type_decode
    res.append(v.unpack_from(buf, off)[0])
struct.error: unpack_from requires a buffer of at least 8 bytes
DEBUG:vpp_papi:Cleaning up VPP on exit
WARNING:vpp_papi:PNEUM: msg_handler_internal:429: no handler for msg id 5

-------------------------------------------------------------------------------
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to