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
Commits
e85cd871
Commit
e85cd871
authored
9 months ago
by
Fabian Seidl
Browse files
Options
Downloads
Patches
Plain Diff
first draft submanagement proto files
parent
f54eca81
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1037
Resolve "Implement gNMI subscription management"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/proto/gosdn/subscriptionmanagement/subscriptionmanagement.proto
+83
-0
83 additions, 0 deletions
...gosdn/subscriptionmanagement/subscriptionmanagement.proto
with
83 additions
and
0 deletions
api/proto/gosdn/subscriptionmanagement/subscriptionmanagement.proto
0 → 100644
+
83
−
0
View file @
e85cd871
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
;
}
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