Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goSDN Northbound
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
danet
goSDN Northbound
Commits
71412e16
Commit
71412e16
authored
3 years ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
defined first routes for grpc-gateway
parent
e7d5fcef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proto/gosdn/core/core.proto
+11
-2
11 additions, 2 deletions
proto/gosdn/core/core.proto
proto/gosdn/pnd/pnd.proto
+31
-6
31 additions, 6 deletions
proto/gosdn/pnd/pnd.proto
with
42 additions
and
8 deletions
proto/gosdn/core/core.proto
+
11
−
2
View file @
71412e16
...
...
@@ -2,13 +2,22 @@ syntax = "proto3";
package
gosdn
.
core
;
import
"google/api/annotations.proto"
;
import
"gosdn/pnd/pnd.proto"
;
option
go_package
=
"code.fbi.h-da.de/danet/api/go/gosdn/core"
;
service
core
{
rpc
GetPnd
(
GetPndRequest
)
returns
(
GetPndResponse
);
rpc
GetPndList
(
GetPndListRequest
)
returns
(
GetPndResponse
);
rpc
GetPnd
(
GetPndRequest
)
returns
(
GetPndResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}"
};
}
rpc
GetPndList
(
GetPndListRequest
)
returns
(
GetPndResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd"
};
}
rpc
SetPnd
(
SetPndRequest
)
returns
(
SetPndResponse
);
}
...
...
This diff is collapsed.
Click to expand it.
proto/gosdn/pnd/pnd.proto
+
31
−
6
View file @
71412e16
...
...
@@ -2,6 +2,7 @@ syntax = "proto3";
package
gosdn
.
pnd
;
import
"google/api/annotations.proto"
;
import
"google/protobuf/descriptor.proto"
;
import
"github.com/openconfig/gnmi/proto/gnmi/gnmi.proto"
;
import
"gosdn/transport/transport.proto"
;
...
...
@@ -12,15 +13,39 @@ option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/pnd";
service
pnd
{
// Allows to request Orchestrated Networking Devices which are managed by a
// specific Principal Network Domain.
rpc
GetOnd
(
GetOndRequest
)
returns
(
GetOndResponse
);
rpc
GetOndList
(
GetOndListRequest
)
returns
(
GetOndResponse
);
rpc
GetOnd
(
GetOndRequest
)
returns
(
GetOndResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}/ond/{did}"
};
}
rpc
GetOndList
(
GetOndListRequest
)
returns
(
GetOndResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}/ond"
};
}
// Allows to request the Southbound Interfaces a specific Principal Network
// Domain supports.
rpc
GetSbi
(
GetSbiRequest
)
returns
(
GetSbiResponse
);
rpc
GetSbiList
(
GetSbiListRequest
)
returns
(
GetSbiResponse
);
rpc
GetSbi
(
GetSbiRequest
)
returns
(
GetSbiResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}/sbi/{sid}"
};
}
rpc
GetSbiList
(
GetSbiListRequest
)
returns
(
GetSbiResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}/sbi"
};
}
// Allows to request Changes registered for a specific Principal Network Domain.
rpc
GetChange
(
GetChangeRequest
)
returns
(
GetChangeResponse
);
rpc
GetChangeList
(
GetSbiListRequest
)
returns
(
GetChangeResponse
);
rpc
GetChange
(
GetChangeRequest
)
returns
(
GetChangeResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}/change/{cuid}"
};
}
rpc
GetChangeList
(
GetSbiListRequest
)
returns
(
GetChangeResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/v1/pnd/{pid}/change"
};
}
// Allows to request a specific Path of a Orchestrated Networking Device,
// managed by a specific Principal Network Domain.
rpc
GetPath
(
GetPathRequest
)
returns
(
GetPathResponse
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment