Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-25 Thread William Tu
On Fri, Apr 17, 2020 at 02:51:34PM +0200, Eelco Chaudron wrote: > This adds the ovs_dump_ifpacts command: > > (gdb) help ovs_dump_ofpacts > Dump all actions in an ofpacts set > Usage: ovs_dump_ofpacts > > : Pointer to set of ofpact structures. > : Total length of the set

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-21 Thread Eelco Chaudron
On 20 Apr 2020, at 17:57, William Tu wrote: On Mon, Apr 20, 2020 at 03:37:03PM +0200, Eelco Chaudron wrote: William, Can you try adding this somewhere at the top after the other import section? from __future__ import print_function And let me know if it works? Thanks, Eelco Hi Eelco

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-20 Thread William Tu
On Mon, Apr 20, 2020 at 03:37:03PM +0200, Eelco Chaudron wrote: > William, > > Can you try adding this somewhere at the top after the other import section? > > from __future__ import print_function > > And let me know if it works? > > Thanks, > > Eelco Hi Eelco, Thanks, it work, but I have t

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-20 Thread Eelco Chaudron
William, Can you try adding this somewhere at the top after the other import section? from __future__ import print_function And let me know if it works? Thanks, Eelco On 20 Apr 2020, at 15:27, Eelco Chaudron wrote: On 20 Apr 2020, at 15:06, William Tu wrote: Is this due to python2/3?

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-20 Thread Eelco Chaudron
On 20 Apr 2020, at 15:06, William Tu wrote: Is this due to python2/3? My python version: boxes:~/ovs# python Python 3.5.2 (default, Oct 8 2019, 13:06:37) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. Hi Eelco, That's the only error I

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-20 Thread William Tu
On Mon, Apr 20, 2020 at 10:02:15AM +0200, Eelco Chaudron wrote: > > > On 19 Apr 2020, at 17:58, William Tu wrote: > > >On Fri, Apr 17, 2020 at 02:51:34PM +0200, Eelco Chaudron wrote: > >>This adds the ovs_dump_ifpacts command: > >> > >>(gdb) help ovs_dump_ofpacts > >>Dump all actions in an ofpac

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-20 Thread Eelco Chaudron
On 19 Apr 2020, at 17:58, William Tu wrote: On Fri, Apr 17, 2020 at 02:51:34PM +0200, Eelco Chaudron wrote: This adds the ovs_dump_ifpacts command: (gdb) help ovs_dump_ofpacts Dump all actions in an ofpacts set Usage: ovs_dump_ofpacts : Pointer to set of ofpact structures.

Re: [ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-19 Thread William Tu
On Fri, Apr 17, 2020 at 02:51:34PM +0200, Eelco Chaudron wrote: > This adds the ovs_dump_ifpacts command: > > (gdb) help ovs_dump_ofpacts > Dump all actions in an ofpacts set > Usage: ovs_dump_ofpacts > > : Pointer to set of ofpact structures. > : Total length of the set

[ovs-dev] [PATCH] Utilities: Add the ovs_dump_ofpacts command to gdb

2020-04-17 Thread Eelco Chaudron
This adds the ovs_dump_ifpacts command: (gdb) help ovs_dump_ofpacts Dump all actions in an ofpacts set Usage: ovs_dump_ofpacts : Pointer to set of ofpact structures. : Total length of the set. Example dumping all actions when in the clone_xlate_actions() function: