Commit fcf3e848 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch 'feat/device-adapt-to-context-api' into 'develop'

First working version of Device with Emulated and OpenConfig drivers (except device monitoring)

See merge request teraflow-h2020/controller!38
parents 66d3943f 3143b9c2
Loading
Loading
Loading
Loading

data/.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
*.xml
+0 −4
Original line number Diff line number Diff line
@@ -81,10 +81,6 @@ spec:
  selector:
    app: contextservice
  ports:
  - name: grpc
    protocol: TCP
    port: 1010
    targetPort: 1010
  - name: http
    protocol: TCP
    port: 8080
+0 −4
Original line number Diff line number Diff line
@@ -19,10 +19,6 @@ spec:
        ports:
        - containerPort: 2020
        env:
        - name: DB_ENGINE
          value: "redis"
        - name: REDIS_DATABASE_ID
          value: "0"
        - name: LOG_LEVEL
          value: "DEBUG"
        readinessProbe:
+3 −0
Original line number Diff line number Diff line
syntax = "proto3";
package context;

//import "kpi_sample_types.proto";

service ContextService {
  rpc ListContextIds   (Empty     ) returns (       ContextIdList ) {}
  rpc ListContexts     (Empty     ) returns (       ContextList   ) {}
@@ -241,6 +243,7 @@ message EndPointId {
message EndPoint {
  EndPointId endpoint_id = 1;
  string endpoint_type = 2;
  //repeated kpi_sample_types.KpiSampleType kpi_sample_types = 3;
}


+13 −4
Original line number Diff line number Diff line
@@ -2,10 +2,19 @@ syntax = "proto3";
package device;

import "context.proto";
//import "monitoring.proto";

service DeviceService {
  rpc AddDevice       (context.Device    ) returns (context.DeviceId    ) {}
  rpc ConfigureDevice (context.Device    ) returns (context.DeviceId    ) {}
  rpc DeleteDevice    (context.DeviceId  ) returns (context.Empty       ) {}
  rpc GetInitialConfig(context.DeviceId  ) returns (context.DeviceConfig) {}
  //rpc MonitorDeviceKpi(MonitoringSettings) returns (context.Empty       ) {}
}

//message MonitoringSettings {
//  monitoring.KpiId kpi_id = 1;
//  monitoring.KpiDescriptor kpi_descriptor = 2;
//  float sampling_duration_s = 3;
//  float sampling_interval_s = 4;
//}
Loading