Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
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
Show more breadcrumbs
danet
goSDN
Merge requests
!1037
Resolve "Implement gNMI subscription management"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Implement gNMI subscription management"
382-implement-gnmi-subscription-management
into
master
Overview
0
Commits
9
Pipelines
7
Changes
1
Merged
Fabian Seidl
requested to merge
382-implement-gnmi-subscription-management
into
master
8 months ago
Overview
0
Commits
9
Pipelines
7
Changes
1
Expand
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
My code follows the code style of this project.
My change requires a change to the documentation.
I have updated the documentation accordingly.
I have read the
CONTRIBUTING
document.
I have added tests to cover my changes.
All new and existing tests passed.
Related to
#382
0
0
Merge request reports
Viewing commit
09fb708f
Show latest version
1 file
+
83
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
09fb708f
first draft submanagement proto files
· 09fb708f
Fabian Seidl
authored
8 months ago
api/proto/gosdn/subscriptionmanagement/subscriptionmanagement.proto
0 → 100644
+
83
−
0
Options
syntax
=
"proto3"
;
package
gosdn
.
subscriptionmanagement
;
import
"buf/validate/validate.proto"
;
import
"google/api/annotations.proto"
;
import
"google/protobuf/descriptor.proto"
;
option
go_package
=
"code.fbi.h-da.de/danet/gosdn/api/go/gosdn/submanagement"
;
service
SubscriptionManagementService
{
rpc
GetAll
(
GetAllRequest
)
returns
(
GetAllResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/submanagement/subscriptions"
};
}
rpc
Get
(
GetRequest
)
returns
(
GetResponse
)
{
option
(
google.api.http
)
=
{
get
:
"/submanagement/{subid}"
};
}
rpc
Delete
(
DeleteRequest
)
returns
(
DeleteResponse
)
{
option
(
google.api.http
)
=
{
delete
:
"/submanagement/{subid}"
};
}
rpc
Add
(
AddRequest
)
returns
(
AddResponse
)
{
option
(
google.api.http
)
=
{
post
:
"/submanagement/{mneid}"
body
:
"*"
};
}
}
message
Subscription
{
string
subid
=
1
;
string
pid
=
2
;
string
mneid
=
3
;
string
mne_name
=
4
;
repeated
string
paths
=
5
;
SubscribeOptions
subscribe_options
=
6
;
}
message
SubscribeOptions
{
string
gnmi_mode
=
1
;
string
gnmi_stream_mode
=
2
;
uint64
sample_interval
=
3
;
}
message
GetAllRequest
{
int64
timestamp
=
1
;
}
message
GetAllResponse
{
int64
timestamp
=
1
;
repeated
Subscription
subscriptions
=
2
;
}
message
GetRequest
{
int64
timestamp
=
1
;
string
subid
=
2
[(
buf.validate.field
)
.
required
=
true
];
}
message
GetResponse
{
int64
timestamp
=
1
;
Subscription
subscriptions
=
2
;
}
message
DeleteRequest
{
int64
timestamp
=
1
;
string
subid
=
2
[(
buf.validate.field
)
.
required
=
true
];
}
message
DeleteResponse
{
int64
timestamp
=
1
;
}
message
AddRequest
{
int64
timestamp
=
1
;
string
mneid
=
2
[(
buf.validate.field
)
.
required
=
true
];
Subscription
subscription
=
3
[(
buf.validate.field
)
.
required
=
true
];
}
message
AddResponse
{
int64
timestamp
=
1
;
}
Loading