/
stn.ba.go
105 lines (89 loc) · 2.6 KB
/
stn.ba.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Code generated by GoVPP binapi-generator. DO NOT EDIT.
// source: /usr/share/vpp/api/stn.api.json
/*
Package stn is a generated from VPP binary API module 'stn'.
It contains following objects:
2 services
4 messages
*/
package stn
import api "git.fd.io/govpp.git/api"
import struc "github.com/lunixbochs/struc"
import bytes "bytes"
// Reference imports to suppress errors if they are not otherwise used.
var _ = api.RegisterMessage
var _ = struc.Pack
var _ = bytes.NewBuffer
// Services represents VPP binary API services:
type Services interface {
DumpStnRules(*StnRulesDump) ([]*StnRulesDetails, error)
StnAddDelRule(*StnAddDelRule) (*StnAddDelRuleReply, error)
}
/* Messages */
// StnAddDelRule represents VPP binary API message 'stn_add_del_rule':
type StnAddDelRule struct {
IsIP4 uint8
IPAddress []byte `struc:"[16]byte"`
SwIfIndex uint32
IsAdd uint8
}
func (*StnAddDelRule) GetMessageName() string {
return "stn_add_del_rule"
}
func (*StnAddDelRule) GetCrcString() string {
return "9f0bbe21"
}
func (*StnAddDelRule) GetMessageType() api.MessageType {
return api.RequestMessage
}
// StnAddDelRuleReply represents VPP binary API message 'stn_add_del_rule_reply':
type StnAddDelRuleReply struct {
Retval int32
}
func (*StnAddDelRuleReply) GetMessageName() string {
return "stn_add_del_rule_reply"
}
func (*StnAddDelRuleReply) GetCrcString() string {
return "e8d4e804"
}
func (*StnAddDelRuleReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// StnRulesDetails represents VPP binary API message 'stn_rules_details':
type StnRulesDetails struct {
IsIP4 uint8
IPAddress []byte `struc:"[16]byte"`
SwIfIndex uint32
}
func (*StnRulesDetails) GetMessageName() string {
return "stn_rules_details"
}
func (*StnRulesDetails) GetCrcString() string {
return "5eafa31e"
}
func (*StnRulesDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// StnRulesDump represents VPP binary API message 'stn_rules_dump':
type StnRulesDump struct{}
func (*StnRulesDump) GetMessageName() string {
return "stn_rules_dump"
}
func (*StnRulesDump) GetCrcString() string {
return "51077d14"
}
func (*StnRulesDump) GetMessageType() api.MessageType {
return api.RequestMessage
}
func init() {
api.RegisterMessage((*StnAddDelRule)(nil), "stn.StnAddDelRule")
api.RegisterMessage((*StnAddDelRuleReply)(nil), "stn.StnAddDelRuleReply")
api.RegisterMessage((*StnRulesDetails)(nil), "stn.StnRulesDetails")
api.RegisterMessage((*StnRulesDump)(nil), "stn.StnRulesDump")
}
var Messages = []api.Message{
(*StnAddDelRule)(nil),
(*StnAddDelRuleReply)(nil),
(*StnRulesDetails)(nil),
(*StnRulesDump)(nil),
}