diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2020-03-04 13:08:27 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-03-23 16:07:07 +0000 |
commit | 0938eba153ed20b8a32b7278ed6301b45ce257cc (patch) | |
tree | d561ad9278247ace3b896408d0c9b8fee49fefc0 /src/vnet/srmpls | |
parent | c2c1bfd9b72aec88526c06479b128725eb525866 (diff) |
sr: srv6 API cleanup
Use consistent API types.
Type: fix
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: I3c348ad2fca8bb3d9a246af7a2aa9dc9c33f57c3
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/vnet/srmpls')
-rw-r--r-- | src/vnet/srmpls/sr_mpls.api | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/vnet/srmpls/sr_mpls.api b/src/vnet/srmpls/sr_mpls.api index 4c9181839ce..742f135d493 100644 --- a/src/vnet/srmpls/sr_mpls.api +++ b/src/vnet/srmpls/sr_mpls.api @@ -13,10 +13,11 @@ * under the License. */ -option version = "2.0.0"; +option version = "3.0.0"; import "vnet/interface_types.api"; import "vnet/ip/ip_types.api"; +import "vnet/srv6/sr_types.api"; /** \brief MPLS SR policy add @param client_index - opaque cookie to identify the sender @@ -37,15 +38,6 @@ autoreply define sr_mpls_policy_add u32 segments[n_segments]; }; -enum sr_mpls_policy_op -{ - SR_MPLS_POLICY_OP_API_NONE = 0, - SR_MPLS_POLICY_OP_API_ADD = 1, - SR_MPLS_POLICY_OP_API_DEL = 2, - SR_MPLS_POLICY_OP_API_MOD = 3, - -}; - /** \brief MPLS SR policy modification @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @@ -63,7 +55,7 @@ autoreply define sr_mpls_policy_mod u32 client_index; u32 context; u32 bsid; - vl_api_sr_mpls_policy_op_t operation; + vl_api_sr_policy_op_t operation; u32 sl_index; u32 weight; u8 n_segments; |