X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsrmpls%2Fsr_mpls.api;h=742f135d49319ea174ec4278cc4eac34770c80e3;hb=0938eba153ed20b8a32b7278ed6301b45ce257cc;hp=4c9181839ce16598a9e9aa9776db047f3945786d;hpb=c2c1bfd9b72aec88526c06479b128725eb525866;p=vpp.git 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;