]> git.puffer.fish Git - matthieu/frr.git/commit
fpm: Add func to encode SRv6 SIDs in protobuf
authorCarmine Scarpitta <cscarpit@cisco.com>
Tue, 13 Feb 2024 10:48:11 +0000 (11:48 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Sun, 18 Feb 2024 17:31:13 +0000 (18:31 +0100)
commit154bce3d9c2e1a842ae8ac1c1038f6307312dd67
tree9d1f0626b268bf10f26280524ab3d0052d6790a6
parentb1f1cb9c23fd49f81bfda8876610c3d7dda6d88c
fpm: Add func to encode SRv6 SIDs in protobuf

Add a bunch of helper functions to support encoding of SRv6 SIDs in
protobuf.

Specifically,
* `fpm_srv6_sid_format_create`: encode SID format information into a
protobuf `SRv6SIDFormat` structure
* `fpm_srv6_local_sid_*_behavior_create` functions: encode an SRv6 SID
behavior and associated attributes into a protobuf
`Fpm__SRv6LocalSID__*` structure

This is a preliminary commit to support sending SRv6 Local SIDs and VPN
SIDs via protobuf.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
fpm/fpm_pb.h