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