Repository navigation
Expand file tree
/
Copy pathconfig_service.proto
More file actions
88 lines (75 loc) · 2.52 KB
/
Copy pathconfig_service.proto
File metadata and controls
88 lines (75 loc) · 2.52 KB
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
/**********************************************************************************************************************
* Description: interface between router agents and SDK service manager
*
* Copyright (c) 2018 Nokia
**********************************************************************************************************************/
// NDK Version: v0.5.0
syntax = "proto3";
package srlinux.sdk;
import "ndk/sdk_common.proto";
option go_package = "github.com/nokia/srlinux-ndk-go/ndk";
/**
* Represents service for config operations.
*/
service SdkMgrConfigService {
// Acknowledge received configuration.
// When agent is registered with `wait_config_ack` flag set to true
// it needs to acknowledge received configuration.
rpc AcknowledgeConfig(AcknowledgeConfigRequest) returns (AcknowledgeConfigResponse) {}
}
/**
* Represents configuration subscription request.
*/
message ConfigSubscriptionRequest {
ConfigKey key = 1; // Optional, to filter on name
}
/**
* Represents configuration key.
*/
message ConfigKey {
string js_path = 1; // JSON path formatted string from YANG; for example, interface.my_field
repeated string keys = 2; // Value for keys
string js_path_with_keys = 3; // JSON path formatted string from YANG; for example, interface{.name==ethernet1/1}.my_field
}
/**
* Represents configuration data.
*/
message ConfigData {
oneof data_type {
string json = 1; // Entire configuration fragment as JSON string
bytes data = 2; // Entire configuration fragment as binary data
}
}
/**
* Represents configuration notification message to subscribe to configuration events
*/
message ConfigNotification {
SdkMgrOperation op = 1; // Operation indicating create, delete, or update
ConfigKey key = 2; // Configuration key
ConfigData data = 3; // Configuration data
}
/**
Represents config acknowledgment request;
each config notification requires its own acknowledgement.
*/
message AcknowledgeConfigRequest {
repeated AcknowledgeConfigRequestInfo infos = 1;
}
/**
* Represents config complete response.
*/
message AcknowledgeConfigResponse {
SdkMgrStatus status = 1; // Status of commit complete request operation
string error_str = 2; // Detailed error string
}
/**
* Represents configuration acknowledgment request information.
*/
message AcknowledgeConfigRequestInfo {
string js_path_with_keys = 1; // JSON path formatted string from YANG; for example, interface{.name==ethernet1/1}.my_field
oneof result {
string error = 2;
string warning = 3;
string output = 4;
}
}