-
Improvement
-
Resolution: Unresolved
-
Low
-
None
-
None
-
None
Binary API for "sr policy add" and "sr policy mod" have fields segments and n_segments that should be linked together as it is done i.e. with n_sw_ifs and sw_if_details fields in bridge domain details. To do this, it is needed to define intermediate structure that define 16-byte IPv6 address type (if not already present somewhere in VPP code) and use it as array-base type for segments field.
The motivation behind this is the generation of binding files (i used GoVPP to create bindings). Without proper linking of those 2 fields, the binding generator can't pass this information to bindings and at least in case of Go language (using GoVPP) this means that creation of binary format of messages represented by data-filled bindings will fail.
There exists workaround for this: change manually/or by script the generated bindings after every binding generation.