go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/l3/vrrp.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/vpp/l3/vrrp.proto 6 7 package vpp_l3 8 9 import ( 10 _ "go.ligato.io/vpp-agent/v3/proto/ligato" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // VRRPEntry represents Virtual Router desired state. 25 type VRRPEntry struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // This field refers to logical interface name 31 Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` 32 // Should be > 0 and <= 255 33 VrId uint32 `protobuf:"varint,2,opt,name=vr_id,json=vrId,proto3" json:"vr_id,omitempty"` 34 // Priority defines which router becomes master. Should be > 0 and <= 255. 35 Priority uint32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"` 36 // VR advertisement interval in milliseconds, should be => 10 and <= 65535. 37 // (Later, in implemetation it is converted into centiseconds, so precision may be lost). 38 Interval uint32 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` 39 // Controls whether a (starting or restarting) 40 // higher-priority Backup router preempts a lower-priority Master router. 41 Preempt bool `protobuf:"varint,5,opt,name=preempt,proto3" json:"preempt,omitempty"` 42 // Controls whether a virtual router in Master state will accept packets 43 // addressed to the address owner's IPvX address as its own if it is not the IPvX address owner. 44 Accept bool `protobuf:"varint,6,opt,name=accept,proto3" json:"accept,omitempty"` 45 // Unicast mode may be used to take 46 // advantage of newer token ring adapter implementations that support 47 // non-promiscuous reception for multiple unicast MAC addresses and to 48 // avoid both the multicast traffic and usage conflicts associated with 49 // the use of token ring functional addresses. 50 Unicast bool `protobuf:"varint,7,opt,name=unicast,proto3" json:"unicast,omitempty"` 51 // Ip address quantity should be > 0 and <= 255. 52 IpAddresses []string `protobuf:"bytes,8,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` 53 Enabled bool `protobuf:"varint,9,opt,name=enabled,proto3" json:"enabled,omitempty"` 54 } 55 56 func (x *VRRPEntry) Reset() { 57 *x = VRRPEntry{} 58 if protoimpl.UnsafeEnabled { 59 mi := &file_ligato_vpp_l3_vrrp_proto_msgTypes[0] 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 ms.StoreMessageInfo(mi) 62 } 63 } 64 65 func (x *VRRPEntry) String() string { 66 return protoimpl.X.MessageStringOf(x) 67 } 68 69 func (*VRRPEntry) ProtoMessage() {} 70 71 func (x *VRRPEntry) ProtoReflect() protoreflect.Message { 72 mi := &file_ligato_vpp_l3_vrrp_proto_msgTypes[0] 73 if protoimpl.UnsafeEnabled && x != nil { 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 75 if ms.LoadMessageInfo() == nil { 76 ms.StoreMessageInfo(mi) 77 } 78 return ms 79 } 80 return mi.MessageOf(x) 81 } 82 83 // Deprecated: Use VRRPEntry.ProtoReflect.Descriptor instead. 84 func (*VRRPEntry) Descriptor() ([]byte, []int) { 85 return file_ligato_vpp_l3_vrrp_proto_rawDescGZIP(), []int{0} 86 } 87 88 func (x *VRRPEntry) GetInterface() string { 89 if x != nil { 90 return x.Interface 91 } 92 return "" 93 } 94 95 func (x *VRRPEntry) GetVrId() uint32 { 96 if x != nil { 97 return x.VrId 98 } 99 return 0 100 } 101 102 func (x *VRRPEntry) GetPriority() uint32 { 103 if x != nil { 104 return x.Priority 105 } 106 return 0 107 } 108 109 func (x *VRRPEntry) GetInterval() uint32 { 110 if x != nil { 111 return x.Interval 112 } 113 return 0 114 } 115 116 func (x *VRRPEntry) GetPreempt() bool { 117 if x != nil { 118 return x.Preempt 119 } 120 return false 121 } 122 123 func (x *VRRPEntry) GetAccept() bool { 124 if x != nil { 125 return x.Accept 126 } 127 return false 128 } 129 130 func (x *VRRPEntry) GetUnicast() bool { 131 if x != nil { 132 return x.Unicast 133 } 134 return false 135 } 136 137 func (x *VRRPEntry) GetIpAddresses() []string { 138 if x != nil { 139 return x.IpAddresses 140 } 141 return nil 142 } 143 144 func (x *VRRPEntry) GetEnabled() bool { 145 if x != nil { 146 return x.Enabled 147 } 148 return false 149 } 150 151 var File_ligato_vpp_l3_vrrp_proto protoreflect.FileDescriptor 152 153 var file_ligato_vpp_l3_vrrp_proto_rawDesc = []byte{ 154 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, 155 0x76, 0x72, 0x72, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 156 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 157 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 158 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x02, 0x0a, 0x09, 0x56, 0x52, 0x52, 0x50, 0x45, 0x6e, 0x74, 0x72, 159 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 160 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 161 0x1f, 0x0a, 0x05, 0x76, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, 162 0x82, 0x7d, 0x07, 0x12, 0x05, 0x08, 0x01, 0x10, 0xff, 0x01, 0x52, 0x04, 0x76, 0x72, 0x49, 0x64, 163 0x12, 0x26, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 164 0x28, 0x0d, 0x42, 0x0a, 0x82, 0x7d, 0x07, 0x12, 0x05, 0x08, 0x01, 0x10, 0xff, 0x01, 0x52, 0x08, 165 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x27, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 166 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0b, 0x82, 0x7d, 0x08, 0x12, 167 0x06, 0x08, 0x0a, 0x10, 0xff, 0xff, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 168 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x05, 0x20, 0x01, 169 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 170 0x63, 0x63, 0x65, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x63, 171 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, 0x18, 0x07, 172 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x73, 0x74, 0x12, 0x28, 0x0a, 173 0x0c, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x08, 0x20, 174 0x03, 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 175 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 176 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 177 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 178 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 179 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 180 0x6c, 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 181 0x33, 182 } 183 184 var ( 185 file_ligato_vpp_l3_vrrp_proto_rawDescOnce sync.Once 186 file_ligato_vpp_l3_vrrp_proto_rawDescData = file_ligato_vpp_l3_vrrp_proto_rawDesc 187 ) 188 189 func file_ligato_vpp_l3_vrrp_proto_rawDescGZIP() []byte { 190 file_ligato_vpp_l3_vrrp_proto_rawDescOnce.Do(func() { 191 file_ligato_vpp_l3_vrrp_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_vrrp_proto_rawDescData) 192 }) 193 return file_ligato_vpp_l3_vrrp_proto_rawDescData 194 } 195 196 var file_ligato_vpp_l3_vrrp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 197 var file_ligato_vpp_l3_vrrp_proto_goTypes = []interface{}{ 198 (*VRRPEntry)(nil), // 0: ligato.vpp.l3.VRRPEntry 199 } 200 var file_ligato_vpp_l3_vrrp_proto_depIdxs = []int32{ 201 0, // [0:0] is the sub-list for method output_type 202 0, // [0:0] is the sub-list for method input_type 203 0, // [0:0] is the sub-list for extension type_name 204 0, // [0:0] is the sub-list for extension extendee 205 0, // [0:0] is the sub-list for field type_name 206 } 207 208 func init() { file_ligato_vpp_l3_vrrp_proto_init() } 209 func file_ligato_vpp_l3_vrrp_proto_init() { 210 if File_ligato_vpp_l3_vrrp_proto != nil { 211 return 212 } 213 if !protoimpl.UnsafeEnabled { 214 file_ligato_vpp_l3_vrrp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 215 switch v := v.(*VRRPEntry); i { 216 case 0: 217 return &v.state 218 case 1: 219 return &v.sizeCache 220 case 2: 221 return &v.unknownFields 222 default: 223 return nil 224 } 225 } 226 } 227 type x struct{} 228 out := protoimpl.TypeBuilder{ 229 File: protoimpl.DescBuilder{ 230 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 231 RawDescriptor: file_ligato_vpp_l3_vrrp_proto_rawDesc, 232 NumEnums: 0, 233 NumMessages: 1, 234 NumExtensions: 0, 235 NumServices: 0, 236 }, 237 GoTypes: file_ligato_vpp_l3_vrrp_proto_goTypes, 238 DependencyIndexes: file_ligato_vpp_l3_vrrp_proto_depIdxs, 239 MessageInfos: file_ligato_vpp_l3_vrrp_proto_msgTypes, 240 }.Build() 241 File_ligato_vpp_l3_vrrp_proto = out.File 242 file_ligato_vpp_l3_vrrp_proto_rawDesc = nil 243 file_ligato_vpp_l3_vrrp_proto_goTypes = nil 244 file_ligato_vpp_l3_vrrp_proto_depIdxs = nil 245 }