slice.proto 825 Bytes
Newer Older
Ricard Vilalta's avatar
Ricard Vilalta committed
//Example of topology
syntax = "proto3";
package slice;

import "context.proto";
Ricard Vilalta's avatar
Ricard Vilalta committed
import "service.proto";
Ricard Vilalta's avatar
Ricard Vilalta committed

service SliceService {
  rpc CreateUpdateSlice ( TransportSlice ) returns (SliceStatus) {}
  rpc DeleteSlice ( TransportSlice ) returns (context.Empty) {}
Ricard Vilalta's avatar
Ricard Vilalta committed
}


message SliceEndpoint {
  context.EndPoint port_id = 1;
}


message TransportSlice {
  SliceId slice_id = 1;
  repeated slice.SliceEndpoint endpoints = 2;
  repeated context.Constraint constraints = 3;
Ricard Vilalta's avatar
Ricard Vilalta committed
  repeated service.ServiceId services = 4;
  repeated SliceId subSlicesId = 5;
  SliceStatus status = 6;
Ricard Vilalta's avatar
Ricard Vilalta committed
}

message SliceId {
Ricard Vilalta's avatar
Ricard Vilalta committed
  context.ContextId contextId = 1;
  context.Uuid slice_id = 2;
Ricard Vilalta's avatar
Ricard Vilalta committed
}

message SliceStatus {
  slice.SliceId slice_id = 1;
  SliceStatusEnum status = 2;
}

enum SliceStatusEnum {
  PLANNED = 0;
  INIT = 1;
  ACTIVE = 2;
  DEINIT = 3;
}