forked from contiv/vpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nodeconfig.pb.go
195 lines (171 loc) · 7.64 KB
/
nodeconfig.pb.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: nodeconfig.proto
package model
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// NodeConfig is used to store Contiv-specific node configuration entered via CRD.
type NodeConfig struct {
// name of the node to which the configuration applies
NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
// main VPP interface used for the inter-node connectivity
MainVppInterface *NodeConfig_InterfaceConfig `protobuf:"bytes,2,opt,name=main_vpp_interface,json=mainVppInterface,proto3" json:"main_vpp_interface,omitempty"`
// other interfaces on VPP, not necessarily used for inter-node connectivity
OtherVppInterfaces []*NodeConfig_InterfaceConfig `protobuf:"bytes,3,rep,name=other_vpp_interfaces,json=otherVppInterfaces,proto3" json:"other_vpp_interfaces,omitempty"`
// interface to be stolen from the host stack and bound to VPP
StealInterface string `protobuf:"bytes,4,opt,name=steal_interface,json=stealInterface,proto3" json:"steal_interface,omitempty"`
// IP address of the default gateway
Gateway string `protobuf:"bytes,5,opt,name=gateway,proto3" json:"gateway,omitempty"`
// whether to NAT external traffic or not
NatExternalTraffic bool `protobuf:"varint,6,opt,name=nat_external_traffic,json=natExternalTraffic,proto3" json:"nat_external_traffic,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeConfig) Reset() { *m = NodeConfig{} }
func (m *NodeConfig) String() string { return proto.CompactTextString(m) }
func (*NodeConfig) ProtoMessage() {}
func (*NodeConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cf39f786ffb03687, []int{0}
}
func (m *NodeConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeConfig.Unmarshal(m, b)
}
func (m *NodeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeConfig.Marshal(b, m, deterministic)
}
func (m *NodeConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeConfig.Merge(m, src)
}
func (m *NodeConfig) XXX_Size() int {
return xxx_messageInfo_NodeConfig.Size(m)
}
func (m *NodeConfig) XXX_DiscardUnknown() {
xxx_messageInfo_NodeConfig.DiscardUnknown(m)
}
var xxx_messageInfo_NodeConfig proto.InternalMessageInfo
func (m *NodeConfig) GetNodeName() string {
if m != nil {
return m.NodeName
}
return ""
}
func (m *NodeConfig) GetMainVppInterface() *NodeConfig_InterfaceConfig {
if m != nil {
return m.MainVppInterface
}
return nil
}
func (m *NodeConfig) GetOtherVppInterfaces() []*NodeConfig_InterfaceConfig {
if m != nil {
return m.OtherVppInterfaces
}
return nil
}
func (m *NodeConfig) GetStealInterface() string {
if m != nil {
return m.StealInterface
}
return ""
}
func (m *NodeConfig) GetGateway() string {
if m != nil {
return m.Gateway
}
return ""
}
func (m *NodeConfig) GetNatExternalTraffic() bool {
if m != nil {
return m.NatExternalTraffic
}
return false
}
// InterfaceConfig stores configuration for a single interface.
type NodeConfig_InterfaceConfig struct {
// interface name to which the configuration applies
InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
// ip address to statically assign to the interface
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
// if enabled, the interface will be assigned IP address dynamically via DHCP protocol
UseDhcp bool `protobuf:"varint,3,opt,name=use_dhcp,json=useDhcp,proto3" json:"use_dhcp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeConfig_InterfaceConfig) Reset() { *m = NodeConfig_InterfaceConfig{} }
func (m *NodeConfig_InterfaceConfig) String() string { return proto.CompactTextString(m) }
func (*NodeConfig_InterfaceConfig) ProtoMessage() {}
func (*NodeConfig_InterfaceConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cf39f786ffb03687, []int{0, 0}
}
func (m *NodeConfig_InterfaceConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeConfig_InterfaceConfig.Unmarshal(m, b)
}
func (m *NodeConfig_InterfaceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeConfig_InterfaceConfig.Marshal(b, m, deterministic)
}
func (m *NodeConfig_InterfaceConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeConfig_InterfaceConfig.Merge(m, src)
}
func (m *NodeConfig_InterfaceConfig) XXX_Size() int {
return xxx_messageInfo_NodeConfig_InterfaceConfig.Size(m)
}
func (m *NodeConfig_InterfaceConfig) XXX_DiscardUnknown() {
xxx_messageInfo_NodeConfig_InterfaceConfig.DiscardUnknown(m)
}
var xxx_messageInfo_NodeConfig_InterfaceConfig proto.InternalMessageInfo
func (m *NodeConfig_InterfaceConfig) GetInterfaceName() string {
if m != nil {
return m.InterfaceName
}
return ""
}
func (m *NodeConfig_InterfaceConfig) GetIp() string {
if m != nil {
return m.Ip
}
return ""
}
func (m *NodeConfig_InterfaceConfig) GetUseDhcp() bool {
if m != nil {
return m.UseDhcp
}
return false
}
func init() {
proto.RegisterType((*NodeConfig)(nil), "model.NodeConfig")
proto.RegisterType((*NodeConfig_InterfaceConfig)(nil), "model.NodeConfig.InterfaceConfig")
}
func init() { proto.RegisterFile("nodeconfig.proto", fileDescriptor_cf39f786ffb03687) }
var fileDescriptor_cf39f786ffb03687 = []byte{
// 285 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0xcb, 0x4e, 0xc3, 0x30,
0x10, 0x54, 0x12, 0xda, 0x26, 0x8b, 0x48, 0x2b, 0xab, 0x07, 0x03, 0x97, 0x80, 0x84, 0xc8, 0x29,
0x42, 0xf0, 0x09, 0xc0, 0x81, 0x4b, 0x91, 0x02, 0xe2, 0x6a, 0x19, 0x67, 0xd3, 0x58, 0x4a, 0x6c,
0x2b, 0x71, 0x79, 0x7c, 0x12, 0x7f, 0x89, 0xe2, 0xd2, 0x34, 0x70, 0xe2, 0xb8, 0x33, 0xb3, 0xb3,
0xe3, 0x31, 0x2c, 0x94, 0x2e, 0x50, 0x68, 0x55, 0xca, 0x75, 0x66, 0x5a, 0x6d, 0x35, 0x99, 0x34,
0xba, 0xc0, 0xfa, 0xfc, 0x2b, 0x00, 0x58, 0xe9, 0x02, 0x6f, 0x1d, 0x47, 0x4e, 0x21, 0xea, 0x95,
0x4c, 0xf1, 0x06, 0xa9, 0x97, 0x78, 0x69, 0x94, 0x87, 0x3d, 0xb0, 0xe2, 0x0d, 0x92, 0x47, 0x20,
0x0d, 0x97, 0x8a, 0xbd, 0x19, 0xc3, 0xa4, 0xb2, 0xd8, 0x96, 0x5c, 0x20, 0xf5, 0x13, 0x2f, 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