Commit 4d01ccc3 authored by Leandro Campos's avatar Leandro Campos
Browse files

service

parent 000417cc
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package context;

import "acl.proto";
import "kpi_sample_types.proto";
import "pon.proto";

service ContextService {
  rpc ListContextIds     (Empty         ) returns (       ContextIdList   ) {}
@@ -322,6 +323,7 @@ enum ServiceTypeEnum {
  SERVICETYPE_E2E = 5;
  SERVICETYPE_OPTICAL_CONNECTIVITY = 6;
  SERVICETYPE_QKD = 7;
  SEVICETYPE_PON_ACCESS = 9;
}

enum ServiceStatusEnum {
@@ -534,11 +536,17 @@ message ConfigRule_ACL {
  acl.AclRuleSet rule_set = 2;
}

message ConfigRule_PON {
  EndPointId endpoint_id = 1;
  pon.PonRuleSet rule_set = 2;
}

message ConfigRule {
  ConfigActionEnum action = 1;
  oneof config_rule {
    ConfigRule_Custom custom  = 2;
    ConfigRule_ACL acl        = 3;
    ConfigRule_PON            = 5;
  }
}

proto/pon.proto

0 → 100644
+28 −0
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;

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

quick_deploy.sh

0 → 100755
+438 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ SERVICE_TYPE_VALUES = {
    ServiceTypeEnum.SERVICETYPE_E2E,
    ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY,
    ServiceTypeEnum.SERVICETYPE_QKD,
    ServiceTypeEnum.SERVICETYPE_PON_ACCESS,
}

DEVICE_DRIVER_VALUES = {
+30 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading