From c57d49d31c369f7a6f5a58dcf697b6cd3e47a7b8 Mon Sep 17 00:00:00 2001
From: Manuel Kieweg <mail@manuelkieweg.de>
Date: Fri, 7 May 2021 17:29:56 +0200
Subject: [PATCH] gnmi notification repeated value

---
 proto/gosdn/pnd/pnd.pb.go | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/proto/gosdn/pnd/pnd.pb.go b/proto/gosdn/pnd/pnd.pb.go
index ff39d37..8b32b21 100644
--- a/proto/gosdn/pnd/pnd.pb.go
+++ b/proto/gosdn/pnd/pnd.pb.go
@@ -632,9 +632,9 @@ type OrchestratedNetworkingDevice struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Id     string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
-	Name   string             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
-	Device *gnmi.Notification `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"`
+	Id     string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+	Name   string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+	Device []*gnmi.Notification `protobuf:"bytes,3,rep,name=device,proto3" json:"device,omitempty"`
 }
 
 func (x *OrchestratedNetworkingDevice) Reset() {
@@ -683,7 +683,7 @@ func (x *OrchestratedNetworkingDevice) GetName() string {
 	return ""
 }
 
-func (x *OrchestratedNetworkingDevice) GetDevice() *gnmi.Notification {
+func (x *OrchestratedNetworkingDevice) GetDevice() []*gnmi.Notification {
 	if x != nil {
 		return x.Device
 	}
@@ -742,7 +742,7 @@ type OrchestratedNetworkingDevices struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Sbis map[string]*OrchestratedNetworkingDevice `protobuf:"bytes,1,rep,name=sbis,proto3" json:"sbis,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+	Onds map[string]*OrchestratedNetworkingDevice `protobuf:"bytes,1,rep,name=onds,proto3" json:"onds,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
 }
 
 func (x *OrchestratedNetworkingDevices) Reset() {
@@ -777,9 +777,9 @@ func (*OrchestratedNetworkingDevices) Descriptor() ([]byte, []int) {
 	return file_proto_gosdn_pnd_pnd_proto_rawDescGZIP(), []int{6}
 }
 
-func (x *OrchestratedNetworkingDevices) GetSbis() map[string]*OrchestratedNetworkingDevice {
+func (x *OrchestratedNetworkingDevices) GetOnds() map[string]*OrchestratedNetworkingDevice {
 	if x != nil {
-		return x.Sbis
+		return x.Onds
 	}
 	return nil
 }
@@ -1193,7 +1193,7 @@ var file_proto_gosdn_pnd_pnd_proto_rawDesc = []byte{
 	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02,
 	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
 	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
-	0x12, 0x2a, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
+	0x12, 0x2a, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
 	0x32, 0x12, 0x2e, 0x67, 0x6e, 0x6d, 0x69, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
 	0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0xae, 0x01, 0x0a,
 	0x14, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72,
@@ -1209,11 +1209,11 @@ var file_proto_gosdn_pnd_pnd_proto_rawDesc = []byte{
 	0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc9, 0x01,
 	0x0a, 0x1d, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65,
 	0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12,
-	0x46, 0x0a, 0x04, 0x73, 0x62, 0x69, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e,
+	0x46, 0x0a, 0x04, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e,
 	0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73,
 	0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
-	0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x62, 0x69, 0x73, 0x45, 0x6e, 0x74, 0x72,
-	0x79, 0x52, 0x04, 0x73, 0x62, 0x69, 0x73, 0x1a, 0x60, 0x0a, 0x09, 0x53, 0x62, 0x69, 0x73, 0x45,
+	0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4f, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72,
+	0x79, 0x52, 0x04, 0x6f, 0x6e, 0x64, 0x73, 0x1a, 0x60, 0x0a, 0x09, 0x4f, 0x6e, 0x64, 0x73, 0x45,
 	0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
 	0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
 	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e,
@@ -1318,7 +1318,7 @@ var file_proto_gosdn_pnd_pnd_proto_goTypes = []interface{}{
 	(*SetResponse)(nil),                   // 15: gosdn.pnd.SetResponse
 	(*ChangeRequest)(nil),                 // 16: gosdn.pnd.ChangeRequest
 	nil,                                   // 17: gosdn.pnd.SouthboundInterfaces.SbisEntry
-	nil,                                   // 18: gosdn.pnd.OrchestratedNetworkingDevices.SbisEntry
+	nil,                                   // 18: gosdn.pnd.OrchestratedNetworkingDevices.OndsEntry
 	nil,                                   // 19: gosdn.pnd.Changes.SbisEntry
 	(*gnmi.Notification)(nil),             // 20: gnmi.Notification
 }
@@ -1335,7 +1335,7 @@ var file_proto_gosdn_pnd_pnd_proto_depIdxs = []int32{
 	13, // 9: gosdn.pnd.PrincipalNetworkDomain.changes:type_name -> gosdn.pnd.Changes
 	20, // 10: gosdn.pnd.OrchestratedNetworkingDevice.device:type_name -> gnmi.Notification
 	17, // 11: gosdn.pnd.SouthboundInterfaces.sbis:type_name -> gosdn.pnd.SouthboundInterfaces.SbisEntry
-	18, // 12: gosdn.pnd.OrchestratedNetworkingDevices.sbis:type_name -> gosdn.pnd.OrchestratedNetworkingDevices.SbisEntry
+	18, // 12: gosdn.pnd.OrchestratedNetworkingDevices.onds:type_name -> gosdn.pnd.OrchestratedNetworkingDevices.OndsEntry
 	1,  // 13: gosdn.pnd.Change.state:type_name -> gosdn.pnd.Change.State
 	19, // 14: gosdn.pnd.Changes.sbis:type_name -> gosdn.pnd.Changes.SbisEntry
 	16, // 15: gosdn.pnd.SetRequest.change:type_name -> gosdn.pnd.ChangeRequest
@@ -1344,7 +1344,7 @@ var file_proto_gosdn_pnd_pnd_proto_depIdxs = []int32{
 	4,  // 18: gosdn.pnd.ChangeRequest.apiOp:type_name -> gosdn.pnd.ChangeRequest.ApiOperation
 	3,  // 19: gosdn.pnd.ChangeRequest.op:type_name -> gosdn.pnd.ChangeRequest.Operation
 	8,  // 20: gosdn.pnd.SouthboundInterfaces.SbisEntry.value:type_name -> gosdn.pnd.SouthboundInterface
-	9,  // 21: gosdn.pnd.OrchestratedNetworkingDevices.SbisEntry.value:type_name -> gosdn.pnd.OrchestratedNetworkingDevice
+	9,  // 21: gosdn.pnd.OrchestratedNetworkingDevices.OndsEntry.value:type_name -> gosdn.pnd.OrchestratedNetworkingDevice
 	12, // 22: gosdn.pnd.Changes.SbisEntry.value:type_name -> gosdn.pnd.Change
 	5,  // 23: gosdn.pnd.pnd.Get:input_type -> gosdn.pnd.GetRequest
 	14, // 24: gosdn.pnd.pnd.Set:input_type -> gosdn.pnd.SetRequest
-- 
GitLab