From 5a6dd4fc66501837ec1830976600081aeaedb441 Mon Sep 17 00:00:00 2001 From: Fabian Helm <fabian.helm@stud.h-da.de> Date: Wed, 19 Jan 2022 14:50:28 +0100 Subject: [PATCH] Revert "changed url to v1" This reverts commit b509bb7bb893a23e04ce670666311056dd8969c5. --- proto/gosdn/pnd/v1alpha/pnd.proto | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/proto/gosdn/pnd/v1alpha/pnd.proto b/proto/gosdn/pnd/v1alpha/pnd.proto index 83409db..e439b7f 100644 --- a/proto/gosdn/pnd/v1alpha/pnd.proto +++ b/proto/gosdn/pnd/v1alpha/pnd.proto @@ -90,7 +90,7 @@ service PndService { get: "/v1/pnds/{pid}/onds/{did}/paths/{path}" }; } - rpc SetPathList(SetPathListRequest) returns (SetPathListResponse) { + rpc SetPath(SetPathRequest) returns (SetPathResponse) { option (google.api.http) = { post: "/v1/pnds/{pid}/onds/{did}/paths" body: "*" @@ -229,25 +229,43 @@ message Change { State state = 3; } +message SetOndRequest { + int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. + SetOnd ond = 2; + string pid = 3; +} + message SetOndListRequest { int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. repeated SetOnd ond = 2; string pid = 3; } +message SetSbiRequest { + int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. + SetSbi sbi = 2; + string pid = 3; +} + message SetSbiListRequest { int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. repeated SetSbi sbi = 2; string pid = 3; } +message SetChangeRequest { + int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. + SetChange change = 2; + string pid = 3; +} + message SetChangeListRequest { int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. repeated SetChange change = 2; string pid = 3; } -message SetPathListRequest { +message SetPathRequest { int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. repeated ChangeRequest change_request = 2; string did = 3; @@ -293,6 +311,11 @@ message SetResponse{ Status status = 2; } +message SetOndResponse{ + int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. + Status status = 2; +} + message SetOndListResponse{ int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. Status status = 2; @@ -316,10 +339,9 @@ message SetSbiListResponse{ repeated SetResponse responses = 3; } -message SetPathListResponse{ +message SetPathResponse{ int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. Status status = 2; - repeated SetResponse responses = 3; } message DeletePndRequest { -- GitLab