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_index,
        vtr_op,  <<<
        <more args>):

Thanks,

neale
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to