X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Flb%2Flb.api;h=e30bab6fbf234c3b0dbb63fd20308f40f09b34f5;hb=ae0724034;hp=867832df96632d5e203a3908238525267983d269;hpb=3efcd0d7c3e73b812dece730396cf8816951d8ad;p=vpp.git diff --git a/src/plugins/lb/lb.api b/src/plugins/lb/lb.api index 867832df966..e30bab6fbf2 100644 --- a/src/plugins/lb/lb.api +++ b/src/plugins/lb/lb.api @@ -1,5 +1,6 @@ option version = "1.0.0"; import "plugins/lb/lb_types.api"; +import "vnet/interface_types.api"; /** \brief Configure Load-Balancer global parameters (unlike the CLI, both ip4_src_address and ip6_src_address need to be specified. @param client_index - opaque cookie to identify the sender @@ -19,6 +20,7 @@ autoreply manual_print define lb_conf vl_api_ip6_address_t ip6_src_address; u32 sticky_buckets_per_core; u32 flow_timeout; + option vat_help = "[ip4-src-address ] [ip6-src-address ] [buckets ] [timeout ]"; }; /** \brief Add a virtual address (or prefix) @@ -39,7 +41,7 @@ autoreply manual_print define lb_conf autoreply manual_print define lb_add_del_vip { u32 client_index; u32 context; - vl_api_prefix_t pfx; + vl_api_address_with_prefix_t pfx; u8 protocol [default=255]; u16 port; vl_api_lb_encap_type_t encap; @@ -49,6 +51,7 @@ autoreply manual_print define lb_add_del_vip { u16 node_port; u32 new_flows_table_length [default=1024]; bool is_del; + option vat_help = " [protocol (tcp|udp) port ] [encap (gre6|gre4|l3dsr|nat4|nat6)] [dscp ] [type (nodeport|clusterip) target_port ] [new_len ] [del]"; }; /** \brief Add an application server for a given VIP @@ -64,12 +67,13 @@ autoreply manual_print define lb_add_del_vip { autoreply manual_print define lb_add_del_as { u32 client_index; u32 context; - vl_api_prefix_t pfx; + vl_api_address_with_prefix_t pfx; u8 protocol [default=255]; u16 port; vl_api_address_t as_address; bool is_del; bool is_flush; + option vat_help = " [protocol (tcp|udp) port ] [
] [del] [flush]"; }; /** \brief Flush a given vip @@ -82,7 +86,7 @@ autoreply manual_print define lb_add_del_as { autoreply manual_print define lb_flush_vip { u32 client_index; u32 context; - vl_api_prefix_t pfx; + vl_api_address_with_prefix_t pfx; u8 protocol; u16 port; }; @@ -94,7 +98,7 @@ autoreply manual_print define lb_flush_vip { define lb_vip_dump{ u32 client_index; u32 context; - vl_api_prefix_t pfx; + vl_api_address_with_prefix_t pfx; vl_api_prefix_matcher_t pfx_matcher; u8 protocol [default=255]; u16 port; @@ -126,9 +130,10 @@ define lb_as_dump{ u32 client_index; u32 context; /* vip */ - vl_api_prefix_t pfx; + vl_api_address_with_prefix_t pfx; u8 protocol; u16 port; + option vat_help = " [protocol (tcp|udp) port ]"; }; /** \brief lb_as_details @@ -143,3 +148,28 @@ define lb_as_details { u32 in_use_since; }; +/** \brief Enable/disable NAT4 feature on the interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_add - true if add, false if delete + @param sw_if_index - software index of the interface +*/ +autoreply define lb_add_del_intf_nat4 { + u32 client_index; + u32 context; + bool is_add; + vl_api_interface_index_t sw_if_index; +}; + +/** \brief Enable/disable NAT6 feature on the interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_add - true if add, false if delete + @param sw_if_index - software index of the interface +*/ +autoreply define lb_add_del_intf_nat6 { + u32 client_index; + u32 context; + bool is_add; + vl_api_interface_index_t sw_if_index; +};