diff options
author | 2018-10-03 05:14:40 -0700 | |
---|---|---|
committer | 2018-10-03 05:14:40 -0700 | |
commit | 62d19032621c7db801b313a1e19e787cfb1fbc3e (patch) | |
tree | d2181b6b09f8cbbaf32a4dff72e9d64675a243bb /examples/bin_api/interfaces | |
parent | 0f731471ab258d9e01658f0ab70f8317fd0fb89c (diff) |
Omit message factory and line numbers from generated output
Change-Id: Ie48cc0a641242625daf55caf00ab630e78aa86b7
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples/bin_api/interfaces')
-rw-r--r-- | examples/bin_api/interfaces/interfaces.ba.go | 197 |
1 files changed, 6 insertions, 191 deletions
diff --git a/examples/bin_api/interfaces/interfaces.ba.go b/examples/bin_api/interfaces/interfaces.ba.go index 38bbb6b..6ab79d3 100644 --- a/examples/bin_api/interfaces/interfaces.ba.go +++ b/examples/bin_api/interfaces/interfaces.ba.go @@ -1,16 +1,14 @@ // Code generated by GoVPP binapi-generator. DO NOT EDIT. -// source: interface.api.json +// source: interface.api.json /* -Package interfaces is a generated VPP binary API of the 'interface' VPP module. + Package interfaces is a generated from VPP binary API module 'interface'. -It is generated from this file: - interface.api.json + It contains following objects: + 45 messages + 3 types + 22 services -It contains these VPP binary API objects: - 45 messages - 3 types - 22 services */ package interfaces @@ -26,7 +24,6 @@ var _ = bytes.NewBuffer /* Types */ // VlibCounter represents the VPP binary API type 'vlib_counter'. -// Generated from 'interface.api.json', line 1301: // // "vlib_counter", // [ @@ -54,7 +51,6 @@ func (*VlibCounter) GetCrcString() string { } // VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'. -// Generated from 'interface.api.json', line 1315: // // "vnet_combined_counter", // [ @@ -157,7 +153,6 @@ func (*VnetCombinedCounter) GetCrcString() string { } // VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'. -// Generated from 'interface.api.json', line 1389: // // "vnet_simple_counter", // [ @@ -227,7 +222,6 @@ func (*VnetSimpleCounter) GetCrcString() string { /* Messages */ // SwInterfaceSetFlags represents the VPP binary API message 'sw_interface_set_flags'. -// Generated from 'interface.api.json', line 4: // // "sw_interface_set_flags", // [ @@ -268,12 +262,8 @@ func (*SwInterfaceSetFlags) GetCrcString() string { func (*SwInterfaceSetFlags) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceSetFlags() api.Message { - return &SwInterfaceSetFlags{} -} // SwInterfaceSetFlagsReply represents the VPP binary API message 'sw_interface_set_flags_reply'. -// Generated from 'interface.api.json', line 30: // // "sw_interface_set_flags_reply", // [ @@ -305,12 +295,8 @@ func (*SwInterfaceSetFlagsReply) GetCrcString() string { func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceSetFlagsReply() api.Message { - return &SwInterfaceSetFlagsReply{} -} // HwInterfaceSetMtu represents the VPP binary API message 'hw_interface_set_mtu'. -// Generated from 'interface.api.json', line 48: // // "hw_interface_set_mtu", // [ @@ -351,12 +337,8 @@ func (*HwInterfaceSetMtu) GetCrcString() string { func (*HwInterfaceSetMtu) GetMessageType() api.MessageType { return api.RequestMessage } -func NewHwInterfaceSetMtu() api.Message { - return &HwInterfaceSetMtu{} -} // HwInterfaceSetMtuReply represents the VPP binary API message 'hw_interface_set_mtu_reply'. -// Generated from 'interface.api.json', line 74: // // "hw_interface_set_mtu_reply", // [ @@ -388,12 +370,8 @@ func (*HwInterfaceSetMtuReply) GetCrcString() string { func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewHwInterfaceSetMtuReply() api.Message { - return &HwInterfaceSetMtuReply{} -} // SwInterfaceSetMtu represents the VPP binary API message 'sw_interface_set_mtu'. -// Generated from 'interface.api.json', line 92: // // "sw_interface_set_mtu", // [ @@ -435,12 +413,8 @@ func (*SwInterfaceSetMtu) GetCrcString() string { func (*SwInterfaceSetMtu) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceSetMtu() api.Message { - return &SwInterfaceSetMtu{} -} // SwInterfaceSetMtuReply represents the VPP binary API message 'sw_interface_set_mtu_reply'. -// Generated from 'interface.api.json', line 119: // // "sw_interface_set_mtu_reply", // [ @@ -472,12 +446,8 @@ func (*SwInterfaceSetMtuReply) GetCrcString() string { func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceSetMtuReply() api.Message { - return &SwInterfaceSetMtuReply{} -} // SwInterfaceEvent represents the VPP binary API message 'sw_interface_event'. -// Generated from 'interface.api.json', line 137: // // "sw_interface_event", // [ @@ -529,12 +499,8 @@ func (*SwInterfaceEvent) GetCrcString() string { func (*SwInterfaceEvent) GetMessageType() api.MessageType { return api.EventMessage } -func NewSwInterfaceEvent() api.Message { - return &SwInterfaceEvent{} -} // WantInterfaceEvents represents the VPP binary API message 'want_interface_events'. -// Generated from 'interface.api.json', line 171: // // "want_interface_events", // [ @@ -575,12 +541,8 @@ func (*WantInterfaceEvents) GetCrcString() string { func (*WantInterfaceEvents) GetMessageType() api.MessageType { return api.RequestMessage } -func NewWantInterfaceEvents() api.Message { - return &WantInterfaceEvents{} -} // WantInterfaceEventsReply represents the VPP binary API message 'want_interface_events_reply'. -// Generated from 'interface.api.json', line 197: // // "want_interface_events_reply", // [ @@ -612,12 +574,8 @@ func (*WantInterfaceEventsReply) GetCrcString() string { func (*WantInterfaceEventsReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewWantInterfaceEventsReply() api.Message { - return &WantInterfaceEventsReply{} -} // SwInterfaceDetails represents the VPP binary API message 'sw_interface_details'. -// Generated from 'interface.api.json', line 215: // // "sw_interface_details", // [ @@ -805,12 +763,8 @@ func (*SwInterfaceDetails) GetCrcString() string { func (*SwInterfaceDetails) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceDetails() api.Message { - return &SwInterfaceDetails{} -} // SwInterfaceDump represents the VPP binary API message 'sw_interface_dump'. -// Generated from 'interface.api.json', line 359: // // "sw_interface_dump", // [ @@ -852,12 +806,8 @@ func (*SwInterfaceDump) GetCrcString() string { func (*SwInterfaceDump) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceDump() api.Message { - return &SwInterfaceDump{} -} // SwInterfaceAddDelAddress represents the VPP binary API message 'sw_interface_add_del_address'. -// Generated from 'interface.api.json', line 386: // // "sw_interface_add_del_address", // [ @@ -919,12 +869,8 @@ func (*SwInterfaceAddDelAddress) GetCrcString() string { func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceAddDelAddress() api.Message { - return &SwInterfaceAddDelAddress{} -} // SwInterfaceAddDelAddressReply represents the VPP binary API message 'sw_interface_add_del_address_reply'. -// Generated from 'interface.api.json', line 429: // // "sw_interface_add_del_address_reply", // [ @@ -956,12 +902,8 @@ func (*SwInterfaceAddDelAddressReply) GetCrcString() string { func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceAddDelAddressReply() api.Message { - return &SwInterfaceAddDelAddressReply{} -} // SwInterfaceSetTable represents the VPP binary API message 'sw_interface_set_table'. -// Generated from 'interface.api.json', line 447: // // "sw_interface_set_table", // [ @@ -1007,12 +949,8 @@ func (*SwInterfaceSetTable) GetCrcString() string { func (*SwInterfaceSetTable) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceSetTable() api.Message { - return &SwInterfaceSetTable{} -} // SwInterfaceSetTableReply represents the VPP binary API message 'sw_interface_set_table_reply'. -// Generated from 'interface.api.json', line 477: // // "sw_interface_set_table_reply", // [ @@ -1044,12 +982,8 @@ func (*SwInterfaceSetTableReply) GetCrcString() string { func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceSetTableReply() api.Message { - return &SwInterfaceSetTableReply{} -} // SwInterfaceGetTable represents the VPP binary API message 'sw_interface_get_table'. -// Generated from 'interface.api.json', line 495: // // "sw_interface_get_table", // [ @@ -1090,12 +1024,8 @@ func (*SwInterfaceGetTable) GetCrcString() string { func (*SwInterfaceGetTable) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceGetTable() api.Message { - return &SwInterfaceGetTable{} -} // SwInterfaceGetTableReply represents the VPP binary API message 'sw_interface_get_table_reply'. -// Generated from 'interface.api.json', line 521: // // "sw_interface_get_table_reply", // [ @@ -1132,12 +1062,8 @@ func (*SwInterfaceGetTableReply) GetCrcString() string { func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceGetTableReply() api.Message { - return &SwInterfaceGetTableReply{} -} // SwInterfaceSetUnnumbered represents the VPP binary API message 'sw_interface_set_unnumbered'. -// Generated from 'interface.api.json', line 543: // // "sw_interface_set_unnumbered", // [ @@ -1183,12 +1109,8 @@ func (*SwInterfaceSetUnnumbered) GetCrcString() string { func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceSetUnnumbered() api.Message { - return &SwInterfaceSetUnnumbered{} -} // SwInterfaceSetUnnumberedReply represents the VPP binary API message 'sw_interface_set_unnumbered_reply'. -// Generated from 'interface.api.json', line 573: // // "sw_interface_set_unnumbered_reply", // [ @@ -1220,12 +1142,8 @@ func (*SwInterfaceSetUnnumberedReply) GetCrcString() string { func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceSetUnnumberedReply() api.Message { - return &SwInterfaceSetUnnumberedReply{} -} // SwInterfaceClearStats represents the VPP binary API message 'sw_interface_clear_stats'. -// Generated from 'interface.api.json', line 591: // // "sw_interface_clear_stats", // [ @@ -1261,12 +1179,8 @@ func (*SwInterfaceClearStats) GetCrcString() string { func (*SwInterfaceClearStats) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceClearStats() api.Message { - return &SwInterfaceClearStats{} -} // SwInterfaceClearStatsReply represents the VPP binary API message 'sw_interface_clear_stats_reply'. -// Generated from 'interface.api.json', line 613: // // "sw_interface_clear_stats_reply", // [ @@ -1298,12 +1212,8 @@ func (*SwInterfaceClearStatsReply) GetCrcString() string { func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceClearStatsReply() api.Message { - return &SwInterfaceClearStatsReply{} -} // SwInterfaceTagAddDel represents the VPP binary API message 'sw_interface_tag_add_del'. -// Generated from 'interface.api.json', line 631: // // "sw_interface_tag_add_del", // [ @@ -1350,12 +1260,8 @@ func (*SwInterfaceTagAddDel) GetCrcString() string { func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceTagAddDel() api.Message { - return &SwInterfaceTagAddDel{} -} // SwInterfaceTagAddDelReply represents the VPP binary API message 'sw_interface_tag_add_del_reply'. -// Generated from 'interface.api.json', line 662: // // "sw_interface_tag_add_del_reply", // [ @@ -1387,12 +1293,8 @@ func (*SwInterfaceTagAddDelReply) GetCrcString() string { func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceTagAddDelReply() api.Message { - return &SwInterfaceTagAddDelReply{} -} // SwInterfaceSetMacAddress represents the VPP binary API message 'sw_interface_set_mac_address'. -// Generated from 'interface.api.json', line 680: // // "sw_interface_set_mac_address", // [ @@ -1434,12 +1336,8 @@ func (*SwInterfaceSetMacAddress) GetCrcString() string { func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceSetMacAddress() api.Message { - return &SwInterfaceSetMacAddress{} -} // SwInterfaceSetMacAddressReply represents the VPP binary API message 'sw_interface_set_mac_address_reply'. -// Generated from 'interface.api.json', line 707: // // "sw_interface_set_mac_address_reply", // [ @@ -1471,12 +1369,8 @@ func (*SwInterfaceSetMacAddressReply) GetCrcString() string { func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceSetMacAddressReply() api.Message { - return &SwInterfaceSetMacAddressReply{} -} // SwInterfaceGetMacAddress represents the VPP binary API message 'sw_interface_get_mac_address'. -// Generated from 'interface.api.json', line 725: // // "sw_interface_get_mac_address", // [ @@ -1512,12 +1406,8 @@ func (*SwInterfaceGetMacAddress) GetCrcString() string { func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceGetMacAddress() api.Message { - return &SwInterfaceGetMacAddress{} -} // SwInterfaceGetMacAddressReply represents the VPP binary API message 'sw_interface_get_mac_address_reply'. -// Generated from 'interface.api.json', line 747: // // "sw_interface_get_mac_address_reply", // [ @@ -1555,12 +1445,8 @@ func (*SwInterfaceGetMacAddressReply) GetCrcString() string { func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceGetMacAddressReply() api.Message { - return &SwInterfaceGetMacAddressReply{} -} // SwInterfaceSetRxMode represents the VPP binary API message 'sw_interface_set_rx_mode'. -// Generated from 'interface.api.json', line 770: // // "sw_interface_set_rx_mode", // [ @@ -1611,12 +1497,8 @@ func (*SwInterfaceSetRxMode) GetCrcString() string { func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType { return api.RequestMessage } -func NewSwInterfaceSetRxMode() api.Message { - return &SwInterfaceSetRxMode{} -} // SwInterfaceSetRxModeReply represents the VPP binary API message 'sw_interface_set_rx_mode_reply'. -// Generated from 'interface.api.json', line 804: // // "sw_interface_set_rx_mode_reply", // [ @@ -1648,12 +1530,8 @@ func (*SwInterfaceSetRxModeReply) GetCrcString() string { func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewSwInterfaceSetRxModeReply() api.Message { - return &SwInterfaceSetRxModeReply{} -} // InterfaceNameRenumber represents the VPP binary API message 'interface_name_renumber'. -// Generated from 'interface.api.json', line 822: // // "interface_name_renumber", // [ @@ -1694,12 +1572,8 @@ func (*InterfaceNameRenumber) GetCrcString() string { func (*InterfaceNameRenumber) GetMessageType() api.MessageType { return api.RequestMessage } -func NewInterfaceNameRenumber() api.Message { - return &InterfaceNameRenumber{} -} // InterfaceNameRenumberReply represents the VPP binary API message 'interface_name_renumber_reply'. -// Generated from 'interface.api.json', line 848: // // "interface_name_renumber_reply", // [ @@ -1731,12 +1605,8 @@ func (*InterfaceNameRenumberReply) GetCrcString() string { func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewInterfaceNameRenumberReply() api.Message { - return &InterfaceNameRenumberReply{} -} // CreateSubif represents the VPP binary API message 'create_subif'. -// Generated from 'interface.api.json', line 866: // // "create_subif", // [ @@ -1827,12 +1697,8 @@ func (*CreateSubif) GetCrcString() string { func (*CreateSubif) GetMessageType() api.MessageType { return api.RequestMessage } -func NewCreateSubif() api.Message { - return &CreateSubif{} -} // CreateSubifReply represents the VPP binary API message 'create_subif_reply'. -// Generated from 'interface.api.json', line 932: // // "create_subif_reply", // [ @@ -1869,12 +1735,8 @@ func (*CreateSubifReply) GetCrcString() string { func (*CreateSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewCreateSubifReply() api.Message { - return &CreateSubifReply{} -} // CreateVlanSubif represents the VPP binary API message 'create_vlan_subif'. -// Generated from 'interface.api.json', line 954: // // "create_vlan_subif", // [ @@ -1915,12 +1777,8 @@ func (*CreateVlanSubif) GetCrcString() string { func (*CreateVlanSubif) GetMessageType() api.MessageType { return api.RequestMessage } -func NewCreateVlanSubif() api.Message { - return &CreateVlanSubif{} -} // CreateVlanSubifReply represents the VPP binary API message 'create_vlan_subif_reply'. -// Generated from 'interface.api.json', line 980: // // "create_vlan_subif_reply", // [ @@ -1957,12 +1815,8 @@ func (*CreateVlanSubifReply) GetCrcString() string { func (*CreateVlanSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewCreateVlanSubifReply() api.Message { - return &CreateVlanSubifReply{} -} // DeleteSubif represents the VPP binary API message 'delete_subif'. -// Generated from 'interface.api.json', line 1002: // // "delete_subif", // [ @@ -1998,12 +1852,8 @@ func (*DeleteSubif) GetCrcString() string { func (*DeleteSubif) GetMessageType() api.MessageType { return api.RequestMessage } -func NewDeleteSubif() api.Message { - return &DeleteSubif{} -} // DeleteSubifReply represents the VPP binary API message 'delete_subif_reply'. -// Generated from 'interface.api.json', line 1024: // // "delete_subif_reply", // [ @@ -2035,12 +1885,8 @@ func (*DeleteSubifReply) GetCrcString() string { func (*DeleteSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewDeleteSubifReply() api.Message { - return &DeleteSubifReply{} -} // CreateLoopback represents the VPP binary API message 'create_loopback'. -// Generated from 'interface.api.json', line 1042: // // "create_loopback", // [ @@ -2077,12 +1923,8 @@ func (*CreateLoopback) GetCrcString() string { func (*CreateLoopback) GetMessageType() api.MessageType { return api.RequestMessage } -func NewCreateLoopback() api.Message { - return &CreateLoopback{} -} // CreateLoopbackReply represents the VPP binary API message 'create_loopback_reply'. -// Generated from 'interface.api.json', line 1065: // // "create_loopback_reply", // [ @@ -2119,12 +1961,8 @@ func (*CreateLoopbackReply) GetCrcString() string { func (*CreateLoopbackReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewCreateLoopbackReply() api.Message { - return &CreateLoopbackReply{} -} // CreateLoopbackInstance represents the VPP binary API message 'create_loopback_instance'. -// Generated from 'interface.api.json', line 1087: // // "create_loopback_instance", // [ @@ -2171,12 +2009,8 @@ func (*CreateLoopbackInstance) GetCrcString() string { func (*CreateLoopbackInstance) GetMessageType() api.MessageType { return api.RequestMessage } -func NewCreateLoopbackInstance() api.Message { - return &CreateLoopbackInstance{} -} // CreateLoopbackInstanceReply represents the VPP binary API message 'create_loopback_instance_reply'. -// Generated from 'interface.api.json', line 1118: // // "create_loopback_instance_reply", // [ @@ -2213,12 +2047,8 @@ func (*CreateLoopbackInstanceReply) GetCrcString() string { func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewCreateLoopbackInstanceReply() api.Message { - return &CreateLoopbackInstanceReply{} -} // DeleteLoopback represents the VPP binary API message 'delete_loopback'. -// Generated from 'interface.api.json', line 1140: // // "delete_loopback", // [ @@ -2254,12 +2084,8 @@ func (*DeleteLoopback) GetCrcString() string { func (*DeleteLoopback) GetMessageType() api.MessageType { return api.RequestMessage } -func NewDeleteLoopback() api.Message { - return &DeleteLoopback{} -} // DeleteLoopbackReply represents the VPP binary API message 'delete_loopback_reply'. -// Generated from 'interface.api.json', line 1162: // // "delete_loopback_reply", // [ @@ -2291,12 +2117,8 @@ func (*DeleteLoopbackReply) GetCrcString() string { func (*DeleteLoopbackReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewDeleteLoopbackReply() api.Message { - return &DeleteLoopbackReply{} -} // CollectDetailedInterfaceStats represents the VPP binary API message 'collect_detailed_interface_stats'. -// Generated from 'interface.api.json', line 1180: // // "collect_detailed_interface_stats", // [ @@ -2337,12 +2159,8 @@ func (*CollectDetailedInterfaceStats) GetCrcString() string { func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType { return api.RequestMessage } -func NewCollectDetailedInterfaceStats() api.Message { - return &CollectDetailedInterfaceStats{} -} // CollectDetailedInterfaceStatsReply represents the VPP binary API message 'collect_detailed_interface_stats_reply'. -// Generated from 'interface.api.json', line 1206: // // "collect_detailed_interface_stats_reply", // [ @@ -2374,9 +2192,6 @@ func (*CollectDetailedInterfaceStatsReply) GetCrcString() string { func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func NewCollectDetailedInterfaceStatsReply() api.Message { - return &CollectDetailedInterfaceStatsReply{} -} /* Services */ |