[VOL-2833] Adding currentReplica and totalReplica fields to the Adapter message
Change-Id: Ie82f415d0cf6c4cff2789963b4585ec6bbd363ba
diff --git a/VERSION b/VERSION
index 6d0e8e5..6d7d659 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.3.0-dev0
+3.3.0-dev
diff --git a/go/voltha/adapter.pb.go b/go/voltha/adapter.pb.go
index 4cc76e0..3249b59 100644
--- a/go/voltha/adapter.pb.go
+++ b/go/voltha/adapter.pb.go
@@ -77,6 +77,9 @@
LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"`
// timestamp when the adapter last sent a message to the core
LastCommunication *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_communication,json=lastCommunication,proto3" json:"last_communication,omitempty"`
+ CurrentReplica int32 `protobuf:"varint,6,opt,name=currentReplica,proto3" json:"currentReplica,omitempty"`
+ TotalReplicas int32 `protobuf:"varint,7,opt,name=totalReplicas,proto3" json:"totalReplicas,omitempty"`
+ Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -156,6 +159,27 @@
return nil
}
+func (m *Adapter) GetCurrentReplica() int32 {
+ if m != nil {
+ return m.CurrentReplica
+ }
+ return 0
+}
+
+func (m *Adapter) GetTotalReplicas() int32 {
+ if m != nil {
+ return m.TotalReplicas
+ }
+ return 0
+}
+
+func (m *Adapter) GetEndpoint() string {
+ if m != nil {
+ return m.Endpoint
+ }
+ return ""
+}
+
type Adapters struct {
Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@@ -204,31 +228,34 @@
func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) }
var fileDescriptor_7e998ce153307274 = []byte{
- // 405 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xd1, 0x6a, 0xdb, 0x30,
- 0x14, 0x86, 0x71, 0xb2, 0xb8, 0xab, 0x4a, 0x59, 0xaa, 0x2d, 0xc3, 0xf3, 0x28, 0x35, 0x81, 0x81,
- 0x2f, 0x56, 0x99, 0xb5, 0x2f, 0xb0, 0xa4, 0xbd, 0xe9, 0xad, 0x28, 0xbb, 0xd8, 0x8d, 0x51, 0x24,
- 0xd5, 0x15, 0xd8, 0x3a, 0xc6, 0x52, 0x0c, 0x7d, 0xc8, 0xbd, 0xc1, 0x1e, 0x60, 0x4f, 0xb0, 0xeb,
- 0x11, 0x49, 0x26, 0x4e, 0x06, 0xbd, 0x32, 0xfa, 0xbf, 0xff, 0xfc, 0xe7, 0x1c, 0xc9, 0xe8, 0x73,
- 0x0f, 0xb5, 0x7d, 0x66, 0x65, 0xdb, 0x81, 0x05, 0x53, 0x30, 0xc1, 0x5a, 0x2b, 0x3b, 0xe2, 0x8e,
- 0x38, 0xf6, 0x30, 0xfd, 0x54, 0x01, 0x54, 0xb5, 0x2c, 0x9c, 0xba, 0xd9, 0x3e, 0x15, 0x4c, 0xbf,
- 0x78, 0x4b, 0x9a, 0x1e, 0xd6, 0x73, 0x68, 0x1a, 0xd0, 0x81, 0x25, 0x87, 0xac, 0x91, 0x96, 0x05,
- 0x72, 0x75, 0x1c, 0x68, 0x55, 0x23, 0x8d, 0x65, 0x4d, 0xeb, 0x0d, 0x4b, 0x8a, 0xce, 0x57, 0x7e,
- 0x94, 0x3b, 0xd0, 0x4f, 0xaa, 0xc2, 0x2b, 0x74, 0xc1, 0x84, 0x50, 0x56, 0x81, 0x66, 0x75, 0xc9,
- 0x9d, 0x98, 0x7c, 0xcf, 0xa2, 0xfc, 0xec, 0xe6, 0x03, 0xf1, 0x69, 0x64, 0x48, 0x23, 0x2b, 0xfd,
- 0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e8, 0xba, 0x27, 0xff, 0x74, 0x7f, 0xe8, 0x5f, 0x89, 0x9e, 0x6f, 0x5d, 0xb7, 0xfb, 0x26,
+ 0xfc, 0x09, 0xbd, 0xe4, 0x9b, 0xb6, 0x95, 0xda, 0x52, 0xd9, 0x54, 0x8a, 0x33, 0x12, 0xa7, 0x51,
+ 0x36, 0xa4, 0x47, 0x28, 0xfe, 0x80, 0x26, 0x16, 0x2c, 0xab, 0x42, 0x6d, 0xc8, 0xc8, 0xc9, 0x0e,
+ 0x41, 0x9c, 0xa0, 0xb1, 0xd4, 0xa2, 0x01, 0xa5, 0x2d, 0x19, 0x6f, 0x6f, 0x4d, 0xff, 0xd6, 0xf3,
+ 0x2f, 0x68, 0x1c, 0xee, 0x69, 0xf0, 0x47, 0x34, 0x54, 0x56, 0xd6, 0x86, 0x44, 0xe9, 0x20, 0x3b,
+ 0xbb, 0x7e, 0x75, 0x74, 0x70, 0xea, 0xd9, 0xe5, 0x03, 0x7a, 0x0d, 0x6d, 0x99, 0x43, 0x23, 0x35,
+ 0x87, 0x56, 0x04, 0xd5, 0x72, 0xf2, 0xcd, 0x7d, 0x83, 0xf8, 0x7b, 0x5e, 0x2a, 0xfb, 0xb4, 0x59,
+ 0xe7, 0x1c, 0xea, 0xa2, 0x97, 0x16, 0x5e, 0x7a, 0x15, 0x7e, 0xe2, 0xee, 0xa6, 0x28, 0x21, 0x60,
+ 0xeb, 0xd8, 0x81, 0x37, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xe4, 0x94, 0x8c, 0x45, 0x03,
+ 0x00, 0x00,
}
diff --git a/protos/voltha_protos/adapter.proto b/protos/voltha_protos/adapter.proto
index 5f0a60b..c0e83b2 100644
--- a/protos/voltha_protos/adapter.proto
+++ b/protos/voltha_protos/adapter.proto
@@ -38,6 +38,10 @@
// timestamp when the adapter last sent a message to the core
google.protobuf.Timestamp last_communication = 5;
+
+ int32 currentReplica = 6;
+ int32 totalReplicas = 7;
+ string endpoint = 8;
}
message Adapters {
diff --git a/voltha.pb b/voltha.pb
index 207255b..a38229b 100644
--- a/voltha.pb
+++ b/voltha.pb
Binary files differ