Hi Paul,
> I could see a use for having an API call that populates the properties of an
> IntEnum.
Are you thinking of the language or specifically about the Python binding?
In the language there is already enum support:
typedef u8 ip4_address[4];
typedef u8 ip6_address[16];
enum address_family {
ADDRESS_IP4 = 0,
ADDRESS_IP6,
};
union address_union {
vl_api_ip4_address_t ip4;
vl_api_ip6_address_t ip6;
};
typedef address {
vl_api_address_family_t af;
vl_api_address_union_t un;
};
And in Python that should be available as:
VppEnum.vl_api_address_family_t.ADDRESS_IP4
Cheers,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11521): https://lists.fd.io/g/vpp-dev/message/11521
Mute This Topic: https://lists.fd.io/mt/28610110/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-