diff --git a/go/gosdn/core/core.pb.go b/go/gosdn/core/core.pb.go index 01dee433e54d97e038af932155b01c6a23fc3eef..0df5db9352fe3437585aabcdcb80c400fd657f7f 100644 --- a/go/gosdn/core/core.pb.go +++ b/go/gosdn/core/core.pb.go @@ -233,8 +233,8 @@ type GetPndResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. - Pnd *pnd.PrincipalNetworkDomain `protobuf:"bytes,2,opt,name=pnd,proto3" json:"pnd,omitempty"` + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. + Pnd []*pnd.PrincipalNetworkDomain `protobuf:"bytes,2,rep,name=pnd,proto3" json:"pnd,omitempty"` } func (x *GetPndResponse) Reset() { @@ -276,7 +276,7 @@ func (x *GetPndResponse) GetTimestamp() int64 { return 0 } -func (x *GetPndResponse) GetPnd() *pnd.PrincipalNetworkDomain { +func (x *GetPndResponse) GetPnd() []*pnd.PrincipalNetworkDomain { if x != nil { return x.Pnd } @@ -591,7 +591,7 @@ var file_gosdn_core_core_proto_rawDesc = []byte{ 0x70, 0x6e, 0x64, 0x22, 0x63, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x12, 0x33, 0x0a, 0x03, 0x70, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x61, 0x6d, 0x70, 0x12, 0x33, 0x0a, 0x03, 0x70, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x03, 0x70, 0x6e, 0x64, 0x22, 0x67, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, diff --git a/openapiv2/gosdn_northbound.swagger.json b/openapiv2/gosdn_northbound.swagger.json index e090bc2d5ce537854a4b1fea64efabe4796b002b..a769928087055130cd117d7f51c59d8490ee805c 100644 --- a/openapiv2/gosdn_northbound.swagger.json +++ b/openapiv2/gosdn_northbound.swagger.json @@ -18,19 +18,19 @@ "name": "PndService" }, { - "name": "Collector" + "name": "gNMI" }, { - "name": "gNMI" + "name": "AgentManager" }, { "name": "CoreService" }, { - "name": "AgentManager" + "name": "CsbiService" }, { - "name": "CsbiService" + "name": "Collector" } ], "consumes": [ @@ -822,7 +822,10 @@ "format": "int64" }, "pnd": { - "$ref": "#/definitions/pndPrincipalNetworkDomain" + "type": "array", + "items": { + "$ref": "#/definitions/pndPrincipalNetworkDomain" + } } } }, diff --git a/proto/gosdn/core/core.proto b/proto/gosdn/core/core.proto index affbac00af644aa6a75dc5fcc9ff72ef386ea0f6..b5ad8c013a4170cd660d6498ec2d8547e4b0d249 100644 --- a/proto/gosdn/core/core.proto +++ b/proto/gosdn/core/core.proto @@ -51,7 +51,7 @@ message GetPndListResponse { message GetPndResponse { int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. - .gosdn.pnd.PrincipalNetworkDomain pnd = 2; + repeated .gosdn.pnd.PrincipalNetworkDomain pnd = 2; } message CreatePndListRequest {