Skip to content
Snippets Groups Projects
Commit c2c41b80 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Proto:

- Corrected Link.link_type field
parent e9f0f054
No related branches found
No related tags found
1 merge request!315Resolve "(CTTC) Define fields to specify type of link"
...@@ -258,6 +258,14 @@ message LinkId { ...@@ -258,6 +258,14 @@ message LinkId {
Uuid link_uuid = 1; Uuid link_uuid = 1;
} }
enum LinkTypeEnum {
LINKTYPE_UNKNOWN = 0;
LINKTYPE_COPPER = 1;
LINKTYPE_FIBER = 2;
LINKTYPE_RADIO = 3;
LINKTYPE_VIRTUAL = 4;
}
message LinkAttributes { message LinkAttributes {
float total_capacity_gbps = 1; float total_capacity_gbps = 1;
float used_capacity_gbps = 2; float used_capacity_gbps = 2;
...@@ -266,9 +274,9 @@ message LinkAttributes { ...@@ -266,9 +274,9 @@ message LinkAttributes {
message Link { message Link {
LinkId link_id = 1; LinkId link_id = 1;
string name = 2; string name = 2;
repeated EndPointId link_endpoint_ids = 3; LinkTypeEnum link_type = 3;
LinkAttributes attributes = 4; repeated EndPointId link_endpoint_ids = 4;
LinkTypeEnum link_type = 5; LinkAttributes attributes = 5;
} }
message LinkIdList { message LinkIdList {
...@@ -284,14 +292,6 @@ message LinkEvent { ...@@ -284,14 +292,6 @@ message LinkEvent {
LinkId link_id = 2; LinkId link_id = 2;
} }
enum LinkTypeEnum {
LINKTYPE_UNKNOWN = 0;
LINKTYPE_COPPER = 1;
LINKTYPE_VIRTUAL_COPPER = 2;
LINKTYPE_OPTICAL = 3;
LINKTYPE_VIRTUAL_OPTICAL = 4;
}
// ----- Service ------------------------------------------------------------------------------------------------------- // ----- Service -------------------------------------------------------------------------------------------------------
message ServiceId { message ServiceId {
ContextId context_id = 1; ContextId context_id = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment