-
Notifications
You must be signed in to change notification settings - Fork 9
/
cisco_grpc_dialin.proto
163 lines (122 loc) · 2.92 KB
/
cisco_grpc_dialin.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
syntax = "proto3";
// Package implements gRPC Model Driven Telemetry service
package IOSXRExtensibleManagabilityService;
service gRPCConfigOper {
// Configuration related commands
rpc GetConfig(ConfigGetArgs) returns(stream ConfigGetReply) {};
rpc MergeConfig(ConfigArgs) returns(ConfigReply) {};
rpc DeleteConfig(ConfigArgs) returns(ConfigReply) {};
rpc ReplaceConfig(ConfigArgs) returns(ConfigReply) {};
rpc CliConfig(CliConfigArgs) returns(CliConfigReply) {};
rpc CommitReplace(CommitReplaceArgs) returns (CommitReplaceReply) {};
// Do we need implicit or explicit commit
//
rpc CommitConfig(CommitArgs) returns(CommitReply) {};
rpc ConfigDiscardChanges(DiscardChangesArgs) returns(DiscardChangesReply) {};
// Get only returns oper data
//
rpc GetOper(GetOperArgs) returns(stream GetOperReply) {};
// Do we need "Get" also to give combined oper and config?
// Get Telemetry Data
rpc CreateSubs(CreateSubsArgs) returns(stream CreateSubsReply) {};
}
//
// Should we seperate Exec from Config/Oper?
//
service {
// Exec commands
rpc ShowCmdTextOutput(ShowCmdArgs) returns(stream ShowCmdTextReply) {};
rpc ShowCmdJSONOutput(ShowCmdArgs) returns(stream ShowCmdJSONReply) {};
}
message ConfigGetArgs {
int64 ReqId = 1;
string yangpathjson = 2;
}
message ConfigGetReply {
int64 ResReqId = 1;
string yangjson = 2;
string errors = 3;
}
message GetOperArgs {
int64 ReqId = 1;
string yangpathjson = 2;
}
message GetOperReply {
int64 ResReqId = 1;
string yangjson = 2;
string errors = 3;
}
message ConfigArgs {
int64 ReqId = 1;
string yangjson = 2;
}
message ConfigReply {
int64 ResReqId = 1;
string errors = 2;
}
message CliConfigArgs {
int64 ReqId = 1;
string cli = 2;
}
message CliConfigReply {
int64 ResReqId = 1;
string errors = 2;
}
message CommitReplaceArgs {
int64 ReqId = 1;
string cli = 2;
string yangjson = 3;
}
message CommitReplaceReply {
int64 ResReqId = 1;
string errors = 2;
}
message CommitMsg {
string label = 1;
string comment = 2;
}
enum CommitResult {
CHANGE = 0;
NO_CHANGE = 1;
FAIL = 2;
}
message CommitArgs {
CommitMsg msg = 1;
int64 ReqId = 2;
}
message CommitReply {
CommitResult result = 1;
int64 ResReqId = 2;
string errors = 3;
}
message DiscardChangesArgs {
int64 ReqId = 1;
}
message DiscardChangesReply {
int64 ResReqId = 1;
string errors = 2;
}
message ShowCmdArgs {
int64 ReqId = 1;
string cli = 2;
}
message ShowCmdTextReply {
int64 ResReqId =1;
string output = 2;
string errors = 3;
}
message ShowCmdJSONReply {
int64 ResReqId =1;
string jsonoutput = 2;
string errors = 3;
}
message CreateSubsArgs {
int64 ReqId = 1;
int64 encode = 2;
string subidstr = 3;
}
message CreateSubsReply {
int64 ResReqId = 1;
bytes data = 2;
string errors = 3;
}