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
4552cd92
Commit
4552cd92
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
use 'repeated' instead of caontainer messages
parent
c57d49d3
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
go.mod
+3
-0
3 additions, 0 deletions
go.mod
proto/gosdn/pnd/pnd.pb.go
+668
-557
668 additions, 557 deletions
proto/gosdn/pnd/pnd.pb.go
proto/gosdn/pnd/pnd.proto
+46
-37
46 additions, 37 deletions
proto/gosdn/pnd/pnd.proto
with
717 additions
and
594 deletions
go.mod
0 → 100644
+
3
−
0
View file @
4552cd92
module
code.fbi.h-da.de/cocsn/api
go 1.16
This diff is collapsed.
Click to expand it.
proto/gosdn/pnd/pnd.pb.go
+
668
−
557
View file @
4552cd92
This diff is collapsed.
Click to expand it.
proto/gosdn/pnd/pnd.proto
+
46
−
37
View file @
4552cd92
...
...
@@ -14,38 +14,47 @@ service pnd {
message
GetRequest
{
int64
timestamp
=
1
;
// Timestamp in nanoseconds since Epoch.
enum
get_type
{
PND
=
0
;
OND
=
1
;
ONDS
=
2
;
SBI
=
3
;
SBIS
=
4
;
Changes
=
5
;
oneof
request
{
getPnd
pnd
=
2
;
getOnd
ond
=
3
;
getSbi
sbi
=
4
;
getChange
change
=
5
;
}
get_type
type
=
2
;
string
id
=
3
;
string
pid
=
6
;
}
message
getPnd
{}
message
getOnd
{
bool
all
=
1
;
repeated
string
did
=
2
;
}
message
getSbi
{
bool
all
=
1
;
repeated
string
sid
=
2
;
}
message
getChange
{
bool
all
=
1
;
repeated
string
cuid
=
2
;
}
message
GetResponse
{
int64
timestamp
=
1
;
// Timestamp in nanoseconds since Epoch.
oneof
payload
{
PrincipalNetworkDomain
pnd
=
2
;
OrchestratedNetworkingDevice
ond
=
3
;
OrchestratedNetworkingDevices
onds
=
4
;
SouthboundInterface
sbi
=
5
;
SouthboundInterfaces
sbis
=
6
;
Changes
changes
=
7
;
}
repeated
OrchestratedNetworkingDevice
ond
=
3
;
repeated
SouthboundInterface
sbi
=
5
;
repeated
Change
change
=
7
;
}
message
PrincipalNetworkDomain
{
string
id
=
1
;
string
name
=
2
;
string
description
=
3
;
OrchestratedNetworkingDevice
s
ond
s
=
4
;
SouthboundInterface
s
sbi
s
=
5
;
Change
s
change
s
=
6
;
repeated
OrchestratedNetworkingDevice
ond
=
4
;
repeated
SouthboundInterface
sbi
=
5
;
repeated
Change
change
=
6
;
}
message
SouthboundInterface
{
...
...
@@ -59,14 +68,6 @@ message OrchestratedNetworkingDevice {
repeated
gnmi.Notification
device
=
3
;
}
message
SouthboundInterfaces
{
map
<
string
,
SouthboundInterface
>
sbis
=
1
;
}
message
OrchestratedNetworkingDevices
{
map
<
string
,
OrchestratedNetworkingDevice
>
onds
=
1
;
}
message
Change
{
string
id
=
1
;
int64
age
=
2
;
...
...
@@ -78,17 +79,25 @@ message Change {
State
state
=
3
;
}
message
Changes
{
map
<
string
,
Change
>
sbis
=
1
;
}
message
SetRequest
{
int64
timestamp
=
1
;
// Timestamp in nanoseconds since Epoch.
oneof
request
{
ChangeRequest
change
=
2
;
OrchestratedNetworkingDevice
ond
=
3
;
SouthboundInterface
sbi
=
4
;
}
repeated
setOnd
ond
=
2
;
repeated
setSbi
sbi
=
3
;
repeated
setChange
change
=
4
;
repeated
ChangeRequest
changeRequest
=
5
;
string
id
=
6
;
}
message
setOnd
{
}
message
setSbi
{
}
message
setChange
{
}
message
SetResponse
{
...
...
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