Commit 691c1efc authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

Backup

parent 3628e55a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
            - containerPort: 9192
          env:
            - name: LOG_LEVEL
              value: "INFO"
              value: "DEBUG"
          readinessProbe:
            exec:
              command: ["/bin/grpc_health_probe", "-addr=:3030"]
+2 −1
Original line number Diff line number Diff line
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
# Copyright 2022-2024 ETSI 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.
@@ -48,6 +48,7 @@ class DeviceTypeEnum(Enum):
    PACKET_SWITCH                   = 'packet-switch'
    XR_CONSTELLATION                = 'xr-constellation'
    QKD_NODE                        = 'qkd-node'
    OPEN_ROADM                      = 'openroadm'
    OPENFLOW_RYU_CONTROLLER         = 'openflow-ryu-controller'

    # ETSI TeraFlowSDN controller
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ class OpenFlowDriver(_Driver):
        scheme = self.settings.get('scheme', 'http')
        self.__base_url = '{:s}://{:s}:{:d}'.format(scheme, self.address, int(self.port))
        self.__timeout = int(self.settings.get('timeout', 120))
        config = {'mapping_not_needed': False, 'service_endpoint_mapping': []}
        self.tac = TfsApiClient(self.address, int(self.port), scheme=scheme, username=username, password=password)

    def Connect(self) -> bool:
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ class TfsApiClient:
                    'uuid': device_uuid,
                    'name': device_uuid,
                    'type': 'packet-switch', 
                    'status': 2,  # Uncomment if device_status is included
                    'status': 2,  
                    'drivers': 'DEVICEDRIVER_RYU',
                    }
                result.append((device_url, device_data))
+0 −3
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.
Loading