X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmap%2Fmap.api;h=fa32978591c46aedb4d90c5a23fdd016229e9f38;hb=00f21fb2f;hp=857a1c8fcb0c3b3cb4786a2c9fc0a8f700b20d22;hpb=7b2e9fb1a8f389fa7b88fcbaf3356cbdae254250;p=vpp.git diff --git a/src/plugins/map/map.api b/src/plugins/map/map.api index 857a1c8fcb0..fa32978591c 100644 --- a/src/plugins/map/map.api +++ b/src/plugins/map/map.api @@ -13,9 +13,10 @@ * limitations under the License. */ -option version = "4.1.0"; +option version = "4.2.1"; import "vnet/ip/ip_types.api"; +import "vnet/interface_types.api"; /** \brief Add MAP domains @param client_index - opaque cookie to identify the sender @@ -26,7 +27,7 @@ import "vnet/ip/ip_types.api"; @param ea_bits_len - Embedded Address bits length @param psid_offset - Port Set Identifier (PSID) offset @param psid_length - PSID length - @param mtu - MTU + @param mtu - MTU. default 1280 @param tag - A user field stored with the MAP */ define map_add_domain @@ -39,7 +40,7 @@ define map_add_domain u8 ea_bits_len; u8 psid_offset; u8 psid_length; - u16 mtu; + u16 mtu [default=1280]; string tag[64]; }; @@ -90,8 +91,28 @@ autoreply define map_add_del_rule /** \brief Get list of map domains @param client_index - opaque cookie to identify the sender */ +service { + rpc map_domains_get returns map_domains_get_reply + stream map_domain_details; +}; + +define map_domains_get +{ + u32 client_index; + u32 context; + u32 cursor; +}; + +define map_domains_get_reply +{ + u32 context; + i32 retval; + u32 cursor; +}; + define map_domain_dump { + option deprecated; u32 client_index; u32 context; }; @@ -141,7 +162,7 @@ define map_rule_details /** \brief Enable or disable a MAP interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request - @param sw_if_index - + @param sw_if_index - @param is_enable - 0=disable, 1=enable interface @param is_translation - 0=encapsulation, 1=translation */ @@ -149,7 +170,7 @@ autoreply define map_if_enable_disable { u32 client_index; u32 context; - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; bool is_enable; bool is_translation; /* 0 - encapsulation, 1 - translation */ };