go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2202/vrrp/vrrp.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 3 // Package vrrp contains generated bindings for API file vrrp.api. 4 // 5 // Contents: 6 // - 2 enums 7 // - 5 structs 8 // - 17 messages 9 package vrrp 10 11 import ( 12 "strconv" 13 14 api "go.fd.io/govpp/api" 15 codec "go.fd.io/govpp/codec" 16 ethernet_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/ethernet_types" 17 interface_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/interface_types" 18 ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/ip_types" 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 = "vrrp" 29 APIVersion = "1.0.1" 30 VersionCrc = 0x6a3c71cd 31 ) 32 33 // VrrpVrFlags defines enum 'vrrp_vr_flags'. 34 type VrrpVrFlags uint32 35 36 const ( 37 VRRP_API_VR_PREEMPT VrrpVrFlags = 1 38 VRRP_API_VR_ACCEPT VrrpVrFlags = 2 39 VRRP_API_VR_UNICAST VrrpVrFlags = 4 40 VRRP_API_VR_IPV6 VrrpVrFlags = 8 41 ) 42 43 var ( 44 VrrpVrFlags_name = map[uint32]string{ 45 1: "VRRP_API_VR_PREEMPT", 46 2: "VRRP_API_VR_ACCEPT", 47 4: "VRRP_API_VR_UNICAST", 48 8: "VRRP_API_VR_IPV6", 49 } 50 VrrpVrFlags_value = map[string]uint32{ 51 "VRRP_API_VR_PREEMPT": 1, 52 "VRRP_API_VR_ACCEPT": 2, 53 "VRRP_API_VR_UNICAST": 4, 54 "VRRP_API_VR_IPV6": 8, 55 } 56 ) 57 58 func (x VrrpVrFlags) String() string { 59 s, ok := VrrpVrFlags_name[uint32(x)] 60 if ok { 61 return s 62 } 63 str := func(n uint32) string { 64 s, ok := VrrpVrFlags_name[uint32(n)] 65 if ok { 66 return s 67 } 68 return "VrrpVrFlags(" + strconv.Itoa(int(n)) + ")" 69 } 70 for i := uint32(0); i <= 32; i++ { 71 val := uint32(x) 72 if val&(1<<i) != 0 { 73 if s != "" { 74 s += "|" 75 } 76 s += str(1 << i) 77 } 78 } 79 if s == "" { 80 return str(uint32(x)) 81 } 82 return s 83 } 84 85 // VrrpVrState defines enum 'vrrp_vr_state'. 86 type VrrpVrState uint32 87 88 const ( 89 VRRP_API_VR_STATE_INIT VrrpVrState = 0 90 VRRP_API_VR_STATE_BACKUP VrrpVrState = 1 91 VRRP_API_VR_STATE_MASTER VrrpVrState = 2 92 VRRP_API_VR_STATE_INTF_DOWN VrrpVrState = 3 93 ) 94 95 var ( 96 VrrpVrState_name = map[uint32]string{ 97 0: "VRRP_API_VR_STATE_INIT", 98 1: "VRRP_API_VR_STATE_BACKUP", 99 2: "VRRP_API_VR_STATE_MASTER", 100 3: "VRRP_API_VR_STATE_INTF_DOWN", 101 } 102 VrrpVrState_value = map[string]uint32{ 103 "VRRP_API_VR_STATE_INIT": 0, 104 "VRRP_API_VR_STATE_BACKUP": 1, 105 "VRRP_API_VR_STATE_MASTER": 2, 106 "VRRP_API_VR_STATE_INTF_DOWN": 3, 107 } 108 ) 109 110 func (x VrrpVrState) String() string { 111 s, ok := VrrpVrState_name[uint32(x)] 112 if ok { 113 return s 114 } 115 return "VrrpVrState(" + strconv.Itoa(int(x)) + ")" 116 } 117 118 // VrrpVrConf defines type 'vrrp_vr_conf'. 119 type VrrpVrConf struct { 120 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 121 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 122 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"` 123 Interval uint16 `binapi:"u16,name=interval" json:"interval,omitempty"` 124 Flags VrrpVrFlags `binapi:"vrrp_vr_flags,name=flags" json:"flags,omitempty"` 125 } 126 127 // VrrpVrKey defines type 'vrrp_vr_key'. 128 type VrrpVrKey struct { 129 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 130 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 131 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 132 } 133 134 // VrrpVrRuntime defines type 'vrrp_vr_runtime'. 135 type VrrpVrRuntime struct { 136 State VrrpVrState `binapi:"vrrp_vr_state,name=state" json:"state,omitempty"` 137 MasterAdvInt uint16 `binapi:"u16,name=master_adv_int" json:"master_adv_int,omitempty"` 138 Skew uint16 `binapi:"u16,name=skew" json:"skew,omitempty"` 139 MasterDownInt uint16 `binapi:"u16,name=master_down_int" json:"master_down_int,omitempty"` 140 Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"` 141 Tracking VrrpVrTracking `binapi:"vrrp_vr_tracking,name=tracking" json:"tracking,omitempty"` 142 } 143 144 // VrrpVrTrackIf defines type 'vrrp_vr_track_if'. 145 type VrrpVrTrackIf struct { 146 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 147 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"` 148 } 149 150 // VrrpVrTracking defines type 'vrrp_vr_tracking'. 151 type VrrpVrTracking struct { 152 InterfacesDec uint32 `binapi:"u32,name=interfaces_dec" json:"interfaces_dec,omitempty"` 153 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"` 154 } 155 156 // VrrpVrAddDel defines message 'vrrp_vr_add_del'. 157 type VrrpVrAddDel struct { 158 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"` 159 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 160 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 161 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"` 162 Interval uint16 `binapi:"u16,name=interval" json:"interval,omitempty"` 163 Flags VrrpVrFlags `binapi:"vrrp_vr_flags,name=flags" json:"flags,omitempty"` 164 NAddrs uint8 `binapi:"u8,name=n_addrs" json:"-"` 165 Addrs []ip_types.Address `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"` 166 } 167 168 func (m *VrrpVrAddDel) Reset() { *m = VrrpVrAddDel{} } 169 func (*VrrpVrAddDel) GetMessageName() string { return "vrrp_vr_add_del" } 170 func (*VrrpVrAddDel) GetCrcString() string { return "c5cf15aa" } 171 func (*VrrpVrAddDel) GetMessageType() api.MessageType { 172 return api.RequestMessage 173 } 174 175 func (m *VrrpVrAddDel) Size() (size int) { 176 if m == nil { 177 return 0 178 } 179 size += 1 // m.IsAdd 180 size += 4 // m.SwIfIndex 181 size += 1 // m.VrID 182 size += 1 // m.Priority 183 size += 2 // m.Interval 184 size += 4 // m.Flags 185 size += 1 // m.NAddrs 186 for j1 := 0; j1 < len(m.Addrs); j1++ { 187 var s1 ip_types.Address 188 _ = s1 189 if j1 < len(m.Addrs) { 190 s1 = m.Addrs[j1] 191 } 192 size += 1 // s1.Af 193 size += 1 * 16 // s1.Un 194 } 195 return size 196 } 197 func (m *VrrpVrAddDel) Marshal(b []byte) ([]byte, error) { 198 if b == nil { 199 b = make([]byte, m.Size()) 200 } 201 buf := codec.NewBuffer(b) 202 buf.EncodeUint8(m.IsAdd) 203 buf.EncodeUint32(uint32(m.SwIfIndex)) 204 buf.EncodeUint8(m.VrID) 205 buf.EncodeUint8(m.Priority) 206 buf.EncodeUint16(m.Interval) 207 buf.EncodeUint32(uint32(m.Flags)) 208 buf.EncodeUint8(uint8(len(m.Addrs))) 209 for j0 := 0; j0 < len(m.Addrs); j0++ { 210 var v0 ip_types.Address // Addrs 211 if j0 < len(m.Addrs) { 212 v0 = m.Addrs[j0] 213 } 214 buf.EncodeUint8(uint8(v0.Af)) 215 buf.EncodeBytes(v0.Un.XXX_UnionData[:], 16) 216 } 217 return buf.Bytes(), nil 218 } 219 func (m *VrrpVrAddDel) Unmarshal(b []byte) error { 220 buf := codec.NewBuffer(b) 221 m.IsAdd = buf.DecodeUint8() 222 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 223 m.VrID = buf.DecodeUint8() 224 m.Priority = buf.DecodeUint8() 225 m.Interval = buf.DecodeUint16() 226 m.Flags = VrrpVrFlags(buf.DecodeUint32()) 227 m.NAddrs = buf.DecodeUint8() 228 m.Addrs = make([]ip_types.Address, m.NAddrs) 229 for j0 := 0; j0 < len(m.Addrs); j0++ { 230 m.Addrs[j0].Af = ip_types.AddressFamily(buf.DecodeUint8()) 231 copy(m.Addrs[j0].Un.XXX_UnionData[:], buf.DecodeBytes(16)) 232 } 233 return nil 234 } 235 236 // VrrpVrAddDelReply defines message 'vrrp_vr_add_del_reply'. 237 type VrrpVrAddDelReply struct { 238 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 239 } 240 241 func (m *VrrpVrAddDelReply) Reset() { *m = VrrpVrAddDelReply{} } 242 func (*VrrpVrAddDelReply) GetMessageName() string { return "vrrp_vr_add_del_reply" } 243 func (*VrrpVrAddDelReply) GetCrcString() string { return "e8d4e804" } 244 func (*VrrpVrAddDelReply) GetMessageType() api.MessageType { 245 return api.ReplyMessage 246 } 247 248 func (m *VrrpVrAddDelReply) Size() (size int) { 249 if m == nil { 250 return 0 251 } 252 size += 4 // m.Retval 253 return size 254 } 255 func (m *VrrpVrAddDelReply) Marshal(b []byte) ([]byte, error) { 256 if b == nil { 257 b = make([]byte, m.Size()) 258 } 259 buf := codec.NewBuffer(b) 260 buf.EncodeInt32(m.Retval) 261 return buf.Bytes(), nil 262 } 263 func (m *VrrpVrAddDelReply) Unmarshal(b []byte) error { 264 buf := codec.NewBuffer(b) 265 m.Retval = buf.DecodeInt32() 266 return nil 267 } 268 269 // VrrpVrDetails defines message 'vrrp_vr_details'. 270 type VrrpVrDetails struct { 271 Config VrrpVrConf `binapi:"vrrp_vr_conf,name=config" json:"config,omitempty"` 272 Runtime VrrpVrRuntime `binapi:"vrrp_vr_runtime,name=runtime" json:"runtime,omitempty"` 273 NAddrs uint8 `binapi:"u8,name=n_addrs" json:"-"` 274 Addrs []ip_types.Address `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"` 275 } 276 277 func (m *VrrpVrDetails) Reset() { *m = VrrpVrDetails{} } 278 func (*VrrpVrDetails) GetMessageName() string { return "vrrp_vr_details" } 279 func (*VrrpVrDetails) GetCrcString() string { return "46edcebd" } 280 func (*VrrpVrDetails) GetMessageType() api.MessageType { 281 return api.ReplyMessage 282 } 283 284 func (m *VrrpVrDetails) Size() (size int) { 285 if m == nil { 286 return 0 287 } 288 size += 4 // m.Config.SwIfIndex 289 size += 1 // m.Config.VrID 290 size += 1 // m.Config.Priority 291 size += 2 // m.Config.Interval 292 size += 4 // m.Config.Flags 293 size += 4 // m.Runtime.State 294 size += 2 // m.Runtime.MasterAdvInt 295 size += 2 // m.Runtime.Skew 296 size += 2 // m.Runtime.MasterDownInt 297 size += 1 * 6 // m.Runtime.Mac 298 size += 4 // m.Runtime.Tracking.InterfacesDec 299 size += 1 // m.Runtime.Tracking.Priority 300 size += 1 // m.NAddrs 301 for j1 := 0; j1 < len(m.Addrs); j1++ { 302 var s1 ip_types.Address 303 _ = s1 304 if j1 < len(m.Addrs) { 305 s1 = m.Addrs[j1] 306 } 307 size += 1 // s1.Af 308 size += 1 * 16 // s1.Un 309 } 310 return size 311 } 312 func (m *VrrpVrDetails) Marshal(b []byte) ([]byte, error) { 313 if b == nil { 314 b = make([]byte, m.Size()) 315 } 316 buf := codec.NewBuffer(b) 317 buf.EncodeUint32(uint32(m.Config.SwIfIndex)) 318 buf.EncodeUint8(m.Config.VrID) 319 buf.EncodeUint8(m.Config.Priority) 320 buf.EncodeUint16(m.Config.Interval) 321 buf.EncodeUint32(uint32(m.Config.Flags)) 322 buf.EncodeUint32(uint32(m.Runtime.State)) 323 buf.EncodeUint16(m.Runtime.MasterAdvInt) 324 buf.EncodeUint16(m.Runtime.Skew) 325 buf.EncodeUint16(m.Runtime.MasterDownInt) 326 buf.EncodeBytes(m.Runtime.Mac[:], 6) 327 buf.EncodeUint32(m.Runtime.Tracking.InterfacesDec) 328 buf.EncodeUint8(m.Runtime.Tracking.Priority) 329 buf.EncodeUint8(uint8(len(m.Addrs))) 330 for j0 := 0; j0 < len(m.Addrs); j0++ { 331 var v0 ip_types.Address // Addrs 332 if j0 < len(m.Addrs) { 333 v0 = m.Addrs[j0] 334 } 335 buf.EncodeUint8(uint8(v0.Af)) 336 buf.EncodeBytes(v0.Un.XXX_UnionData[:], 16) 337 } 338 return buf.Bytes(), nil 339 } 340 func (m *VrrpVrDetails) Unmarshal(b []byte) error { 341 buf := codec.NewBuffer(b) 342 m.Config.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 343 m.Config.VrID = buf.DecodeUint8() 344 m.Config.Priority = buf.DecodeUint8() 345 m.Config.Interval = buf.DecodeUint16() 346 m.Config.Flags = VrrpVrFlags(buf.DecodeUint32()) 347 m.Runtime.State = VrrpVrState(buf.DecodeUint32()) 348 m.Runtime.MasterAdvInt = buf.DecodeUint16() 349 m.Runtime.Skew = buf.DecodeUint16() 350 m.Runtime.MasterDownInt = buf.DecodeUint16() 351 copy(m.Runtime.Mac[:], buf.DecodeBytes(6)) 352 m.Runtime.Tracking.InterfacesDec = buf.DecodeUint32() 353 m.Runtime.Tracking.Priority = buf.DecodeUint8() 354 m.NAddrs = buf.DecodeUint8() 355 m.Addrs = make([]ip_types.Address, m.NAddrs) 356 for j0 := 0; j0 < len(m.Addrs); j0++ { 357 m.Addrs[j0].Af = ip_types.AddressFamily(buf.DecodeUint8()) 358 copy(m.Addrs[j0].Un.XXX_UnionData[:], buf.DecodeBytes(16)) 359 } 360 return nil 361 } 362 363 // VrrpVrDump defines message 'vrrp_vr_dump'. 364 type VrrpVrDump struct { 365 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 366 } 367 368 func (m *VrrpVrDump) Reset() { *m = VrrpVrDump{} } 369 func (*VrrpVrDump) GetMessageName() string { return "vrrp_vr_dump" } 370 func (*VrrpVrDump) GetCrcString() string { return "f9e6675e" } 371 func (*VrrpVrDump) GetMessageType() api.MessageType { 372 return api.RequestMessage 373 } 374 375 func (m *VrrpVrDump) Size() (size int) { 376 if m == nil { 377 return 0 378 } 379 size += 4 // m.SwIfIndex 380 return size 381 } 382 func (m *VrrpVrDump) Marshal(b []byte) ([]byte, error) { 383 if b == nil { 384 b = make([]byte, m.Size()) 385 } 386 buf := codec.NewBuffer(b) 387 buf.EncodeUint32(uint32(m.SwIfIndex)) 388 return buf.Bytes(), nil 389 } 390 func (m *VrrpVrDump) Unmarshal(b []byte) error { 391 buf := codec.NewBuffer(b) 392 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 393 return nil 394 } 395 396 // VrrpVrEvent defines message 'vrrp_vr_event'. 397 type VrrpVrEvent struct { 398 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"` 399 Vr VrrpVrKey `binapi:"vrrp_vr_key,name=vr" json:"vr,omitempty"` 400 OldState VrrpVrState `binapi:"vrrp_vr_state,name=old_state" json:"old_state,omitempty"` 401 NewState VrrpVrState `binapi:"vrrp_vr_state,name=new_state" json:"new_state,omitempty"` 402 } 403 404 func (m *VrrpVrEvent) Reset() { *m = VrrpVrEvent{} } 405 func (*VrrpVrEvent) GetMessageName() string { return "vrrp_vr_event" } 406 func (*VrrpVrEvent) GetCrcString() string { return "c1fea6a5" } 407 func (*VrrpVrEvent) GetMessageType() api.MessageType { 408 return api.EventMessage 409 } 410 411 func (m *VrrpVrEvent) Size() (size int) { 412 if m == nil { 413 return 0 414 } 415 size += 4 // m.PID 416 size += 4 // m.Vr.SwIfIndex 417 size += 1 // m.Vr.VrID 418 size += 1 // m.Vr.IsIPv6 419 size += 4 // m.OldState 420 size += 4 // m.NewState 421 return size 422 } 423 func (m *VrrpVrEvent) Marshal(b []byte) ([]byte, error) { 424 if b == nil { 425 b = make([]byte, m.Size()) 426 } 427 buf := codec.NewBuffer(b) 428 buf.EncodeUint32(m.PID) 429 buf.EncodeUint32(uint32(m.Vr.SwIfIndex)) 430 buf.EncodeUint8(m.Vr.VrID) 431 buf.EncodeUint8(m.Vr.IsIPv6) 432 buf.EncodeUint32(uint32(m.OldState)) 433 buf.EncodeUint32(uint32(m.NewState)) 434 return buf.Bytes(), nil 435 } 436 func (m *VrrpVrEvent) Unmarshal(b []byte) error { 437 buf := codec.NewBuffer(b) 438 m.PID = buf.DecodeUint32() 439 m.Vr.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 440 m.Vr.VrID = buf.DecodeUint8() 441 m.Vr.IsIPv6 = buf.DecodeUint8() 442 m.OldState = VrrpVrState(buf.DecodeUint32()) 443 m.NewState = VrrpVrState(buf.DecodeUint32()) 444 return nil 445 } 446 447 // VrrpVrPeerDetails defines message 'vrrp_vr_peer_details'. 448 type VrrpVrPeerDetails struct { 449 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 450 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 451 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 452 NPeerAddrs uint8 `binapi:"u8,name=n_peer_addrs" json:"-"` 453 PeerAddrs []ip_types.Address `binapi:"address[n_peer_addrs],name=peer_addrs" json:"peer_addrs,omitempty"` 454 } 455 456 func (m *VrrpVrPeerDetails) Reset() { *m = VrrpVrPeerDetails{} } 457 func (*VrrpVrPeerDetails) GetMessageName() string { return "vrrp_vr_peer_details" } 458 func (*VrrpVrPeerDetails) GetCrcString() string { return "3d99c108" } 459 func (*VrrpVrPeerDetails) GetMessageType() api.MessageType { 460 return api.RequestMessage 461 } 462 463 func (m *VrrpVrPeerDetails) Size() (size int) { 464 if m == nil { 465 return 0 466 } 467 size += 4 // m.SwIfIndex 468 size += 1 // m.VrID 469 size += 1 // m.IsIPv6 470 size += 1 // m.NPeerAddrs 471 for j1 := 0; j1 < len(m.PeerAddrs); j1++ { 472 var s1 ip_types.Address 473 _ = s1 474 if j1 < len(m.PeerAddrs) { 475 s1 = m.PeerAddrs[j1] 476 } 477 size += 1 // s1.Af 478 size += 1 * 16 // s1.Un 479 } 480 return size 481 } 482 func (m *VrrpVrPeerDetails) Marshal(b []byte) ([]byte, error) { 483 if b == nil { 484 b = make([]byte, m.Size()) 485 } 486 buf := codec.NewBuffer(b) 487 buf.EncodeUint32(uint32(m.SwIfIndex)) 488 buf.EncodeUint8(m.VrID) 489 buf.EncodeUint8(m.IsIPv6) 490 buf.EncodeUint8(uint8(len(m.PeerAddrs))) 491 for j0 := 0; j0 < len(m.PeerAddrs); j0++ { 492 var v0 ip_types.Address // PeerAddrs 493 if j0 < len(m.PeerAddrs) { 494 v0 = m.PeerAddrs[j0] 495 } 496 buf.EncodeUint8(uint8(v0.Af)) 497 buf.EncodeBytes(v0.Un.XXX_UnionData[:], 16) 498 } 499 return buf.Bytes(), nil 500 } 501 func (m *VrrpVrPeerDetails) Unmarshal(b []byte) error { 502 buf := codec.NewBuffer(b) 503 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 504 m.VrID = buf.DecodeUint8() 505 m.IsIPv6 = buf.DecodeUint8() 506 m.NPeerAddrs = buf.DecodeUint8() 507 m.PeerAddrs = make([]ip_types.Address, m.NPeerAddrs) 508 for j0 := 0; j0 < len(m.PeerAddrs); j0++ { 509 m.PeerAddrs[j0].Af = ip_types.AddressFamily(buf.DecodeUint8()) 510 copy(m.PeerAddrs[j0].Un.XXX_UnionData[:], buf.DecodeBytes(16)) 511 } 512 return nil 513 } 514 515 // VrrpVrPeerDump defines message 'vrrp_vr_peer_dump'. 516 type VrrpVrPeerDump struct { 517 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 518 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 519 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 520 } 521 522 func (m *VrrpVrPeerDump) Reset() { *m = VrrpVrPeerDump{} } 523 func (*VrrpVrPeerDump) GetMessageName() string { return "vrrp_vr_peer_dump" } 524 func (*VrrpVrPeerDump) GetCrcString() string { return "6fa3f7c4" } 525 func (*VrrpVrPeerDump) GetMessageType() api.MessageType { 526 return api.RequestMessage 527 } 528 529 func (m *VrrpVrPeerDump) Size() (size int) { 530 if m == nil { 531 return 0 532 } 533 size += 4 // m.SwIfIndex 534 size += 1 // m.IsIPv6 535 size += 1 // m.VrID 536 return size 537 } 538 func (m *VrrpVrPeerDump) Marshal(b []byte) ([]byte, error) { 539 if b == nil { 540 b = make([]byte, m.Size()) 541 } 542 buf := codec.NewBuffer(b) 543 buf.EncodeUint32(uint32(m.SwIfIndex)) 544 buf.EncodeUint8(m.IsIPv6) 545 buf.EncodeUint8(m.VrID) 546 return buf.Bytes(), nil 547 } 548 func (m *VrrpVrPeerDump) Unmarshal(b []byte) error { 549 buf := codec.NewBuffer(b) 550 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 551 m.IsIPv6 = buf.DecodeUint8() 552 m.VrID = buf.DecodeUint8() 553 return nil 554 } 555 556 // VrrpVrSetPeers defines message 'vrrp_vr_set_peers'. 557 type VrrpVrSetPeers struct { 558 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 559 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 560 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 561 NAddrs uint8 `binapi:"u8,name=n_addrs" json:"-"` 562 Addrs []ip_types.Address `binapi:"address[n_addrs],name=addrs" json:"addrs,omitempty"` 563 } 564 565 func (m *VrrpVrSetPeers) Reset() { *m = VrrpVrSetPeers{} } 566 func (*VrrpVrSetPeers) GetMessageName() string { return "vrrp_vr_set_peers" } 567 func (*VrrpVrSetPeers) GetCrcString() string { return "20bec71f" } 568 func (*VrrpVrSetPeers) GetMessageType() api.MessageType { 569 return api.RequestMessage 570 } 571 572 func (m *VrrpVrSetPeers) Size() (size int) { 573 if m == nil { 574 return 0 575 } 576 size += 4 // m.SwIfIndex 577 size += 1 // m.VrID 578 size += 1 // m.IsIPv6 579 size += 1 // m.NAddrs 580 for j1 := 0; j1 < len(m.Addrs); j1++ { 581 var s1 ip_types.Address 582 _ = s1 583 if j1 < len(m.Addrs) { 584 s1 = m.Addrs[j1] 585 } 586 size += 1 // s1.Af 587 size += 1 * 16 // s1.Un 588 } 589 return size 590 } 591 func (m *VrrpVrSetPeers) Marshal(b []byte) ([]byte, error) { 592 if b == nil { 593 b = make([]byte, m.Size()) 594 } 595 buf := codec.NewBuffer(b) 596 buf.EncodeUint32(uint32(m.SwIfIndex)) 597 buf.EncodeUint8(m.VrID) 598 buf.EncodeUint8(m.IsIPv6) 599 buf.EncodeUint8(uint8(len(m.Addrs))) 600 for j0 := 0; j0 < len(m.Addrs); j0++ { 601 var v0 ip_types.Address // Addrs 602 if j0 < len(m.Addrs) { 603 v0 = m.Addrs[j0] 604 } 605 buf.EncodeUint8(uint8(v0.Af)) 606 buf.EncodeBytes(v0.Un.XXX_UnionData[:], 16) 607 } 608 return buf.Bytes(), nil 609 } 610 func (m *VrrpVrSetPeers) Unmarshal(b []byte) error { 611 buf := codec.NewBuffer(b) 612 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 613 m.VrID = buf.DecodeUint8() 614 m.IsIPv6 = buf.DecodeUint8() 615 m.NAddrs = buf.DecodeUint8() 616 m.Addrs = make([]ip_types.Address, m.NAddrs) 617 for j0 := 0; j0 < len(m.Addrs); j0++ { 618 m.Addrs[j0].Af = ip_types.AddressFamily(buf.DecodeUint8()) 619 copy(m.Addrs[j0].Un.XXX_UnionData[:], buf.DecodeBytes(16)) 620 } 621 return nil 622 } 623 624 // VrrpVrSetPeersReply defines message 'vrrp_vr_set_peers_reply'. 625 type VrrpVrSetPeersReply struct { 626 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 627 } 628 629 func (m *VrrpVrSetPeersReply) Reset() { *m = VrrpVrSetPeersReply{} } 630 func (*VrrpVrSetPeersReply) GetMessageName() string { return "vrrp_vr_set_peers_reply" } 631 func (*VrrpVrSetPeersReply) GetCrcString() string { return "e8d4e804" } 632 func (*VrrpVrSetPeersReply) GetMessageType() api.MessageType { 633 return api.ReplyMessage 634 } 635 636 func (m *VrrpVrSetPeersReply) Size() (size int) { 637 if m == nil { 638 return 0 639 } 640 size += 4 // m.Retval 641 return size 642 } 643 func (m *VrrpVrSetPeersReply) Marshal(b []byte) ([]byte, error) { 644 if b == nil { 645 b = make([]byte, m.Size()) 646 } 647 buf := codec.NewBuffer(b) 648 buf.EncodeInt32(m.Retval) 649 return buf.Bytes(), nil 650 } 651 func (m *VrrpVrSetPeersReply) Unmarshal(b []byte) error { 652 buf := codec.NewBuffer(b) 653 m.Retval = buf.DecodeInt32() 654 return nil 655 } 656 657 // VrrpVrStartStop defines message 'vrrp_vr_start_stop'. 658 type VrrpVrStartStop struct { 659 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 660 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 661 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 662 IsStart uint8 `binapi:"u8,name=is_start" json:"is_start,omitempty"` 663 } 664 665 func (m *VrrpVrStartStop) Reset() { *m = VrrpVrStartStop{} } 666 func (*VrrpVrStartStop) GetMessageName() string { return "vrrp_vr_start_stop" } 667 func (*VrrpVrStartStop) GetCrcString() string { return "0662a3b7" } 668 func (*VrrpVrStartStop) GetMessageType() api.MessageType { 669 return api.RequestMessage 670 } 671 672 func (m *VrrpVrStartStop) Size() (size int) { 673 if m == nil { 674 return 0 675 } 676 size += 4 // m.SwIfIndex 677 size += 1 // m.VrID 678 size += 1 // m.IsIPv6 679 size += 1 // m.IsStart 680 return size 681 } 682 func (m *VrrpVrStartStop) Marshal(b []byte) ([]byte, error) { 683 if b == nil { 684 b = make([]byte, m.Size()) 685 } 686 buf := codec.NewBuffer(b) 687 buf.EncodeUint32(uint32(m.SwIfIndex)) 688 buf.EncodeUint8(m.VrID) 689 buf.EncodeUint8(m.IsIPv6) 690 buf.EncodeUint8(m.IsStart) 691 return buf.Bytes(), nil 692 } 693 func (m *VrrpVrStartStop) Unmarshal(b []byte) error { 694 buf := codec.NewBuffer(b) 695 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 696 m.VrID = buf.DecodeUint8() 697 m.IsIPv6 = buf.DecodeUint8() 698 m.IsStart = buf.DecodeUint8() 699 return nil 700 } 701 702 // VrrpVrStartStopReply defines message 'vrrp_vr_start_stop_reply'. 703 type VrrpVrStartStopReply struct { 704 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 705 } 706 707 func (m *VrrpVrStartStopReply) Reset() { *m = VrrpVrStartStopReply{} } 708 func (*VrrpVrStartStopReply) GetMessageName() string { return "vrrp_vr_start_stop_reply" } 709 func (*VrrpVrStartStopReply) GetCrcString() string { return "e8d4e804" } 710 func (*VrrpVrStartStopReply) GetMessageType() api.MessageType { 711 return api.ReplyMessage 712 } 713 714 func (m *VrrpVrStartStopReply) Size() (size int) { 715 if m == nil { 716 return 0 717 } 718 size += 4 // m.Retval 719 return size 720 } 721 func (m *VrrpVrStartStopReply) Marshal(b []byte) ([]byte, error) { 722 if b == nil { 723 b = make([]byte, m.Size()) 724 } 725 buf := codec.NewBuffer(b) 726 buf.EncodeInt32(m.Retval) 727 return buf.Bytes(), nil 728 } 729 func (m *VrrpVrStartStopReply) Unmarshal(b []byte) error { 730 buf := codec.NewBuffer(b) 731 m.Retval = buf.DecodeInt32() 732 return nil 733 } 734 735 // VrrpVrTrackIfAddDel defines message 'vrrp_vr_track_if_add_del'. 736 type VrrpVrTrackIfAddDel struct { 737 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 738 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 739 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 740 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"` 741 NIfs uint8 `binapi:"u8,name=n_ifs" json:"-"` 742 Ifs []VrrpVrTrackIf `binapi:"vrrp_vr_track_if[n_ifs],name=ifs" json:"ifs,omitempty"` 743 } 744 745 func (m *VrrpVrTrackIfAddDel) Reset() { *m = VrrpVrTrackIfAddDel{} } 746 func (*VrrpVrTrackIfAddDel) GetMessageName() string { return "vrrp_vr_track_if_add_del" } 747 func (*VrrpVrTrackIfAddDel) GetCrcString() string { return "d67df299" } 748 func (*VrrpVrTrackIfAddDel) GetMessageType() api.MessageType { 749 return api.RequestMessage 750 } 751 752 func (m *VrrpVrTrackIfAddDel) Size() (size int) { 753 if m == nil { 754 return 0 755 } 756 size += 4 // m.SwIfIndex 757 size += 1 // m.IsIPv6 758 size += 1 // m.VrID 759 size += 1 // m.IsAdd 760 size += 1 // m.NIfs 761 for j1 := 0; j1 < len(m.Ifs); j1++ { 762 var s1 VrrpVrTrackIf 763 _ = s1 764 if j1 < len(m.Ifs) { 765 s1 = m.Ifs[j1] 766 } 767 size += 4 // s1.SwIfIndex 768 size += 1 // s1.Priority 769 } 770 return size 771 } 772 func (m *VrrpVrTrackIfAddDel) Marshal(b []byte) ([]byte, error) { 773 if b == nil { 774 b = make([]byte, m.Size()) 775 } 776 buf := codec.NewBuffer(b) 777 buf.EncodeUint32(uint32(m.SwIfIndex)) 778 buf.EncodeUint8(m.IsIPv6) 779 buf.EncodeUint8(m.VrID) 780 buf.EncodeUint8(m.IsAdd) 781 buf.EncodeUint8(uint8(len(m.Ifs))) 782 for j0 := 0; j0 < len(m.Ifs); j0++ { 783 var v0 VrrpVrTrackIf // Ifs 784 if j0 < len(m.Ifs) { 785 v0 = m.Ifs[j0] 786 } 787 buf.EncodeUint32(uint32(v0.SwIfIndex)) 788 buf.EncodeUint8(v0.Priority) 789 } 790 return buf.Bytes(), nil 791 } 792 func (m *VrrpVrTrackIfAddDel) Unmarshal(b []byte) error { 793 buf := codec.NewBuffer(b) 794 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 795 m.IsIPv6 = buf.DecodeUint8() 796 m.VrID = buf.DecodeUint8() 797 m.IsAdd = buf.DecodeUint8() 798 m.NIfs = buf.DecodeUint8() 799 m.Ifs = make([]VrrpVrTrackIf, m.NIfs) 800 for j0 := 0; j0 < len(m.Ifs); j0++ { 801 m.Ifs[j0].SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 802 m.Ifs[j0].Priority = buf.DecodeUint8() 803 } 804 return nil 805 } 806 807 // VrrpVrTrackIfAddDelReply defines message 'vrrp_vr_track_if_add_del_reply'. 808 type VrrpVrTrackIfAddDelReply struct { 809 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 810 } 811 812 func (m *VrrpVrTrackIfAddDelReply) Reset() { *m = VrrpVrTrackIfAddDelReply{} } 813 func (*VrrpVrTrackIfAddDelReply) GetMessageName() string { return "vrrp_vr_track_if_add_del_reply" } 814 func (*VrrpVrTrackIfAddDelReply) GetCrcString() string { return "e8d4e804" } 815 func (*VrrpVrTrackIfAddDelReply) GetMessageType() api.MessageType { 816 return api.ReplyMessage 817 } 818 819 func (m *VrrpVrTrackIfAddDelReply) Size() (size int) { 820 if m == nil { 821 return 0 822 } 823 size += 4 // m.Retval 824 return size 825 } 826 func (m *VrrpVrTrackIfAddDelReply) Marshal(b []byte) ([]byte, error) { 827 if b == nil { 828 b = make([]byte, m.Size()) 829 } 830 buf := codec.NewBuffer(b) 831 buf.EncodeInt32(m.Retval) 832 return buf.Bytes(), nil 833 } 834 func (m *VrrpVrTrackIfAddDelReply) Unmarshal(b []byte) error { 835 buf := codec.NewBuffer(b) 836 m.Retval = buf.DecodeInt32() 837 return nil 838 } 839 840 // VrrpVrTrackIfDetails defines message 'vrrp_vr_track_if_details'. 841 type VrrpVrTrackIfDetails struct { 842 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 843 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 844 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 845 NIfs uint8 `binapi:"u8,name=n_ifs" json:"-"` 846 Ifs []VrrpVrTrackIf `binapi:"vrrp_vr_track_if[n_ifs],name=ifs" json:"ifs,omitempty"` 847 } 848 849 func (m *VrrpVrTrackIfDetails) Reset() { *m = VrrpVrTrackIfDetails{} } 850 func (*VrrpVrTrackIfDetails) GetMessageName() string { return "vrrp_vr_track_if_details" } 851 func (*VrrpVrTrackIfDetails) GetCrcString() string { return "73c36f81" } 852 func (*VrrpVrTrackIfDetails) GetMessageType() api.MessageType { 853 return api.RequestMessage 854 } 855 856 func (m *VrrpVrTrackIfDetails) Size() (size int) { 857 if m == nil { 858 return 0 859 } 860 size += 4 // m.SwIfIndex 861 size += 1 // m.VrID 862 size += 1 // m.IsIPv6 863 size += 1 // m.NIfs 864 for j1 := 0; j1 < len(m.Ifs); j1++ { 865 var s1 VrrpVrTrackIf 866 _ = s1 867 if j1 < len(m.Ifs) { 868 s1 = m.Ifs[j1] 869 } 870 size += 4 // s1.SwIfIndex 871 size += 1 // s1.Priority 872 } 873 return size 874 } 875 func (m *VrrpVrTrackIfDetails) Marshal(b []byte) ([]byte, error) { 876 if b == nil { 877 b = make([]byte, m.Size()) 878 } 879 buf := codec.NewBuffer(b) 880 buf.EncodeUint32(uint32(m.SwIfIndex)) 881 buf.EncodeUint8(m.VrID) 882 buf.EncodeUint8(m.IsIPv6) 883 buf.EncodeUint8(uint8(len(m.Ifs))) 884 for j0 := 0; j0 < len(m.Ifs); j0++ { 885 var v0 VrrpVrTrackIf // Ifs 886 if j0 < len(m.Ifs) { 887 v0 = m.Ifs[j0] 888 } 889 buf.EncodeUint32(uint32(v0.SwIfIndex)) 890 buf.EncodeUint8(v0.Priority) 891 } 892 return buf.Bytes(), nil 893 } 894 func (m *VrrpVrTrackIfDetails) Unmarshal(b []byte) error { 895 buf := codec.NewBuffer(b) 896 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 897 m.VrID = buf.DecodeUint8() 898 m.IsIPv6 = buf.DecodeUint8() 899 m.NIfs = buf.DecodeUint8() 900 m.Ifs = make([]VrrpVrTrackIf, m.NIfs) 901 for j0 := 0; j0 < len(m.Ifs); j0++ { 902 m.Ifs[j0].SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 903 m.Ifs[j0].Priority = buf.DecodeUint8() 904 } 905 return nil 906 } 907 908 // VrrpVrTrackIfDump defines message 'vrrp_vr_track_if_dump'. 909 type VrrpVrTrackIfDump struct { 910 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 911 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"` 912 VrID uint8 `binapi:"u8,name=vr_id" json:"vr_id,omitempty"` 913 DumpAll uint8 `binapi:"u8,name=dump_all" json:"dump_all,omitempty"` 914 } 915 916 func (m *VrrpVrTrackIfDump) Reset() { *m = VrrpVrTrackIfDump{} } 917 func (*VrrpVrTrackIfDump) GetMessageName() string { return "vrrp_vr_track_if_dump" } 918 func (*VrrpVrTrackIfDump) GetCrcString() string { return "a34dfc6d" } 919 func (*VrrpVrTrackIfDump) GetMessageType() api.MessageType { 920 return api.RequestMessage 921 } 922 923 func (m *VrrpVrTrackIfDump) Size() (size int) { 924 if m == nil { 925 return 0 926 } 927 size += 4 // m.SwIfIndex 928 size += 1 // m.IsIPv6 929 size += 1 // m.VrID 930 size += 1 // m.DumpAll 931 return size 932 } 933 func (m *VrrpVrTrackIfDump) Marshal(b []byte) ([]byte, error) { 934 if b == nil { 935 b = make([]byte, m.Size()) 936 } 937 buf := codec.NewBuffer(b) 938 buf.EncodeUint32(uint32(m.SwIfIndex)) 939 buf.EncodeUint8(m.IsIPv6) 940 buf.EncodeUint8(m.VrID) 941 buf.EncodeUint8(m.DumpAll) 942 return buf.Bytes(), nil 943 } 944 func (m *VrrpVrTrackIfDump) Unmarshal(b []byte) error { 945 buf := codec.NewBuffer(b) 946 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 947 m.IsIPv6 = buf.DecodeUint8() 948 m.VrID = buf.DecodeUint8() 949 m.DumpAll = buf.DecodeUint8() 950 return nil 951 } 952 953 // WantVrrpVrEvents defines message 'want_vrrp_vr_events'. 954 type WantVrrpVrEvents struct { 955 EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"` 956 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"` 957 } 958 959 func (m *WantVrrpVrEvents) Reset() { *m = WantVrrpVrEvents{} } 960 func (*WantVrrpVrEvents) GetMessageName() string { return "want_vrrp_vr_events" } 961 func (*WantVrrpVrEvents) GetCrcString() string { return "c5e2af94" } 962 func (*WantVrrpVrEvents) GetMessageType() api.MessageType { 963 return api.RequestMessage 964 } 965 966 func (m *WantVrrpVrEvents) Size() (size int) { 967 if m == nil { 968 return 0 969 } 970 size += 1 // m.EnableDisable 971 size += 4 // m.PID 972 return size 973 } 974 func (m *WantVrrpVrEvents) Marshal(b []byte) ([]byte, error) { 975 if b == nil { 976 b = make([]byte, m.Size()) 977 } 978 buf := codec.NewBuffer(b) 979 buf.EncodeBool(m.EnableDisable) 980 buf.EncodeUint32(m.PID) 981 return buf.Bytes(), nil 982 } 983 func (m *WantVrrpVrEvents) Unmarshal(b []byte) error { 984 buf := codec.NewBuffer(b) 985 m.EnableDisable = buf.DecodeBool() 986 m.PID = buf.DecodeUint32() 987 return nil 988 } 989 990 // WantVrrpVrEventsReply defines message 'want_vrrp_vr_events_reply'. 991 type WantVrrpVrEventsReply struct { 992 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 993 } 994 995 func (m *WantVrrpVrEventsReply) Reset() { *m = WantVrrpVrEventsReply{} } 996 func (*WantVrrpVrEventsReply) GetMessageName() string { return "want_vrrp_vr_events_reply" } 997 func (*WantVrrpVrEventsReply) GetCrcString() string { return "e8d4e804" } 998 func (*WantVrrpVrEventsReply) GetMessageType() api.MessageType { 999 return api.ReplyMessage 1000 } 1001 1002 func (m *WantVrrpVrEventsReply) Size() (size int) { 1003 if m == nil { 1004 return 0 1005 } 1006 size += 4 // m.Retval 1007 return size 1008 } 1009 func (m *WantVrrpVrEventsReply) Marshal(b []byte) ([]byte, error) { 1010 if b == nil { 1011 b = make([]byte, m.Size()) 1012 } 1013 buf := codec.NewBuffer(b) 1014 buf.EncodeInt32(m.Retval) 1015 return buf.Bytes(), nil 1016 } 1017 func (m *WantVrrpVrEventsReply) Unmarshal(b []byte) error { 1018 buf := codec.NewBuffer(b) 1019 m.Retval = buf.DecodeInt32() 1020 return nil 1021 } 1022 1023 func init() { file_vrrp_binapi_init() } 1024 func file_vrrp_binapi_init() { 1025 api.RegisterMessage((*VrrpVrAddDel)(nil), "vrrp_vr_add_del_c5cf15aa") 1026 api.RegisterMessage((*VrrpVrAddDelReply)(nil), "vrrp_vr_add_del_reply_e8d4e804") 1027 api.RegisterMessage((*VrrpVrDetails)(nil), "vrrp_vr_details_46edcebd") 1028 api.RegisterMessage((*VrrpVrDump)(nil), "vrrp_vr_dump_f9e6675e") 1029 api.RegisterMessage((*VrrpVrEvent)(nil), "vrrp_vr_event_c1fea6a5") 1030 api.RegisterMessage((*VrrpVrPeerDetails)(nil), "vrrp_vr_peer_details_3d99c108") 1031 api.RegisterMessage((*VrrpVrPeerDump)(nil), "vrrp_vr_peer_dump_6fa3f7c4") 1032 api.RegisterMessage((*VrrpVrSetPeers)(nil), "vrrp_vr_set_peers_20bec71f") 1033 api.RegisterMessage((*VrrpVrSetPeersReply)(nil), "vrrp_vr_set_peers_reply_e8d4e804") 1034 api.RegisterMessage((*VrrpVrStartStop)(nil), "vrrp_vr_start_stop_0662a3b7") 1035 api.RegisterMessage((*VrrpVrStartStopReply)(nil), "vrrp_vr_start_stop_reply_e8d4e804") 1036 api.RegisterMessage((*VrrpVrTrackIfAddDel)(nil), "vrrp_vr_track_if_add_del_d67df299") 1037 api.RegisterMessage((*VrrpVrTrackIfAddDelReply)(nil), "vrrp_vr_track_if_add_del_reply_e8d4e804") 1038 api.RegisterMessage((*VrrpVrTrackIfDetails)(nil), "vrrp_vr_track_if_details_73c36f81") 1039 api.RegisterMessage((*VrrpVrTrackIfDump)(nil), "vrrp_vr_track_if_dump_a34dfc6d") 1040 api.RegisterMessage((*WantVrrpVrEvents)(nil), "want_vrrp_vr_events_c5e2af94") 1041 api.RegisterMessage((*WantVrrpVrEventsReply)(nil), "want_vrrp_vr_events_reply_e8d4e804") 1042 } 1043 1044 // Messages returns list of all messages in this module. 1045 func AllMessages() []api.Message { 1046 return []api.Message{ 1047 (*VrrpVrAddDel)(nil), 1048 (*VrrpVrAddDelReply)(nil), 1049 (*VrrpVrDetails)(nil), 1050 (*VrrpVrDump)(nil), 1051 (*VrrpVrEvent)(nil), 1052 (*VrrpVrPeerDetails)(nil), 1053 (*VrrpVrPeerDump)(nil), 1054 (*VrrpVrSetPeers)(nil), 1055 (*VrrpVrSetPeersReply)(nil), 1056 (*VrrpVrStartStop)(nil), 1057 (*VrrpVrStartStopReply)(nil), 1058 (*VrrpVrTrackIfAddDel)(nil), 1059 (*VrrpVrTrackIfAddDelReply)(nil), 1060 (*VrrpVrTrackIfDetails)(nil), 1061 (*VrrpVrTrackIfDump)(nil), 1062 (*WantVrrpVrEvents)(nil), 1063 (*WantVrrpVrEventsReply)(nil), 1064 } 1065 }