Re: [vpp-dev] Vnet enum values in the python API

2016-12-06 Thread Neale Ranns (nranns)
Hi Ole, On 06/12/2016, 10:25, "otr...@employees.org" wrote: >Neale, > >> What’s the best (i.e. least error prone) way to export enum values to the >> python API. >> >> For example; >> From l2/l2_vtr.h: >> >> /* VTR config options for API and CLI support */ >> typedef enum >> { >> … >> } l

Re: [vpp-dev] Vnet enum values in the python API

2016-12-06 Thread otroan
Neale, > What’s the best (i.e. least error prone) way to export enum values to the > python API. > > For example; > From l2/l2_vtr.h: > > /* VTR config options for API and CLI support */ > typedef enum > { > … > } l2_vtr_op_t; > > Is required for use in (from vpe.py) > > > def l2_interface

[vpp-dev] Vnet enum values in the python API

2016-12-01 Thread Neale Ranns (nranns)
Hi, What’s the best (i.e. least error prone) way to export enum values to the python API. For example; From l2/l2_vtr.h: /* VTR config options for API and CLI support */ typedef enum { … } l2_vtr_op_t; Is required for use in (from vpe.py) def l2_interface_vlan_tag_rewrite( sw_if