Generator improvements
[govpp.git] / examples / bin_api / maps / maps.ba.go
index 0a1e678..a5fc9d6 100644 (file)
@@ -5,13 +5,12 @@
  Package maps is a generated from VPP binary API module 'map'.
 
  It contains following objects:
-        32 messages
-         5 types
-         2 aliases
+        16 services
          1 enum
+         2 aliases
+         5 types
          1 union
-        16 services
-
+        32 messages
 */
 package maps
 
@@ -171,31 +170,58 @@ func (*Address) GetCrcString() string {
        return "09f11671"
 }
 
-// Prefix represents VPP binary API type 'prefix':
+// IP4Prefix represents VPP binary API type 'ip4_prefix':
 //
-//     "prefix",
+//     "ip4_prefix",
 //     [
-//         "vl_api_address_t",
-//         "address"
+//         "vl_api_ip4_address_t",
+//         "prefix"
 //     ],
 //     [
 //         "u8",
-//         "address_length"
+//         "len"
 //     ],
 //     {
-//         "crc": "0x0403aebc"
+//         "crc": "0xea8dc11d"
 //     }
 //
-type Prefix struct {
-       Address       Address
-       AddressLength uint8
+type IP4Prefix struct {
+       Prefix IP4Address
+       Len    uint8
 }
 
-func (*Prefix) GetTypeName() string {
-       return "prefix"
+func (*IP4Prefix) GetTypeName() string {
+       return "ip4_prefix"
 }
-func (*Prefix) GetCrcString() string {
-       return "0403aebc"
+func (*IP4Prefix) GetCrcString() string {
+       return "ea8dc11d"
+}
+
+// IP6Prefix represents VPP binary API type 'ip6_prefix':
+//
+//     "ip6_prefix",
+//     [
+//         "vl_api_ip6_address_t",
+//         "prefix"
+//     ],
+//     [
+//         "u8",
+//         "len"
+//     ],
+//     {
+//         "crc": "0x779fd64f"
+//     }
+//
+type IP6Prefix struct {
+       Prefix IP6Address
+       Len    uint8
+}
+
+func (*IP6Prefix) GetTypeName() string {
+       return "ip6_prefix"
+}
+func (*IP6Prefix) GetCrcString() string {
+       return "779fd64f"
 }
 
 // Mprefix represents VPP binary API type 'mprefix':
@@ -235,58 +261,31 @@ func (*Mprefix) GetCrcString() string {
        return "1c4cba05"
 }
 
-// IP6Prefix represents VPP binary API type 'ip6_prefix':
-//
-//     "ip6_prefix",
-//     [
-//         "vl_api_ip6_address_t",
-//         "prefix"
-//     ],
-//     [
-//         "u8",
-//         "len"
-//     ],
-//     {
-//         "crc": "0x779fd64f"
-//     }
-//
-type IP6Prefix struct {
-       Prefix IP6Address
-       Len    uint8
-}
-
-func (*IP6Prefix) GetTypeName() string {
-       return "ip6_prefix"
-}
-func (*IP6Prefix) GetCrcString() string {
-       return "779fd64f"
-}
-
-// IP4Prefix represents VPP binary API type 'ip4_prefix':
+// Prefix represents VPP binary API type 'prefix':
 //
-//     "ip4_prefix",
+//     "prefix",
 //     [
-//         "vl_api_ip4_address_t",
-//         "prefix"
+//         "vl_api_address_t",
+//         "address"
 //     ],
 //     [
 //         "u8",
-//         "len"
+//         "address_length"
 //     ],
 //     {
-//         "crc": "0xea8dc11d"
+//         "crc": "0x0403aebc"
 //     }
 //
-type IP4Prefix struct {
-       Prefix IP4Address
-       Len    uint8
+type Prefix struct {
+       Address       Address
+       AddressLength uint8
 }
 
-func (*IP4Prefix) GetTypeName() string {
-       return "ip4_prefix"
+func (*Prefix) GetTypeName() string {
+       return "prefix"
 }
-func (*IP4Prefix) GetCrcString() string {
-       return "ea8dc11d"
+func (*Prefix) GetCrcString() string {
+       return "0403aebc"
 }
 
 /* Unions */
@@ -317,6 +316,10 @@ func (*AddressUnion) GetCrcString() string {
        return "d68a2fb4"
 }
 
+func AddressUnionIP4(a IP4Address) (u AddressUnion) {
+       u.SetIP4(a)
+       return
+}
 func (u *AddressUnion) SetIP4(a IP4Address) {
        var b = new(bytes.Buffer)
        if err := struc.Pack(b, &a); err != nil {
@@ -330,6 +333,10 @@ func (u *AddressUnion) GetIP4() (a IP4Address) {
        return
 }
 
+func AddressUnionIP6(a IP6Address) (u AddressUnion) {
+       u.SetIP6(a)
+       return
+}
 func (u *AddressUnion) SetIP6(a IP6Address) {
        var b = new(bytes.Buffer)
        if err := struc.Pack(b, &a); err != nil {
@@ -345,6 +352,91 @@ func (u *AddressUnion) GetIP6() (a IP6Address) {
 
 /* Messages */
 
+// MapAddDelRule represents VPP binary API message 'map_add_del_rule':
+//
+//     "map_add_del_rule",
+//     [
+//         "u16",
+//         "_vl_msg_id"
+//     ],
+//     [
+//         "u32",
+//         "client_index"
+//     ],
+//     [
+//         "u32",
+//         "context"
+//     ],
+//     [
+//         "u32",
+//         "index"
+//     ],
+//     [
+//         "bool",
+//         "is_add"
+//     ],
+//     [
+//         "vl_api_ip6_address_t",
+//         "ip6_dst"
+//     ],
+//     [
+//         "u16",
+//         "psid"
+//     ],
+//     {
+//         "crc": "0xe6132040"
+//     }
+//
+type MapAddDelRule struct {
+       Index  uint32
+       IsAdd  bool
+       IP6Dst IP6Address
+       Psid   uint16
+}
+
+func (*MapAddDelRule) GetMessageName() string {
+       return "map_add_del_rule"
+}
+func (*MapAddDelRule) GetCrcString() string {
+       return "e6132040"
+}
+func (*MapAddDelRule) GetMessageType() api.MessageType {
+       return api.RequestMessage
+}
+
+// MapAddDelRuleReply represents VPP binary API message 'map_add_del_rule_reply':
+//
+//     "map_add_del_rule_reply",
+//     [
+//         "u16",
+//         "_vl_msg_id"
+//     ],
+//     [
+//         "u32",
+//         "context"
+//     ],
+//     [
+//         "i32",
+//         "retval"
+//     ],
+//     {
+//         "crc": "0xe8d4e804"
+//     }
+//
+type MapAddDelRuleReply struct {
+       Retval int32
+}
+
+func (*MapAddDelRuleReply) GetMessageName() string {
+       return "map_add_del_rule_reply"
+}
+func (*MapAddDelRuleReply) GetCrcString() string {
+       return "e8d4e804"
+}
+func (*MapAddDelRuleReply) GetMessageType() api.MessageType {
+       return api.ReplyMessage
+}
+
 // MapAddDomain represents VPP binary API message 'map_add_domain':
 //
 //     "map_add_domain",
@@ -520,88 +612,76 @@ func (*MapDelDomainReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-// MapAddDelRule represents VPP binary API message 'map_add_del_rule':
+// MapDomainDetails represents VPP binary API message 'map_domain_details':
 //
-//     "map_add_del_rule",
+//     "map_domain_details",
 //     [
 //         "u16",
 //         "_vl_msg_id"
 //     ],
 //     [
 //         "u32",
-//         "client_index"
+//         "context"
 //     ],
 //     [
 //         "u32",
-//         "context"
+//         "domain_index"
 //     ],
 //     [
-//         "u32",
-//         "index"
+//         "vl_api_ip6_prefix_t",
+//         "ip6_prefix"
 //     ],
 //     [
-//         "bool",
-//         "is_add"
+//         "vl_api_ip4_prefix_t",
+//         "ip4_prefix"
 //     ],
 //     [
-//         "vl_api_ip6_address_t",
-//         "ip6_dst"
+//         "vl_api_ip6_prefix_t",
+//         "ip6_src"
+//     ],
+//     [
+//         "u8",
+//         "ea_bits_len"
+//     ],
+//     [
+//         "u8",
+//         "psid_offset"
+//     ],
+//     [
+//         "u8",
+//         "psid_length"
+//     ],
+//     [
+//         "u8",
+//         "flags"
 //     ],
 //     [
 //         "u16",
-//         "psid"
+//         "mtu"
 //     ],
 //     {
-//         "crc": "0xe6132040"
+//         "crc": "0x2a17dcb8"
 //     }
 //
-type MapAddDelRule struct {
-       Index  uint32
-       IsAdd  bool
-       IP6Dst IP6Address
-       Psid   uint16
-}
-
-func (*MapAddDelRule) GetMessageName() string {
-       return "map_add_del_rule"
-}
-func (*MapAddDelRule) GetCrcString() string {
-       return "e6132040"
-}
-func (*MapAddDelRule) GetMessageType() api.MessageType {
-       return api.RequestMessage
-}
-
-// MapAddDelRuleReply represents VPP binary API message 'map_add_del_rule_reply':
-//
-//     "map_add_del_rule_reply",
-//     [
-//         "u16",
-//         "_vl_msg_id"
-//     ],
-//     [
-//         "u32",
-//         "context"
-//     ],
-//     [
-//         "i32",
-//         "retval"
-//     ],
-//     {
-//         "crc": "0xe8d4e804"
-//     }
-//
-type MapAddDelRuleReply struct {
-       Retval int32
+type MapDomainDetails struct {
+       DomainIndex uint32
+       IP6Prefix   IP6Prefix
+       IP4Prefix   IP4Prefix
+       IP6Src      IP6Prefix
+       EaBitsLen   uint8
+       PsidOffset  uint8
+       PsidLength  uint8
+       Flags       uint8
+       Mtu         uint16
 }
 
-func (*MapAddDelRuleReply) GetMessageName() string {
-       return "map_add_del_rule_reply"
+func (*MapDomainDetails) GetMessageName() string {
+       return "map_domain_details"
 }
-func (*MapAddDelRuleReply) GetCrcString() string {
-       return "e8d4e804"
+func (*MapDomainDetails) GetCrcString() string {
+       return "2a17dcb8"
 }
-func (*MapAddDelRuleReply) GetMessageType() api.MessageType {
+func (*MapDomainDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
@@ -636,119 +716,56 @@ func (*MapDomainDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapDomainDetails represents VPP binary API message 'map_domain_details':
+// MapIfEnableDisable represents VPP binary API message 'map_if_enable_disable':
 //
-//     "map_domain_details",
+//     "map_if_enable_disable",
 //     [
 //         "u16",
 //         "_vl_msg_id"
 //     ],
 //     [
 //         "u32",
-//         "context"
+//         "client_index"
 //     ],
 //     [
 //         "u32",
-//         "domain_index"
-//     ],
-//     [
-//         "vl_api_ip6_prefix_t",
-//         "ip6_prefix"
-//     ],
-//     [
-//         "vl_api_ip4_prefix_t",
-//         "ip4_prefix"
-//     ],
-//     [
-//         "vl_api_ip6_prefix_t",
-//         "ip6_src"
-//     ],
-//     [
-//         "u8",
-//         "ea_bits_len"
-//     ],
-//     [
-//         "u8",
-//         "psid_offset"
-//     ],
-//     [
-//         "u8",
-//         "psid_length"
-//     ],
-//     [
-//         "u8",
-//         "flags"
-//     ],
-//     [
-//         "u16",
-//         "mtu"
-//     ],
-//     {
-//         "crc": "0x2a17dcb8"
-//     }
-//
-type MapDomainDetails struct {
-       DomainIndex uint32
-       IP6Prefix   IP6Prefix
-       IP4Prefix   IP4Prefix
-       IP6Src      IP6Prefix
-       EaBitsLen   uint8
-       PsidOffset  uint8
-       PsidLength  uint8
-       Flags       uint8
-       Mtu         uint16
-}
-
-func (*MapDomainDetails) GetMessageName() string {
-       return "map_domain_details"
-}
-func (*MapDomainDetails) GetCrcString() string {
-       return "2a17dcb8"
-}
-func (*MapDomainDetails) GetMessageType() api.MessageType {
-       return api.ReplyMessage
-}
-
-// MapRuleDump represents VPP binary API message 'map_rule_dump':
-//
-//     "map_rule_dump",
-//     [
-//         "u16",
-//         "_vl_msg_id"
+//         "context"
 //     ],
 //     [
 //         "u32",
-//         "client_index"
+//         "sw_if_index"
 //     ],
 //     [
-//         "u32",
-//         "context"
+//         "bool",
+//         "is_enable"
 //     ],
 //     [
-//         "u32",
-//         "domain_index"
+//         "bool",
+//         "is_translation"
 //     ],
 //     {
-//         "crc": "0xe43e6ff6"
+//         "crc": "0x61a30cd9"
 //     }
 //
-type MapRuleDump struct {
-       DomainIndex uint32
+type MapIfEnableDisable struct {
+       SwIfIndex     uint32
+       IsEnable      bool
+       IsTranslation bool
 }
 
-func (*MapRuleDump) GetMessageName() string {
-       return "map_rule_dump"
+func (*MapIfEnableDisable) GetMessageName() string {
+       return "map_if_enable_disable"
 }
-func (*MapRuleDump) GetCrcString() string {
-       return "e43e6ff6"
+func (*MapIfEnableDisable) GetCrcString() string {
+       return "61a30cd9"
 }
-func (*MapRuleDump) GetMessageType() api.MessageType {
+func (*MapIfEnableDisable) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapRuleDetails represents VPP binary API message 'map_rule_details':
+// MapIfEnableDisableReply represents VPP binary API message 'map_if_enable_disable_reply':
 //
-//     "map_rule_details",
+//     "map_if_enable_disable_reply",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -758,35 +775,30 @@ func (*MapRuleDump) GetMessageType() api.MessageType {
 //         "context"
 //     ],
 //     [
-//         "vl_api_ip6_address_t",
-//         "ip6_dst"
-//     ],
-//     [
-//         "u16",
-//         "psid"
+//         "i32",
+//         "retval"
 //     ],
 //     {
-//         "crc": "0x4f932665"
+//         "crc": "0xe8d4e804"
 //     }
 //
-type MapRuleDetails struct {
-       IP6Dst IP6Address
-       Psid   uint16
+type MapIfEnableDisableReply struct {
+       Retval int32
 }
 
-func (*MapRuleDetails) GetMessageName() string {
-       return "map_rule_details"
+func (*MapIfEnableDisableReply) GetMessageName() string {
+       return "map_if_enable_disable_reply"
 }
-func (*MapRuleDetails) GetCrcString() string {
-       return "4f932665"
+func (*MapIfEnableDisableReply) GetCrcString() string {
+       return "e8d4e804"
 }
-func (*MapRuleDetails) GetMessageType() api.MessageType {
+func (*MapIfEnableDisableReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-// MapIfEnableDisable represents VPP binary API message 'map_if_enable_disable':
+// MapParamAddDelPreResolve represents VPP binary API message 'map_param_add_del_pre_resolve':
 //
-//     "map_if_enable_disable",
+//     "map_param_add_del_pre_resolve",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -800,40 +812,40 @@ func (*MapRuleDetails) GetMessageType() api.MessageType {
 //         "context"
 //     ],
 //     [
-//         "u32",
-//         "sw_if_index"
+//         "bool",
+//         "is_add"
 //     ],
 //     [
-//         "bool",
-//         "is_enable"
+//         "vl_api_ip4_address_t",
+//         "ip4_nh_address"
 //     ],
 //     [
-//         "bool",
-//         "is_translation"
+//         "vl_api_ip6_address_t",
+//         "ip6_nh_address"
 //     ],
 //     {
-//         "crc": "0x61a30cd9"
+//         "crc": "0xea9a9a4a"
 //     }
 //
-type MapIfEnableDisable struct {
-       SwIfIndex     uint32
-       IsEnable      bool
-       IsTranslation bool
+type MapParamAddDelPreResolve struct {
+       IsAdd        bool
+       IP4NhAddress IP4Address
+       IP6NhAddress IP6Address
 }
 
-func (*MapIfEnableDisable) GetMessageName() string {
-       return "map_if_enable_disable"
+func (*MapParamAddDelPreResolve) GetMessageName() string {
+       return "map_param_add_del_pre_resolve"
 }
-func (*MapIfEnableDisable) GetCrcString() string {
-       return "61a30cd9"
+func (*MapParamAddDelPreResolve) GetCrcString() string {
+       return "ea9a9a4a"
 }
-func (*MapIfEnableDisable) GetMessageType() api.MessageType {
+func (*MapParamAddDelPreResolve) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapIfEnableDisableReply represents VPP binary API message 'map_if_enable_disable_reply':
+// MapParamAddDelPreResolveReply represents VPP binary API message 'map_param_add_del_pre_resolve_reply':
 //
-//     "map_if_enable_disable_reply",
+//     "map_param_add_del_pre_resolve_reply",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -850,23 +862,23 @@ func (*MapIfEnableDisable) GetMessageType() api.MessageType {
 //         "crc": "0xe8d4e804"
 //     }
 //
-type MapIfEnableDisableReply struct {
+type MapParamAddDelPreResolveReply struct {
        Retval int32
 }
 
-func (*MapIfEnableDisableReply) GetMessageName() string {
-       return "map_if_enable_disable_reply"
+func (*MapParamAddDelPreResolveReply) GetMessageName() string {
+       return "map_param_add_del_pre_resolve_reply"
 }
-func (*MapIfEnableDisableReply) GetCrcString() string {
+func (*MapParamAddDelPreResolveReply) GetCrcString() string {
        return "e8d4e804"
 }
-func (*MapIfEnableDisableReply) GetMessageType() api.MessageType {
+func (*MapParamAddDelPreResolveReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-// MapSummaryStats represents VPP binary API message 'map_summary_stats':
+// MapParamGet represents VPP binary API message 'map_param_get':
 //
-//     "map_summary_stats",
+//     "map_param_get",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -883,76 +895,138 @@ func (*MapIfEnableDisableReply) GetMessageType() api.MessageType {
 //         "crc": "0x51077d14"
 //     }
 //
-type MapSummaryStats struct{}
+type MapParamGet struct{}
 
-func (*MapSummaryStats) GetMessageName() string {
-       return "map_summary_stats"
+func (*MapParamGet) GetMessageName() string {
+       return "map_param_get"
 }
-func (*MapSummaryStats) GetCrcString() string {
+func (*MapParamGet) GetCrcString() string {
        return "51077d14"
 }
-func (*MapSummaryStats) GetMessageType() api.MessageType {
+func (*MapParamGet) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapSummaryStatsReply represents VPP binary API message 'map_summary_stats_reply':
+// MapParamGetReply represents VPP binary API message 'map_param_get_reply':
 //
-//     "map_summary_stats_reply",
+//     "map_param_get_reply",
+//     [
+//         "u16",
+//         "_vl_msg_id"
+//     ],
+//     [
+//         "u32",
+//         "context"
+//     ],
+//     [
+//         "i32",
+//         "retval"
+//     ],
+//     [
+//         "u8",
+//         "frag_inner"
+//     ],
+//     [
+//         "u8",
+//         "frag_ignore_df"
+//     ],
+//     [
+//         "vl_api_ip4_address_t",
+//         "icmp_ip4_err_relay_src"
+//     ],
+//     [
+//         "bool",
+//         "icmp6_enable_unreachable"
+//     ],
+//     [
+//         "vl_api_ip4_address_t",
+//         "ip4_nh_address"
+//     ],
+//     [
+//         "vl_api_ip6_address_t",
+//         "ip6_nh_address"
+//     ],
 //     [
 //         "u16",
-//         "_vl_msg_id"
+//         "ip4_lifetime_ms"
+//     ],
+//     [
+//         "u16",
+//         "ip4_pool_size"
 //     ],
 //     [
 //         "u32",
-//         "context"
+//         "ip4_buffers"
 //     ],
 //     [
-//         "i32",
-//         "retval"
+//         "f64",
+//         "ip4_ht_ratio"
 //     ],
 //     [
-//         "u64",
-//         "total_bindings"
+//         "u16",
+//         "ip6_lifetime_ms"
 //     ],
 //     [
-//         "u64",
-//         "total_pkts",
-//         2
+//         "u16",
+//         "ip6_pool_size"
 //     ],
 //     [
-//         "u64",
-//         "total_bytes",
-//         2
+//         "u32",
+//         "ip6_buffers"
 //     ],
 //     [
-//         "u64",
-//         "total_ip4_fragments"
+//         "f64",
+//         "ip6_ht_ratio"
 //     ],
 //     [
-//         "u64",
-//         "total_security_check",
-//         2
+//         "bool",
+//         "sec_check_enable"
+//     ],
+//     [
+//         "bool",
+//         "sec_check_fragments"
+//     ],
+//     [
+//         "bool",
+//         "tc_copy"
+//     ],
+//     [
+//         "u8",
+//         "tc_class"
 //     ],
 //     {
-//         "crc": "0x0e4ace0e"
+//         "crc": "0xb40e9226"
 //     }
 //
-type MapSummaryStatsReply struct {
-       Retval             int32
-       TotalBindings      uint64
-       TotalPkts          []uint64 `struc:"[2]uint64"`
-       TotalBytes         []uint64 `struc:"[2]uint64"`
-       TotalIP4Fragments  uint64
-       TotalSecurityCheck []uint64 `struc:"[2]uint64"`
+type MapParamGetReply struct {
+       Retval                 int32
+       FragInner              uint8
+       FragIgnoreDf           uint8
+       ICMPIP4ErrRelaySrc     IP4Address
+       ICMP6EnableUnreachable bool
+       IP4NhAddress           IP4Address
+       IP6NhAddress           IP6Address
+       IP4LifetimeMs          uint16
+       IP4PoolSize            uint16
+       IP4Buffers             uint32
+       IP4HtRatio             float64
+       IP6LifetimeMs          uint16
+       IP6PoolSize            uint16
+       IP6Buffers             uint32
+       IP6HtRatio             float64
+       SecCheckEnable         bool
+       SecCheckFragments      bool
+       TcCopy                 bool
+       TcClass                uint8
 }
 
-func (*MapSummaryStatsReply) GetMessageName() string {
-       return "map_summary_stats_reply"
+func (*MapParamGetReply) GetMessageName() string {
+       return "map_param_get_reply"
 }
-func (*MapSummaryStatsReply) GetCrcString() string {
-       return "0e4ace0e"
+func (*MapParamGetReply) GetCrcString() string {
+       return "b40e9226"
 }
-func (*MapSummaryStatsReply) GetMessageType() api.MessageType {
+func (*MapParamGetReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
@@ -1068,39 +1142,6 @@ func (*MapParamSetICMP) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapParamSetICMPReply represents VPP binary API message 'map_param_set_icmp_reply':
-//
-//     "map_param_set_icmp_reply",
-//     [
-//         "u16",
-//         "_vl_msg_id"
-//     ],
-//     [
-//         "u32",
-//         "context"
-//     ],
-//     [
-//         "i32",
-//         "retval"
-//     ],
-//     {
-//         "crc": "0xe8d4e804"
-//     }
-//
-type MapParamSetICMPReply struct {
-       Retval int32
-}
-
-func (*MapParamSetICMPReply) GetMessageName() string {
-       return "map_param_set_icmp_reply"
-}
-func (*MapParamSetICMPReply) GetCrcString() string {
-       return "e8d4e804"
-}
-func (*MapParamSetICMPReply) GetMessageType() api.MessageType {
-       return api.ReplyMessage
-}
-
 // MapParamSetICMP6 represents VPP binary API message 'map_param_set_icmp6':
 //
 //     "map_param_set_icmp6",
@@ -1171,56 +1212,9 @@ func (*MapParamSetICMP6Reply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-// MapParamAddDelPreResolve represents VPP binary API message 'map_param_add_del_pre_resolve':
-//
-//     "map_param_add_del_pre_resolve",
-//     [
-//         "u16",
-//         "_vl_msg_id"
-//     ],
-//     [
-//         "u32",
-//         "client_index"
-//     ],
-//     [
-//         "u32",
-//         "context"
-//     ],
-//     [
-//         "bool",
-//         "is_add"
-//     ],
-//     [
-//         "vl_api_ip4_address_t",
-//         "ip4_nh_address"
-//     ],
-//     [
-//         "vl_api_ip6_address_t",
-//         "ip6_nh_address"
-//     ],
-//     {
-//         "crc": "0xea9a9a4a"
-//     }
-//
-type MapParamAddDelPreResolve struct {
-       IsAdd        bool
-       IP4NhAddress IP4Address
-       IP6NhAddress IP6Address
-}
-
-func (*MapParamAddDelPreResolve) GetMessageName() string {
-       return "map_param_add_del_pre_resolve"
-}
-func (*MapParamAddDelPreResolve) GetCrcString() string {
-       return "ea9a9a4a"
-}
-func (*MapParamAddDelPreResolve) GetMessageType() api.MessageType {
-       return api.RequestMessage
-}
-
-// MapParamAddDelPreResolveReply represents VPP binary API message 'map_param_add_del_pre_resolve_reply':
+// MapParamSetICMPReply represents VPP binary API message 'map_param_set_icmp_reply':
 //
-//     "map_param_add_del_pre_resolve_reply",
+//     "map_param_set_icmp_reply",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -1237,17 +1231,17 @@ func (*MapParamAddDelPreResolve) GetMessageType() api.MessageType {
 //         "crc": "0xe8d4e804"
 //     }
 //
-type MapParamAddDelPreResolveReply struct {
+type MapParamSetICMPReply struct {
        Retval int32
 }
 
-func (*MapParamAddDelPreResolveReply) GetMessageName() string {
-       return "map_param_add_del_pre_resolve_reply"
+func (*MapParamSetICMPReply) GetMessageName() string {
+       return "map_param_set_icmp_reply"
 }
-func (*MapParamAddDelPreResolveReply) GetCrcString() string {
+func (*MapParamSetICMPReply) GetCrcString() string {
        return "e8d4e804"
 }
-func (*MapParamAddDelPreResolveReply) GetMessageType() api.MessageType {
+func (*MapParamSetICMPReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
@@ -1361,31 +1355,101 @@ func (*MapParamSetReassemblyReply) GetMessageType() api.MessageType {
 //         "enable"
 //     ],
 //     [
-//         "bool",
-//         "fragments"
+//         "bool",
+//         "fragments"
+//     ],
+//     {
+//         "crc": "0x6abe9836"
+//     }
+//
+type MapParamSetSecurityCheck struct {
+       Enable    bool
+       Fragments bool
+}
+
+func (*MapParamSetSecurityCheck) GetMessageName() string {
+       return "map_param_set_security_check"
+}
+func (*MapParamSetSecurityCheck) GetCrcString() string {
+       return "6abe9836"
+}
+func (*MapParamSetSecurityCheck) GetMessageType() api.MessageType {
+       return api.RequestMessage
+}
+
+// MapParamSetSecurityCheckReply represents VPP binary API message 'map_param_set_security_check_reply':
+//
+//     "map_param_set_security_check_reply",
+//     [
+//         "u16",
+//         "_vl_msg_id"
+//     ],
+//     [
+//         "u32",
+//         "context"
+//     ],
+//     [
+//         "i32",
+//         "retval"
+//     ],
+//     {
+//         "crc": "0xe8d4e804"
+//     }
+//
+type MapParamSetSecurityCheckReply struct {
+       Retval int32
+}
+
+func (*MapParamSetSecurityCheckReply) GetMessageName() string {
+       return "map_param_set_security_check_reply"
+}
+func (*MapParamSetSecurityCheckReply) GetCrcString() string {
+       return "e8d4e804"
+}
+func (*MapParamSetSecurityCheckReply) GetMessageType() api.MessageType {
+       return api.ReplyMessage
+}
+
+// MapParamSetTCP represents VPP binary API message 'map_param_set_tcp':
+//
+//     "map_param_set_tcp",
+//     [
+//         "u16",
+//         "_vl_msg_id"
+//     ],
+//     [
+//         "u32",
+//         "client_index"
+//     ],
+//     [
+//         "u32",
+//         "context"
+//     ],
+//     [
+//         "u16",
+//         "tcp_mss"
 //     ],
 //     {
-//         "crc": "0x6abe9836"
+//         "crc": "0x87a825d9"
 //     }
 //
-type MapParamSetSecurityCheck struct {
-       Enable    bool
-       Fragments bool
+type MapParamSetTCP struct {
+       TCPMss uint16
 }
 
-func (*MapParamSetSecurityCheck) GetMessageName() string {
-       return "map_param_set_security_check"
+func (*MapParamSetTCP) GetMessageName() string {
+       return "map_param_set_tcp"
 }
-func (*MapParamSetSecurityCheck) GetCrcString() string {
-       return "6abe9836"
+func (*MapParamSetTCP) GetCrcString() string {
+       return "87a825d9"
 }
-func (*MapParamSetSecurityCheck) GetMessageType() api.MessageType {
+func (*MapParamSetTCP) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapParamSetSecurityCheckReply represents VPP binary API message 'map_param_set_security_check_reply':
+// MapParamSetTCPReply represents VPP binary API message 'map_param_set_tcp_reply':
 //
-//     "map_param_set_security_check_reply",
+//     "map_param_set_tcp_reply",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -1402,17 +1466,17 @@ func (*MapParamSetSecurityCheck) GetMessageType() api.MessageType {
 //         "crc": "0xe8d4e804"
 //     }
 //
-type MapParamSetSecurityCheckReply struct {
+type MapParamSetTCPReply struct {
        Retval int32
 }
 
-func (*MapParamSetSecurityCheckReply) GetMessageName() string {
-       return "map_param_set_security_check_reply"
+func (*MapParamSetTCPReply) GetMessageName() string {
+       return "map_param_set_tcp_reply"
 }
-func (*MapParamSetSecurityCheckReply) GetCrcString() string {
+func (*MapParamSetTCPReply) GetCrcString() string {
        return "e8d4e804"
 }
-func (*MapParamSetSecurityCheckReply) GetMessageType() api.MessageType {
+func (*MapParamSetTCPReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
@@ -1491,79 +1555,84 @@ func (*MapParamSetTrafficClassReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-// MapParamSetTCP represents VPP binary API message 'map_param_set_tcp':
+// MapRuleDetails represents VPP binary API message 'map_rule_details':
 //
-//     "map_param_set_tcp",
+//     "map_rule_details",
 //     [
 //         "u16",
 //         "_vl_msg_id"
 //     ],
 //     [
 //         "u32",
-//         "client_index"
+//         "context"
 //     ],
 //     [
-//         "u32",
-//         "context"
+//         "vl_api_ip6_address_t",
+//         "ip6_dst"
 //     ],
 //     [
 //         "u16",
-//         "tcp_mss"
+//         "psid"
 //     ],
 //     {
-//         "crc": "0x87a825d9"
+//         "crc": "0x4f932665"
 //     }
 //
-type MapParamSetTCP struct {
-       TCPMss uint16
+type MapRuleDetails struct {
+       IP6Dst IP6Address
+       Psid   uint16
 }
 
-func (*MapParamSetTCP) GetMessageName() string {
-       return "map_param_set_tcp"
+func (*MapRuleDetails) GetMessageName() string {
+       return "map_rule_details"
 }
-func (*MapParamSetTCP) GetCrcString() string {
-       return "87a825d9"
+func (*MapRuleDetails) GetCrcString() string {
+       return "4f932665"
 }
-func (*MapParamSetTCP) GetMessageType() api.MessageType {
-       return api.RequestMessage
+func (*MapRuleDetails) GetMessageType() api.MessageType {
+       return api.ReplyMessage
 }
 
-// MapParamSetTCPReply represents VPP binary API message 'map_param_set_tcp_reply':
+// MapRuleDump represents VPP binary API message 'map_rule_dump':
 //
-//     "map_param_set_tcp_reply",
+//     "map_rule_dump",
 //     [
 //         "u16",
 //         "_vl_msg_id"
 //     ],
 //     [
 //         "u32",
+//         "client_index"
+//     ],
+//     [
+//         "u32",
 //         "context"
 //     ],
 //     [
-//         "i32",
-//         "retval"
+//         "u32",
+//         "domain_index"
 //     ],
 //     {
-//         "crc": "0xe8d4e804"
+//         "crc": "0xe43e6ff6"
 //     }
 //
-type MapParamSetTCPReply struct {
-       Retval int32
+type MapRuleDump struct {
+       DomainIndex uint32
 }
 
-func (*MapParamSetTCPReply) GetMessageName() string {
-       return "map_param_set_tcp_reply"
+func (*MapRuleDump) GetMessageName() string {
+       return "map_rule_dump"
 }
-func (*MapParamSetTCPReply) GetCrcString() string {
-       return "e8d4e804"
+func (*MapRuleDump) GetCrcString() string {
+       return "e43e6ff6"
 }
-func (*MapParamSetTCPReply) GetMessageType() api.MessageType {
-       return api.ReplyMessage
+func (*MapRuleDump) GetMessageType() api.MessageType {
+       return api.RequestMessage
 }
 
-// MapParamGet represents VPP binary API message 'map_param_get':
+// MapSummaryStats represents VPP binary API message 'map_summary_stats':
 //
-//     "map_param_get",
+//     "map_summary_stats",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -1580,21 +1649,21 @@ func (*MapParamSetTCPReply) GetMessageType() api.MessageType {
 //         "crc": "0x51077d14"
 //     }
 //
-type MapParamGet struct{}
+type MapSummaryStats struct{}
 
-func (*MapParamGet) GetMessageName() string {
-       return "map_param_get"
+func (*MapSummaryStats) GetMessageName() string {
+       return "map_summary_stats"
 }
-func (*MapParamGet) GetCrcString() string {
+func (*MapSummaryStats) GetCrcString() string {
        return "51077d14"
 }
-func (*MapParamGet) GetMessageType() api.MessageType {
+func (*MapSummaryStats) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-// MapParamGetReply represents VPP binary API message 'map_param_get_reply':
+// MapSummaryStatsReply represents VPP binary API message 'map_summary_stats_reply':
 //
-//     "map_param_get_reply",
+//     "map_summary_stats_reply",
 //     [
 //         "u16",
 //         "_vl_msg_id"
@@ -1608,144 +1677,82 @@ func (*MapParamGet) GetMessageType() api.MessageType {
 //         "retval"
 //     ],
 //     [
-//         "u8",
-//         "frag_inner"
-//     ],
-//     [
-//         "u8",
-//         "frag_ignore_df"
-//     ],
-//     [
-//         "vl_api_ip4_address_t",
-//         "icmp_ip4_err_relay_src"
-//     ],
-//     [
-//         "bool",
-//         "icmp6_enable_unreachable"
-//     ],
-//     [
-//         "vl_api_ip4_address_t",
-//         "ip4_nh_address"
-//     ],
-//     [
-//         "vl_api_ip6_address_t",
-//         "ip6_nh_address"
-//     ],
-//     [
-//         "u16",
-//         "ip4_lifetime_ms"
-//     ],
-//     [
-//         "u16",
-//         "ip4_pool_size"
-//     ],
-//     [
-//         "u32",
-//         "ip4_buffers"
-//     ],
-//     [
-//         "f64",
-//         "ip4_ht_ratio"
-//     ],
-//     [
-//         "u16",
-//         "ip6_lifetime_ms"
-//     ],
-//     [
-//         "u16",
-//         "ip6_pool_size"
-//     ],
-//     [
-//         "u32",
-//         "ip6_buffers"
-//     ],
-//     [
-//         "f64",
-//         "ip6_ht_ratio"
+//         "u64",
+//         "total_bindings"
 //     ],
 //     [
-//         "bool",
-//         "sec_check_enable"
+//         "u64",
+//         "total_pkts",
+//         2
 //     ],
 //     [
-//         "bool",
-//         "sec_check_fragments"
+//         "u64",
+//         "total_bytes",
+//         2
 //     ],
 //     [
-//         "bool",
-//         "tc_copy"
+//         "u64",
+//         "total_ip4_fragments"
 //     ],
 //     [
-//         "u8",
-//         "tc_class"
+//         "u64",
+//         "total_security_check",
+//         2
 //     ],
 //     {
-//         "crc": "0xb40e9226"
+//         "crc": "0x0e4ace0e"
 //     }
 //
-type MapParamGetReply struct {
-       Retval                 int32
-       FragInner              uint8
-       FragIgnoreDf           uint8
-       ICMPIP4ErrRelaySrc     IP4Address
-       ICMP6EnableUnreachable bool
-       IP4NhAddress           IP4Address
-       IP6NhAddress           IP6Address
-       IP4LifetimeMs          uint16
-       IP4PoolSize            uint16
-       IP4Buffers             uint32
-       IP4HtRatio             float64
-       IP6LifetimeMs          uint16
-       IP6PoolSize            uint16
-       IP6Buffers             uint32
-       IP6HtRatio             float64
-       SecCheckEnable         bool
-       SecCheckFragments      bool
-       TcCopy                 bool
-       TcClass                uint8
+type MapSummaryStatsReply struct {
+       Retval             int32
+       TotalBindings      uint64
+       TotalPkts          []uint64 `struc:"[2]uint64"`
+       TotalBytes         []uint64 `struc:"[2]uint64"`
+       TotalIP4Fragments  uint64
+       TotalSecurityCheck []uint64 `struc:"[2]uint64"`
 }
 
-func (*MapParamGetReply) GetMessageName() string {
-       return "map_param_get_reply"
+func (*MapSummaryStatsReply) GetMessageName() string {
+       return "map_summary_stats_reply"
 }
-func (*MapParamGetReply) GetCrcString() string {
-       return "b40e9226"
+func (*MapSummaryStatsReply) GetCrcString() string {
+       return "0e4ace0e"
 }
-func (*MapParamGetReply) GetMessageType() api.MessageType {
+func (*MapSummaryStatsReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
 func init() {
+       api.RegisterMessage((*MapAddDelRule)(nil), "map.MapAddDelRule")
+       api.RegisterMessage((*MapAddDelRuleReply)(nil), "map.MapAddDelRuleReply")
        api.RegisterMessage((*MapAddDomain)(nil), "map.MapAddDomain")
        api.RegisterMessage((*MapAddDomainReply)(nil), "map.MapAddDomainReply")
        api.RegisterMessage((*MapDelDomain)(nil), "map.MapDelDomain")
        api.RegisterMessage((*MapDelDomainReply)(nil), "map.MapDelDomainReply")
-       api.RegisterMessage((*MapAddDelRule)(nil), "map.MapAddDelRule")
-       api.RegisterMessage((*MapAddDelRuleReply)(nil), "map.MapAddDelRuleReply")
-       api.RegisterMessage((*MapDomainDump)(nil), "map.MapDomainDump")
        api.RegisterMessage((*MapDomainDetails)(nil), "map.MapDomainDetails")
-       api.RegisterMessage((*MapRuleDump)(nil), "map.MapRuleDump")
-       api.RegisterMessage((*MapRuleDetails)(nil), "map.MapRuleDetails")
+       api.RegisterMessage((*MapDomainDump)(nil), "map.MapDomainDump")
        api.RegisterMessage((*MapIfEnableDisable)(nil), "map.MapIfEnableDisable")
        api.RegisterMessage((*MapIfEnableDisableReply)(nil), "map.MapIfEnableDisableReply")
-       api.RegisterMessage((*MapSummaryStats)(nil), "map.MapSummaryStats")
-       api.RegisterMessage((*MapSummaryStatsReply)(nil), "map.MapSummaryStatsReply")
+       api.RegisterMessage((*MapParamAddDelPreResolve)(nil), "map.MapParamAddDelPreResolve")
+       api.RegisterMessage((*MapParamAddDelPreResolveReply)(nil), "map.MapParamAddDelPreResolveReply")
+       api.RegisterMessage((*MapParamGet)(nil), "map.MapParamGet")
+       api.RegisterMessage((*MapParamGetReply)(nil), "map.MapParamGetReply")
        api.RegisterMessage((*MapParamSetFragmentation)(nil), "map.MapParamSetFragmentation")
        api.RegisterMessage((*MapParamSetFragmentationReply)(nil), "map.MapParamSetFragmentationReply")
        api.RegisterMessage((*MapParamSetICMP)(nil), "map.MapParamSetICMP")
-       api.RegisterMessage((*MapParamSetICMPReply)(nil), "map.MapParamSetICMPReply")
        api.RegisterMessage((*MapParamSetICMP6)(nil), "map.MapParamSetICMP6")
        api.RegisterMessage((*MapParamSetICMP6Reply)(nil), "map.MapParamSetICMP6Reply")
-       api.RegisterMessage((*MapParamAddDelPreResolve)(nil), "map.MapParamAddDelPreResolve")
-       api.RegisterMessage((*MapParamAddDelPreResolveReply)(nil), "map.MapParamAddDelPreResolveReply")
+       api.RegisterMessage((*MapParamSetICMPReply)(nil), "map.MapParamSetICMPReply")
        api.RegisterMessage((*MapParamSetReassembly)(nil), "map.MapParamSetReassembly")
        api.RegisterMessage((*MapParamSetReassemblyReply)(nil), "map.MapParamSetReassemblyReply")
        api.RegisterMessage((*MapParamSetSecurityCheck)(nil), "map.MapParamSetSecurityCheck")
        api.RegisterMessage((*MapParamSetSecurityCheckReply)(nil), "map.MapParamSetSecurityCheckReply")
-       api.RegisterMessage((*MapParamSetTrafficClass)(nil), "map.MapParamSetTrafficClass")
-       api.RegisterMessage((*MapParamSetTrafficClassReply)(nil), "map.MapParamSetTrafficClassReply")
        api.RegisterMessage((*MapParamSetTCP)(nil), "map.MapParamSetTCP")
        api.RegisterMessage((*MapParamSetTCPReply)(nil), "map.MapParamSetTCPReply")
-       api.RegisterMessage((*MapParamGet)(nil), "map.MapParamGet")
-       api.RegisterMessage((*MapParamGetReply)(nil), "map.MapParamGetReply")
+       api.RegisterMessage((*MapParamSetTrafficClass)(nil), "map.MapParamSetTrafficClass")
+       api.RegisterMessage((*MapParamSetTrafficClassReply)(nil), "map.MapParamSetTrafficClassReply")
+       api.RegisterMessage((*MapRuleDetails)(nil), "map.MapRuleDetails")
+       api.RegisterMessage((*MapRuleDump)(nil), "map.MapRuleDump")
+       api.RegisterMessage((*MapSummaryStats)(nil), "map.MapSummaryStats")
+       api.RegisterMessage((*MapSummaryStatsReply)(nil), "map.MapSummaryStatsReply")
 }