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

Tests - L2-EVPN SRLinux:

- Reorganized files for a future end-to-end test
- Code cleanup
parent eef56fa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ def _raw_config_rules_to_grpc(
    raw_config_rules : List[Tuple[str, Union[Any, Exception, None]]]
) -> List[str]:
    errors : List[str] = list()
    LOGGER.warning('raw_config_rules={:s}'.format(str(raw_config_rules)))

    for resource_key, resource_value in raw_config_rules:
        if isinstance(resource_value, Exception):
            errors.append(error_template.format(
+0 −2
Original line number Diff line number Diff line
@@ -74,5 +74,3 @@ class RoutingPolicyHandler(_Handler):
            response.append((resource_key, lists))

        return response

src/device/tests/evpn01/deploy.sh

deleted100755 → 0
+0 −17
Original line number Diff line number Diff line
#!/bin/bash

# address for our topology example here in cttc test
TOPOLOGY_FILE="evpn01.clab.yml"

# Ensure you get elevated privileges
sudo true

# Check if the topology exists and destroy it to build our new topology again
sudo containerlab destroy --topo $TOPOLOGY_FILE
echo "Topology destroyed successfully."

sudo rm -rf clab-evpn01 .evpn01.clab.yml.bak

# Build the new topology
sudo containerlab deploy --topo $TOPOLOGY_FILE
echo "Topology deployed successfully."

src/device/tests/information

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
#first redeploy on /home/cttc/evpn01/deploy.sh
#Run the set scripts for the 2 leafs and spine together for setting the configurations
#Try to ping from server 1 to server 2 after redeploying and configuring
# server one is on 192.168.01 while server 2 ip is 192.168.0.2 
#when trying to ping the first time it fail to ping server 2 
#cancel and try again it will succesfully ping
#Hashtag the set commands and only keep the below which is concerned with the parse function 
 #       resources_to_get_leaf1 = [RESOURCE_INTERFACES]
 #       LOGGER.info('resources_to_get = {:s}'.format(str(resources_to_get_leaf1)))
 #       results_getconfig_leaf1 = dev1_driver.GetConfig(resources_to_get_leaf1)
 #       LOGGER.info('results_getconfig = {:s}'.format(str(results_getconfig_leaf1)))
 #   except Exception as e:
 #       
 #       logging.exception("Exception occurred", exc_info=True)

# After running so , therse is an error related to the path 
 No newline at end of file
+28 −0
Original line number Diff line number Diff line
#!/bin/bash
# Copyright 2022-2025 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.
# 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.


# Ensure you get elevated privileges
sudo true

# Check if the topology exists and destroy it to build our new topology again
sudo containerlab destroy --topo evpn01.clab.yml
echo "Topology destroyed successfully."

sudo rm -rf clab-evpn01 .evpn01.clab.yml.bak

# Build the new topology
sudo containerlab deploy --topo evpn01.clab.yml
echo "Topology deployed successfully."
Loading