Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1217

SR: enhance binary API of SRv6 "sr policy add" and "sr policy mod"

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None
    • SR, VPP API Infra
    • 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.

            pcamaril Pablo Camarillo
            FilipGschwandtner Filip Gschwandtner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: