-
Notifications
You must be signed in to change notification settings - Fork 0
/
intent.proto
51 lines (43 loc) · 1.05 KB
/
intent.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
syntax = "proto3";
package api;
enum IntentType {
INTENT_TYPE_UNSPECIFIED = 0;
INTENT_TYPE_HIGH_BANDWIDTH = 1;
INTENT_TYPE_LOW_BANDWIDTH = 2;
INTENT_TYPE_LOW_LATENCY = 3;
INTENT_TYPE_LOW_PACKET_LOSS = 4;
INTENT_TYPE_LOW_JITTER = 5;
INTENT_TYPE_FLEX_ALGO = 6;
INTENT_TYPE_SFC = 7;
INTENT_TYPE_LOW_UTILIZATION = 8;
}
enum ValueType {
VALUE_TYPE_UNSPECIFIED = 0;
VALUE_TYPE_MIN_VALUE = 1;
VALUE_TYPE_MAX_VALUE = 2;
VALUE_TYPE_SFC = 3;
VALUE_TYPE_FLEX_ALGO_NR = 4;
}
message Value {
ValueType type = 1;
optional int32 number_value = 2;
optional string string_value = 3;
}
message Intent {
IntentType type = 1;
repeated Value values = 2;
}
message PathRequest {
string ipv6_source_address = 1;
string ipv6_destination_address = 2;
repeated Intent intents = 3;
}
message PathResult {
string ipv6_source_address = 1;
string ipv6_destination_address = 2;
repeated Intent intents = 3;
repeated string ipv6_sid_addresses = 4;
}
service IntentController {
rpc GetIntentPath(stream PathRequest) returns (stream PathResult);
}