github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/sr_mpls/sr_mpls.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 // versions: 3 // binapi-generator: v0.10.0-dev 4 // VPP: 23.10-rc0~170-g6f1548434 5 // source: core/sr_mpls.api.json 6 7 // Package sr_mpls contains generated bindings for API file sr_mpls.api. 8 // 9 // Contents: 10 // - 10 messages 11 package sr_mpls 12 13 import ( 14 _ "github.com/networkservicemesh/govpp/binapi/interface_types" 15 ip_types "github.com/networkservicemesh/govpp/binapi/ip_types" 16 sr_types "github.com/networkservicemesh/govpp/binapi/sr_types" 17 api "go.fd.io/govpp/api" 18 codec "go.fd.io/govpp/codec" 19 ) 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the GoVPP api package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // GoVPP api package needs to be updated. 25 const _ = api.GoVppAPIPackageIsVersion2 26 27 const ( 28 APIFile = "sr_mpls" 29 APIVersion = "3.0.0" 30 VersionCrc = 0x156edb17 31 ) 32 33 // MPLS SR policy add 34 // - bsid - is the bindingSID of the SR Policy. MPLS label (20bit) 35 // - weight - is the weight of the sid list. optional. 36 // - is_spray - is the type of the SR policy. (0.Default // 1.Spray) 37 // - segments - vector of labels (20bit) composing the segment list 38 // 39 // SrMplsPolicyAdd defines message 'sr_mpls_policy_add'. 40 type SrMplsPolicyAdd struct { 41 Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` 42 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` 43 IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"` 44 NSegments uint8 `binapi:"u8,name=n_segments" json:"-"` 45 Segments []uint32 `binapi:"u32[n_segments],name=segments" json:"segments,omitempty"` 46 } 47 48 func (m *SrMplsPolicyAdd) Reset() { *m = SrMplsPolicyAdd{} } 49 func (*SrMplsPolicyAdd) GetMessageName() string { return "sr_mpls_policy_add" } 50 func (*SrMplsPolicyAdd) GetCrcString() string { return "a1a70c70" } 51 func (*SrMplsPolicyAdd) GetMessageType() api.MessageType { 52 return api.RequestMessage 53 } 54 55 func (m *SrMplsPolicyAdd) Size() (size int) { 56 if m == nil { 57 return 0 58 } 59 size += 4 // m.Bsid 60 size += 4 // m.Weight 61 size += 1 // m.IsSpray 62 size += 1 // m.NSegments 63 size += 4 * len(m.Segments) // m.Segments 64 return size 65 } 66 func (m *SrMplsPolicyAdd) Marshal(b []byte) ([]byte, error) { 67 if b == nil { 68 b = make([]byte, m.Size()) 69 } 70 buf := codec.NewBuffer(b) 71 buf.EncodeUint32(m.Bsid) 72 buf.EncodeUint32(m.Weight) 73 buf.EncodeBool(m.IsSpray) 74 buf.EncodeUint8(uint8(len(m.Segments))) 75 for i := 0; i < len(m.Segments); i++ { 76 var x uint32 77 if i < len(m.Segments) { 78 x = uint32(m.Segments[i]) 79 } 80 buf.EncodeUint32(x) 81 } 82 return buf.Bytes(), nil 83 } 84 func (m *SrMplsPolicyAdd) Unmarshal(b []byte) error { 85 buf := codec.NewBuffer(b) 86 m.Bsid = buf.DecodeUint32() 87 m.Weight = buf.DecodeUint32() 88 m.IsSpray = buf.DecodeBool() 89 m.NSegments = buf.DecodeUint8() 90 m.Segments = make([]uint32, m.NSegments) 91 for i := 0; i < len(m.Segments); i++ { 92 m.Segments[i] = buf.DecodeUint32() 93 } 94 return nil 95 } 96 97 // SrMplsPolicyAddReply defines message 'sr_mpls_policy_add_reply'. 98 type SrMplsPolicyAddReply struct { 99 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 100 } 101 102 func (m *SrMplsPolicyAddReply) Reset() { *m = SrMplsPolicyAddReply{} } 103 func (*SrMplsPolicyAddReply) GetMessageName() string { return "sr_mpls_policy_add_reply" } 104 func (*SrMplsPolicyAddReply) GetCrcString() string { return "e8d4e804" } 105 func (*SrMplsPolicyAddReply) GetMessageType() api.MessageType { 106 return api.ReplyMessage 107 } 108 109 func (m *SrMplsPolicyAddReply) Size() (size int) { 110 if m == nil { 111 return 0 112 } 113 size += 4 // m.Retval 114 return size 115 } 116 func (m *SrMplsPolicyAddReply) Marshal(b []byte) ([]byte, error) { 117 if b == nil { 118 b = make([]byte, m.Size()) 119 } 120 buf := codec.NewBuffer(b) 121 buf.EncodeInt32(m.Retval) 122 return buf.Bytes(), nil 123 } 124 func (m *SrMplsPolicyAddReply) Unmarshal(b []byte) error { 125 buf := codec.NewBuffer(b) 126 m.Retval = buf.DecodeInt32() 127 return nil 128 } 129 130 // MPLS SR steering add/del 131 // - bsid is the bindingSID of the SR Policy 132 // - endpoint is the endpoint of the SR policy 133 // - color is the color of the sr policy 134 // 135 // SrMplsPolicyAssignEndpointColor defines message 'sr_mpls_policy_assign_endpoint_color'. 136 type SrMplsPolicyAssignEndpointColor struct { 137 Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` 138 Endpoint ip_types.Address `binapi:"address,name=endpoint" json:"endpoint,omitempty"` 139 Color uint32 `binapi:"u32,name=color" json:"color,omitempty"` 140 } 141 142 func (m *SrMplsPolicyAssignEndpointColor) Reset() { *m = SrMplsPolicyAssignEndpointColor{} } 143 func (*SrMplsPolicyAssignEndpointColor) GetMessageName() string { 144 return "sr_mpls_policy_assign_endpoint_color" 145 } 146 func (*SrMplsPolicyAssignEndpointColor) GetCrcString() string { return "0e7eb978" } 147 func (*SrMplsPolicyAssignEndpointColor) GetMessageType() api.MessageType { 148 return api.RequestMessage 149 } 150 151 func (m *SrMplsPolicyAssignEndpointColor) Size() (size int) { 152 if m == nil { 153 return 0 154 } 155 size += 4 // m.Bsid 156 size += 1 // m.Endpoint.Af 157 size += 1 * 16 // m.Endpoint.Un 158 size += 4 // m.Color 159 return size 160 } 161 func (m *SrMplsPolicyAssignEndpointColor) Marshal(b []byte) ([]byte, error) { 162 if b == nil { 163 b = make([]byte, m.Size()) 164 } 165 buf := codec.NewBuffer(b) 166 buf.EncodeUint32(m.Bsid) 167 buf.EncodeUint8(uint8(m.Endpoint.Af)) 168 buf.EncodeBytes(m.Endpoint.Un.XXX_UnionData[:], 16) 169 buf.EncodeUint32(m.Color) 170 return buf.Bytes(), nil 171 } 172 func (m *SrMplsPolicyAssignEndpointColor) Unmarshal(b []byte) error { 173 buf := codec.NewBuffer(b) 174 m.Bsid = buf.DecodeUint32() 175 m.Endpoint.Af = ip_types.AddressFamily(buf.DecodeUint8()) 176 copy(m.Endpoint.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 177 m.Color = buf.DecodeUint32() 178 return nil 179 } 180 181 // SrMplsPolicyAssignEndpointColorReply defines message 'sr_mpls_policy_assign_endpoint_color_reply'. 182 type SrMplsPolicyAssignEndpointColorReply struct { 183 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 184 } 185 186 func (m *SrMplsPolicyAssignEndpointColorReply) Reset() { *m = SrMplsPolicyAssignEndpointColorReply{} } 187 func (*SrMplsPolicyAssignEndpointColorReply) GetMessageName() string { 188 return "sr_mpls_policy_assign_endpoint_color_reply" 189 } 190 func (*SrMplsPolicyAssignEndpointColorReply) GetCrcString() string { return "e8d4e804" } 191 func (*SrMplsPolicyAssignEndpointColorReply) GetMessageType() api.MessageType { 192 return api.ReplyMessage 193 } 194 195 func (m *SrMplsPolicyAssignEndpointColorReply) Size() (size int) { 196 if m == nil { 197 return 0 198 } 199 size += 4 // m.Retval 200 return size 201 } 202 func (m *SrMplsPolicyAssignEndpointColorReply) Marshal(b []byte) ([]byte, error) { 203 if b == nil { 204 b = make([]byte, m.Size()) 205 } 206 buf := codec.NewBuffer(b) 207 buf.EncodeInt32(m.Retval) 208 return buf.Bytes(), nil 209 } 210 func (m *SrMplsPolicyAssignEndpointColorReply) Unmarshal(b []byte) error { 211 buf := codec.NewBuffer(b) 212 m.Retval = buf.DecodeInt32() 213 return nil 214 } 215 216 // MPLS SR policy deletion 217 // - bsid is the bindingSID of the SR Policy. MPLS label (20bit) 218 // 219 // SrMplsPolicyDel defines message 'sr_mpls_policy_del'. 220 type SrMplsPolicyDel struct { 221 Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` 222 } 223 224 func (m *SrMplsPolicyDel) Reset() { *m = SrMplsPolicyDel{} } 225 func (*SrMplsPolicyDel) GetMessageName() string { return "sr_mpls_policy_del" } 226 func (*SrMplsPolicyDel) GetCrcString() string { return "e29d34fa" } 227 func (*SrMplsPolicyDel) GetMessageType() api.MessageType { 228 return api.RequestMessage 229 } 230 231 func (m *SrMplsPolicyDel) Size() (size int) { 232 if m == nil { 233 return 0 234 } 235 size += 4 // m.Bsid 236 return size 237 } 238 func (m *SrMplsPolicyDel) Marshal(b []byte) ([]byte, error) { 239 if b == nil { 240 b = make([]byte, m.Size()) 241 } 242 buf := codec.NewBuffer(b) 243 buf.EncodeUint32(m.Bsid) 244 return buf.Bytes(), nil 245 } 246 func (m *SrMplsPolicyDel) Unmarshal(b []byte) error { 247 buf := codec.NewBuffer(b) 248 m.Bsid = buf.DecodeUint32() 249 return nil 250 } 251 252 // SrMplsPolicyDelReply defines message 'sr_mpls_policy_del_reply'. 253 type SrMplsPolicyDelReply struct { 254 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 255 } 256 257 func (m *SrMplsPolicyDelReply) Reset() { *m = SrMplsPolicyDelReply{} } 258 func (*SrMplsPolicyDelReply) GetMessageName() string { return "sr_mpls_policy_del_reply" } 259 func (*SrMplsPolicyDelReply) GetCrcString() string { return "e8d4e804" } 260 func (*SrMplsPolicyDelReply) GetMessageType() api.MessageType { 261 return api.ReplyMessage 262 } 263 264 func (m *SrMplsPolicyDelReply) Size() (size int) { 265 if m == nil { 266 return 0 267 } 268 size += 4 // m.Retval 269 return size 270 } 271 func (m *SrMplsPolicyDelReply) Marshal(b []byte) ([]byte, error) { 272 if b == nil { 273 b = make([]byte, m.Size()) 274 } 275 buf := codec.NewBuffer(b) 276 buf.EncodeInt32(m.Retval) 277 return buf.Bytes(), nil 278 } 279 func (m *SrMplsPolicyDelReply) Unmarshal(b []byte) error { 280 buf := codec.NewBuffer(b) 281 m.Retval = buf.DecodeInt32() 282 return nil 283 } 284 285 // MPLS SR policy modification 286 // - bsid is the bindingSID of the SR Policy. MPLS label (20bit) 287 // - sr_policy_index is the index of the SR policy 288 // - fib_table is the VRF where to install the FIB entry for the BSID 289 // - operation is the operation to perform (among the top ones) 290 // - segments is a vector of MPLS labels composing the segment list 291 // - sl_index is the index of the Segment List to modify/delete 292 // - weight is the weight of the sid list. optional. 293 // - is_encap Mode. Encapsulation or SRH insertion. 294 // 295 // SrMplsPolicyMod defines message 'sr_mpls_policy_mod'. 296 type SrMplsPolicyMod struct { 297 Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` 298 Operation sr_types.SrPolicyOp `binapi:"sr_policy_op,name=operation" json:"operation,omitempty"` 299 SlIndex uint32 `binapi:"u32,name=sl_index" json:"sl_index,omitempty"` 300 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` 301 NSegments uint8 `binapi:"u8,name=n_segments" json:"-"` 302 Segments []uint32 `binapi:"u32[n_segments],name=segments" json:"segments,omitempty"` 303 } 304 305 func (m *SrMplsPolicyMod) Reset() { *m = SrMplsPolicyMod{} } 306 func (*SrMplsPolicyMod) GetMessageName() string { return "sr_mpls_policy_mod" } 307 func (*SrMplsPolicyMod) GetCrcString() string { return "88482c17" } 308 func (*SrMplsPolicyMod) GetMessageType() api.MessageType { 309 return api.RequestMessage 310 } 311 312 func (m *SrMplsPolicyMod) Size() (size int) { 313 if m == nil { 314 return 0 315 } 316 size += 4 // m.Bsid 317 size += 1 // m.Operation 318 size += 4 // m.SlIndex 319 size += 4 // m.Weight 320 size += 1 // m.NSegments 321 size += 4 * len(m.Segments) // m.Segments 322 return size 323 } 324 func (m *SrMplsPolicyMod) Marshal(b []byte) ([]byte, error) { 325 if b == nil { 326 b = make([]byte, m.Size()) 327 } 328 buf := codec.NewBuffer(b) 329 buf.EncodeUint32(m.Bsid) 330 buf.EncodeUint8(uint8(m.Operation)) 331 buf.EncodeUint32(m.SlIndex) 332 buf.EncodeUint32(m.Weight) 333 buf.EncodeUint8(uint8(len(m.Segments))) 334 for i := 0; i < len(m.Segments); i++ { 335 var x uint32 336 if i < len(m.Segments) { 337 x = uint32(m.Segments[i]) 338 } 339 buf.EncodeUint32(x) 340 } 341 return buf.Bytes(), nil 342 } 343 func (m *SrMplsPolicyMod) Unmarshal(b []byte) error { 344 buf := codec.NewBuffer(b) 345 m.Bsid = buf.DecodeUint32() 346 m.Operation = sr_types.SrPolicyOp(buf.DecodeUint8()) 347 m.SlIndex = buf.DecodeUint32() 348 m.Weight = buf.DecodeUint32() 349 m.NSegments = buf.DecodeUint8() 350 m.Segments = make([]uint32, m.NSegments) 351 for i := 0; i < len(m.Segments); i++ { 352 m.Segments[i] = buf.DecodeUint32() 353 } 354 return nil 355 } 356 357 // SrMplsPolicyModReply defines message 'sr_mpls_policy_mod_reply'. 358 type SrMplsPolicyModReply struct { 359 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 360 } 361 362 func (m *SrMplsPolicyModReply) Reset() { *m = SrMplsPolicyModReply{} } 363 func (*SrMplsPolicyModReply) GetMessageName() string { return "sr_mpls_policy_mod_reply" } 364 func (*SrMplsPolicyModReply) GetCrcString() string { return "e8d4e804" } 365 func (*SrMplsPolicyModReply) GetMessageType() api.MessageType { 366 return api.ReplyMessage 367 } 368 369 func (m *SrMplsPolicyModReply) Size() (size int) { 370 if m == nil { 371 return 0 372 } 373 size += 4 // m.Retval 374 return size 375 } 376 func (m *SrMplsPolicyModReply) Marshal(b []byte) ([]byte, error) { 377 if b == nil { 378 b = make([]byte, m.Size()) 379 } 380 buf := codec.NewBuffer(b) 381 buf.EncodeInt32(m.Retval) 382 return buf.Bytes(), nil 383 } 384 func (m *SrMplsPolicyModReply) Unmarshal(b []byte) error { 385 buf := codec.NewBuffer(b) 386 m.Retval = buf.DecodeInt32() 387 return nil 388 } 389 390 // MPLS SR steering add/del 391 // - is_del 392 // - bsid - is the bindingSID of the SR Policy (~0 is no bsid) 393 // - table_id - is the VRF where to install the FIB entry for the BSID 394 // - prefix - is the IPv4/v6 address for L3 traffic type. 395 // - mask_width - is the mask for L3 traffic type 396 // - next_hop - describes the next_hop (in case no BSID) 397 // - color - describes the color 398 // - co_bits - are the CO_bits of the steering policy 399 // - vpn_label - is an additonal last VPN label. (~0 is no label) 400 // 401 // SrMplsSteeringAddDel defines message 'sr_mpls_steering_add_del'. 402 type SrMplsSteeringAddDel struct { 403 IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"` 404 Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` 405 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` 406 Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"` 407 MaskWidth uint32 `binapi:"u32,name=mask_width" json:"mask_width,omitempty"` 408 NextHop ip_types.Address `binapi:"address,name=next_hop" json:"next_hop,omitempty"` 409 Color uint32 `binapi:"u32,name=color" json:"color,omitempty"` 410 CoBits uint8 `binapi:"u8,name=co_bits" json:"co_bits,omitempty"` 411 VPNLabel uint32 `binapi:"u32,name=vpn_label" json:"vpn_label,omitempty"` 412 } 413 414 func (m *SrMplsSteeringAddDel) Reset() { *m = SrMplsSteeringAddDel{} } 415 func (*SrMplsSteeringAddDel) GetMessageName() string { return "sr_mpls_steering_add_del" } 416 func (*SrMplsSteeringAddDel) GetCrcString() string { return "64acff63" } 417 func (*SrMplsSteeringAddDel) GetMessageType() api.MessageType { 418 return api.RequestMessage 419 } 420 421 func (m *SrMplsSteeringAddDel) Size() (size int) { 422 if m == nil { 423 return 0 424 } 425 size += 1 // m.IsDel 426 size += 4 // m.Bsid 427 size += 4 // m.TableID 428 size += 1 // m.Prefix.Address.Af 429 size += 1 * 16 // m.Prefix.Address.Un 430 size += 1 // m.Prefix.Len 431 size += 4 // m.MaskWidth 432 size += 1 // m.NextHop.Af 433 size += 1 * 16 // m.NextHop.Un 434 size += 4 // m.Color 435 size += 1 // m.CoBits 436 size += 4 // m.VPNLabel 437 return size 438 } 439 func (m *SrMplsSteeringAddDel) Marshal(b []byte) ([]byte, error) { 440 if b == nil { 441 b = make([]byte, m.Size()) 442 } 443 buf := codec.NewBuffer(b) 444 buf.EncodeBool(m.IsDel) 445 buf.EncodeUint32(m.Bsid) 446 buf.EncodeUint32(m.TableID) 447 buf.EncodeUint8(uint8(m.Prefix.Address.Af)) 448 buf.EncodeBytes(m.Prefix.Address.Un.XXX_UnionData[:], 16) 449 buf.EncodeUint8(m.Prefix.Len) 450 buf.EncodeUint32(m.MaskWidth) 451 buf.EncodeUint8(uint8(m.NextHop.Af)) 452 buf.EncodeBytes(m.NextHop.Un.XXX_UnionData[:], 16) 453 buf.EncodeUint32(m.Color) 454 buf.EncodeUint8(m.CoBits) 455 buf.EncodeUint32(m.VPNLabel) 456 return buf.Bytes(), nil 457 } 458 func (m *SrMplsSteeringAddDel) Unmarshal(b []byte) error { 459 buf := codec.NewBuffer(b) 460 m.IsDel = buf.DecodeBool() 461 m.Bsid = buf.DecodeUint32() 462 m.TableID = buf.DecodeUint32() 463 m.Prefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8()) 464 copy(m.Prefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 465 m.Prefix.Len = buf.DecodeUint8() 466 m.MaskWidth = buf.DecodeUint32() 467 m.NextHop.Af = ip_types.AddressFamily(buf.DecodeUint8()) 468 copy(m.NextHop.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 469 m.Color = buf.DecodeUint32() 470 m.CoBits = buf.DecodeUint8() 471 m.VPNLabel = buf.DecodeUint32() 472 return nil 473 } 474 475 // SrMplsSteeringAddDelReply defines message 'sr_mpls_steering_add_del_reply'. 476 type SrMplsSteeringAddDelReply struct { 477 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 478 } 479 480 func (m *SrMplsSteeringAddDelReply) Reset() { *m = SrMplsSteeringAddDelReply{} } 481 func (*SrMplsSteeringAddDelReply) GetMessageName() string { return "sr_mpls_steering_add_del_reply" } 482 func (*SrMplsSteeringAddDelReply) GetCrcString() string { return "e8d4e804" } 483 func (*SrMplsSteeringAddDelReply) GetMessageType() api.MessageType { 484 return api.ReplyMessage 485 } 486 487 func (m *SrMplsSteeringAddDelReply) Size() (size int) { 488 if m == nil { 489 return 0 490 } 491 size += 4 // m.Retval 492 return size 493 } 494 func (m *SrMplsSteeringAddDelReply) Marshal(b []byte) ([]byte, error) { 495 if b == nil { 496 b = make([]byte, m.Size()) 497 } 498 buf := codec.NewBuffer(b) 499 buf.EncodeInt32(m.Retval) 500 return buf.Bytes(), nil 501 } 502 func (m *SrMplsSteeringAddDelReply) Unmarshal(b []byte) error { 503 buf := codec.NewBuffer(b) 504 m.Retval = buf.DecodeInt32() 505 return nil 506 } 507 508 func init() { file_sr_mpls_binapi_init() } 509 func file_sr_mpls_binapi_init() { 510 api.RegisterMessage((*SrMplsPolicyAdd)(nil), "sr_mpls_policy_add_a1a70c70") 511 api.RegisterMessage((*SrMplsPolicyAddReply)(nil), "sr_mpls_policy_add_reply_e8d4e804") 512 api.RegisterMessage((*SrMplsPolicyAssignEndpointColor)(nil), "sr_mpls_policy_assign_endpoint_color_0e7eb978") 513 api.RegisterMessage((*SrMplsPolicyAssignEndpointColorReply)(nil), "sr_mpls_policy_assign_endpoint_color_reply_e8d4e804") 514 api.RegisterMessage((*SrMplsPolicyDel)(nil), "sr_mpls_policy_del_e29d34fa") 515 api.RegisterMessage((*SrMplsPolicyDelReply)(nil), "sr_mpls_policy_del_reply_e8d4e804") 516 api.RegisterMessage((*SrMplsPolicyMod)(nil), "sr_mpls_policy_mod_88482c17") 517 api.RegisterMessage((*SrMplsPolicyModReply)(nil), "sr_mpls_policy_mod_reply_e8d4e804") 518 api.RegisterMessage((*SrMplsSteeringAddDel)(nil), "sr_mpls_steering_add_del_64acff63") 519 api.RegisterMessage((*SrMplsSteeringAddDelReply)(nil), "sr_mpls_steering_add_del_reply_e8d4e804") 520 } 521 522 // Messages returns list of all messages in this module. 523 func AllMessages() []api.Message { 524 return []api.Message{ 525 (*SrMplsPolicyAdd)(nil), 526 (*SrMplsPolicyAddReply)(nil), 527 (*SrMplsPolicyAssignEndpointColor)(nil), 528 (*SrMplsPolicyAssignEndpointColorReply)(nil), 529 (*SrMplsPolicyDel)(nil), 530 (*SrMplsPolicyDelReply)(nil), 531 (*SrMplsPolicyMod)(nil), 532 (*SrMplsPolicyModReply)(nil), 533 (*SrMplsSteeringAddDel)(nil), 534 (*SrMplsSteeringAddDelReply)(nil), 535 } 536 }