Loading proto/context.proto +9 Viewed Changes for proto/context.proto: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package context; import "acl.proto"; import "kpi_sample_types.proto"; import "pon_access.proto"; service ContextService { rpc ListContextIds (Empty ) returns ( ContextIdList ) {} Loading Loading @@ -226,6 +227,7 @@ enum DeviceDriverEnum { DEVICEDRIVER_IETF_L3VPN = 13; DEVICEDRIVER_IETF_SLICE = 14; DEVICEDRIVER_NCE = 15; DEVICEDRIVER_PON = 16; } enum DeviceOperationalStatusEnum { Loading Loading @@ -321,6 +323,7 @@ enum ServiceTypeEnum { SERVICETYPE_E2E = 5; SERVICETYPE_OPTICAL_CONNECTIVITY = 6; SERVICETYPE_QKD = 7; SERVICETYPE_PON_ACCESS = 8; } enum ServiceStatusEnum { Loading Loading @@ -533,11 +536,17 @@ message ConfigRule_ACL { acl.AclRuleSet rule_set = 2; } message ConfigRule_PON { EndPointId endpoint_id = 1; pon_access.PonRuleSet rule_set = 2; } message ConfigRule { ConfigActionEnum action = 1; oneof config_rule { ConfigRule_Custom custom = 2; ConfigRule_ACL acl = 3; ConfigRule_PON pon_access = 5; } } Loading proto/pon_access.proto +28 Viewed Changes for proto/pon_access.proto: 28 added lines, 0 removed lines. Original line number Diff line number Diff line // Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package pon_access; message PonRuleSet { string m = 1; // ncclient session string ont_id = 2; // ID of the ONT to operate on string cvlan = 3; // (if required) ID of the Customer VLAN string ethernet_port = 4; // the Ethernet port of the OLT (e.g., 1/1/x1) or similar string svlan = 5; // Service VLAN to configure string profile = 6; // "be" (Best Effort) or "ef" (Expedited Forwarding) string bw = 7; // optional, bandwidth to set (required if profile == "ef") string mask = 8; // Mask (from original message) string vlan = 9; // VLAN (from original message) } No newline at end of file src/common/tools/object_factory/Service.py +10 Viewed Changes for src/common/tools/object_factory/Service.py: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -82,6 +82,16 @@ def json_service_tapi_planned( status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, config_rules=config_rules) def json_service_iplink_planned( service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME ): return json_service( service_uuid, ServiceTypeEnum.SERVICETYPE_IPLINK, context_id=json_context_id(context_uuid), status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, config_rules=config_rules) def json_service_p4_planned( service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME Loading src/common/type_checkers/Assertions.py +4 Viewed Changes for src/common/type_checkers/Assertions.py: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -50,6 +50,8 @@ def validate_device_driver_enum(message): 'DEVICEDRIVER_IETF_ACTN', 'DEVICEDRIVER_OC', 'DEVICEDRIVER_QKD', 'DEVICEDRIVER_PON', ] def validate_device_operational_status_enum(message): Loading Loading @@ -107,6 +109,7 @@ def validate_service_type_enum(message): 'SERVICETYPE_E2E', 'SERVICETYPE_OPTICAL_CONNECTIVITY', 'SERVICETYPE_QKD', 'SERVICETYPE_PON_ACCESS', ] def validate_service_state_enum(message): Loading Loading @@ -144,6 +147,7 @@ def validate_uuid(message, allow_empty=False): CONFIG_RULE_TYPES = { 'custom', 'acl', 'pon_access' } def validate_config_rule(message): assert isinstance(message, dict) Loading src/common/DeviceTypes.py +1 Viewed Changes for src/common/DeviceTypes.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ class DeviceTypeEnum(Enum): XR_CONSTELLATION = 'xr-constellation' QKD_NODE = 'qkd-node' OPEN_ROADM = 'openroadm' PON_CONTROLLER = 'pon-controller' # ETSI TeraFlowSDN controller TERAFLOWSDN_CONTROLLER = 'teraflowsdn' Loading Loading
proto/context.proto +9 Viewed Changes for proto/context.proto: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package context; import "acl.proto"; import "kpi_sample_types.proto"; import "pon_access.proto"; service ContextService { rpc ListContextIds (Empty ) returns ( ContextIdList ) {} Loading Loading @@ -226,6 +227,7 @@ enum DeviceDriverEnum { DEVICEDRIVER_IETF_L3VPN = 13; DEVICEDRIVER_IETF_SLICE = 14; DEVICEDRIVER_NCE = 15; DEVICEDRIVER_PON = 16; } enum DeviceOperationalStatusEnum { Loading Loading @@ -321,6 +323,7 @@ enum ServiceTypeEnum { SERVICETYPE_E2E = 5; SERVICETYPE_OPTICAL_CONNECTIVITY = 6; SERVICETYPE_QKD = 7; SERVICETYPE_PON_ACCESS = 8; } enum ServiceStatusEnum { Loading Loading @@ -533,11 +536,17 @@ message ConfigRule_ACL { acl.AclRuleSet rule_set = 2; } message ConfigRule_PON { EndPointId endpoint_id = 1; pon_access.PonRuleSet rule_set = 2; } message ConfigRule { ConfigActionEnum action = 1; oneof config_rule { ConfigRule_Custom custom = 2; ConfigRule_ACL acl = 3; ConfigRule_PON pon_access = 5; } } Loading
proto/pon_access.proto +28 Viewed Changes for proto/pon_access.proto: 28 added lines, 0 removed lines. Original line number Diff line number Diff line // Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package pon_access; message PonRuleSet { string m = 1; // ncclient session string ont_id = 2; // ID of the ONT to operate on string cvlan = 3; // (if required) ID of the Customer VLAN string ethernet_port = 4; // the Ethernet port of the OLT (e.g., 1/1/x1) or similar string svlan = 5; // Service VLAN to configure string profile = 6; // "be" (Best Effort) or "ef" (Expedited Forwarding) string bw = 7; // optional, bandwidth to set (required if profile == "ef") string mask = 8; // Mask (from original message) string vlan = 9; // VLAN (from original message) } No newline at end of file
src/common/tools/object_factory/Service.py +10 Viewed Changes for src/common/tools/object_factory/Service.py: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -82,6 +82,16 @@ def json_service_tapi_planned( status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, config_rules=config_rules) def json_service_iplink_planned( service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME ): return json_service( service_uuid, ServiceTypeEnum.SERVICETYPE_IPLINK, context_id=json_context_id(context_uuid), status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, config_rules=config_rules) def json_service_p4_planned( service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME Loading
src/common/type_checkers/Assertions.py +4 Viewed Changes for src/common/type_checkers/Assertions.py: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -50,6 +50,8 @@ def validate_device_driver_enum(message): 'DEVICEDRIVER_IETF_ACTN', 'DEVICEDRIVER_OC', 'DEVICEDRIVER_QKD', 'DEVICEDRIVER_PON', ] def validate_device_operational_status_enum(message): Loading Loading @@ -107,6 +109,7 @@ def validate_service_type_enum(message): 'SERVICETYPE_E2E', 'SERVICETYPE_OPTICAL_CONNECTIVITY', 'SERVICETYPE_QKD', 'SERVICETYPE_PON_ACCESS', ] def validate_service_state_enum(message): Loading Loading @@ -144,6 +147,7 @@ def validate_uuid(message, allow_empty=False): CONFIG_RULE_TYPES = { 'custom', 'acl', 'pon_access' } def validate_config_rule(message): assert isinstance(message, dict) Loading
src/common/DeviceTypes.py +1 Viewed Changes for src/common/DeviceTypes.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ class DeviceTypeEnum(Enum): XR_CONSTELLATION = 'xr-constellation' QKD_NODE = 'qkd-node' OPEN_ROADM = 'openroadm' PON_CONTROLLER = 'pon-controller' # ETSI TeraFlowSDN controller TERAFLOWSDN_CONTROLLER = 'teraflowsdn' Loading