Newer
Older
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
syntax = "proto3";
package src.main.proto;
//el modulo java abre la comunicacion
//cliente(java) manda la info al servidor(python)
//el modulo en python responde con ok
message updateRequest {
string addressFamilyID = 1;
string nextHop = 2;
string asPathSegment = 3;
repeated nodeInfo node = 4;
// repeated : se da la posibilidad de mandar 0 o varios
repeated linkInfo link = 5;
}
message nodeInfo{
string nodeName=1;
string igpID=2;
string bgplsID=3;
int32 asID=4;
string learntFrom = 5;
}
message linkInfo{
string remoteID=1;
string localID=2;
string remoteIPv4ID=3;
string localIPv4ID=4;
NodeDescriptors local=5;
NodeDescriptors remote=6;
float availableBw=7;
float residualBw = 8;
float utilized = 9;
float maxLinkDelay = 10;
float minLinkDelay = 11;
float delayVariation = 12;
float delay = 13;
int32 TEDefaultMetric = 14;
string adjacencySid = 15;
string learntFrom = 16;
}
message NodeDescriptors{
string asNumber=1;
string bgplsID=2;
}
message updateResponse {
string ack = 1;
}
// Defining a Service, a Service can have multiple RPC operations
service updateService {
// MODIFY HERE: Update the return to streaming return.
rpc update(updateRequest) returns (updateResponse);
}