Commit c480c80f authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch 'develop' of ssh://gifrerenom_labs.etsi.org/tfs/controller into...

Merge branch 'develop' of ssh://gifrerenom_labs.etsi.org/tfs/controller into feat/393-cttc-fix-urls-to-download-gnmic-tool-for-hackfests
parents d88e13b2 a9977cbd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ venv.bak/

# VSCode project settings
.vscode/
.github/

# Visual Studio project settings
/.vs
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ spec:
              # Assuming SIMAP Server is deployed in a local Docker container, as per:
              # - ./src/tests/tools/simap_datastore/build.sh
              # - ./src/tests/tools/simap_datastore/deploy.sh
              value: "172.17.0.1"
              value: "10.254.0.9"
            - name: SIMAP_DATASTORE_PORT
              # Assuming SIMAP Server is deployed in a local Docker container, as per:
              # - ./src/tests/tools/simap_datastore/build.sh
+3 −3
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ class _Callback:
        @param old_data: Resource representation before retrieval, if applicable, otherwise `None`
        @returns boolean indicating whether additional callbacks should be executed, defaults to False
        '''
        MSG = 'match={:s}, path={:s}, old_data={:s}'
        MSG = 'match={}, path={}, old_data={}'
        msg = MSG.format(match.groupdict(), path, old_data)
        raise NotImplementedError(msg)

@@ -66,7 +66,7 @@ class _Callback:
        @param new_data: Resource representation after change, if applicable, otherwise `None`
        @returns boolean indicating whether additional callbacks should be executed, defaults to False
        '''
        MSG = 'match={:s}, path={:s}, old_data={:s}, new_data={:s}'
        MSG = 'match={}, path={}, old_data={}, new_data={}'
        msg = MSG.format(match.groupdict(), path, old_data, new_data)
        raise NotImplementedError(msg)

@@ -81,7 +81,7 @@ class _Callback:
        @param input_data: Input data, if applicable, otherwise `None`
        @returns Optional[Dict] containing output data, defaults to None
        '''
        MSG = 'match={:s}, path={:s}, input_data={:s}'
        MSG = 'match={}, path={}, input_data={:s}'
        msg = MSG.format(match.groupdict(), path, input_data)
        raise NotImplementedError(msg)

+1 −0
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ class IetfL3VpnDriver(_Driver):
    def SetConfig(
        self, resources : List[Tuple[str, Any]]
    ) -> List[Union[bool, Exception]]:
        LOGGER.info('SetConfig called with resources: {:s}'.format(str(resources)))
        results = []
        if len(resources) == 0: return results
        with self.__lock:
+8 −8
Original line number Diff line number Diff line
@@ -259,10 +259,10 @@ def setup_config_rules(
            "/service[{:s}]/IETFL3VPN".format(service_uuid),
            l3_vpn_data_model,
        ),
        #json_config_rule_set(
        #    "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
        #    {"type": operation_type},
        #),
        json_config_rule_set(
            "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
            {"type": operation_type},
        ),
    ]

    return json_config_rules
@@ -274,10 +274,10 @@ def teardown_config_rules(service_uuid: str) -> List[Dict]:
            "/service[{:s}]/IETFL3VPN".format(service_uuid),
            {"id": service_uuid},
        ),
        #json_config_rule_delete(
        #    "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
        #    {},
        #),
        json_config_rule_delete(
            "/service[{:s}]/IETFL3VPN/operation".format(service_uuid),
            {"type": "delete"},
        ),
    ]
    return json_config_rules

Loading