|
16 | 16 | from Kathara.setting.Setting import Setting |
17 | 17 | from tqdm import tqdm |
18 | 18 |
|
19 | | -from kathara_lab_checker.TestCollector import TestCollector |
20 | | -from kathara_lab_checker.checks.BridgeCheck import BridgeCheck |
21 | | -from kathara_lab_checker.checks.CheckResult import CheckResult |
22 | | -from kathara_lab_checker.checks.CollisionDomainCheck import CollisionDomainCheck |
23 | | -from kathara_lab_checker.checks.CustomCommandCheck import CustomCommandCheck |
24 | | -from kathara_lab_checker.checks.DaemonCheck import DaemonCheck |
25 | | -from kathara_lab_checker.checks.DeviceExistenceCheck import DeviceExistenceCheck |
26 | | -from kathara_lab_checker.checks.IPv6EnabledCheck import IPv6EnabledCheck |
27 | | -from kathara_lab_checker.checks.InterfaceIPCheck import InterfaceIPCheck |
28 | | -from kathara_lab_checker.checks.KernelRouteCheck import KernelRouteCheck |
29 | | -from kathara_lab_checker.checks.ReachabilityCheck import ReachabilityCheck |
30 | | -from kathara_lab_checker.checks.StartupExistenceCheck import StartupExistenceCheck |
31 | | -from kathara_lab_checker.checks.SysctlCheck import SysctlCheck |
32 | | -from kathara_lab_checker.checks.applications.dns.DNSAuthorityCheck import DNSAuthorityCheck |
33 | | -from kathara_lab_checker.checks.applications.dns.DNSRecordCheck import DNSRecordCheck |
34 | | -from kathara_lab_checker.checks.applications.dns.LocalNSCheck import LocalNSCheck |
35 | | -from kathara_lab_checker.checks.protocols.AnnouncedNetworkCheck import AnnouncedNetworkCheck |
36 | | -from kathara_lab_checker.checks.protocols.ProtocolRedistributionCheck import ProtocolRedistributionCheck |
37 | | -from kathara_lab_checker.checks.protocols.bgp.BGPPeeringCheck import BGPPeeringCheck |
38 | | -from kathara_lab_checker.checks.protocols.evpn.AnnouncedVNICheck import AnnouncedVNICheck |
39 | | -from kathara_lab_checker.checks.protocols.evpn.EVPNSessionCheck import EVPNSessionCheck |
40 | | -from kathara_lab_checker.checks.protocols.evpn.VTEPCheck import VTEPCheck |
41 | | -from kathara_lab_checker.excel_utils import write_final_results_to_excel, write_result_to_excel |
42 | | -from kathara_lab_checker.utils import reverse_dictionary |
43 | | - |
44 | | -VERSION = "0.1.5" |
| 19 | +from .TestCollector import TestCollector |
| 20 | +from .checks.BridgeCheck import BridgeCheck |
| 21 | +from .checks.CheckResult import CheckResult |
| 22 | +from .checks.CollisionDomainCheck import CollisionDomainCheck |
| 23 | +from .checks.CustomCommandCheck import CustomCommandCheck |
| 24 | +from .checks.DaemonCheck import DaemonCheck |
| 25 | +from .checks.DeviceExistenceCheck import DeviceExistenceCheck |
| 26 | +from .checks.IPv6EnabledCheck import IPv6EnabledCheck |
| 27 | +from .checks.InterfaceIPCheck import InterfaceIPCheck |
| 28 | +from .checks.KernelRouteCheck import KernelRouteCheck |
| 29 | +from .checks.ReachabilityCheck import ReachabilityCheck |
| 30 | +from .checks.StartupExistenceCheck import StartupExistenceCheck |
| 31 | +from .checks.SysctlCheck import SysctlCheck |
| 32 | +from .checks.applications.dns.DNSAuthorityCheck import DNSAuthorityCheck |
| 33 | +from .checks.applications.dns.DNSRecordCheck import DNSRecordCheck |
| 34 | +from .checks.applications.dns.LocalNSCheck import LocalNSCheck |
| 35 | +from .checks.protocols.AnnouncedNetworkCheck import AnnouncedNetworkCheck |
| 36 | +from .checks.protocols.ProtocolRedistributionCheck import ProtocolRedistributionCheck |
| 37 | +from .checks.protocols.bgp.BGPPeeringCheck import BGPPeeringCheck |
| 38 | +from .checks.protocols.evpn.AnnouncedVNICheck import AnnouncedVNICheck |
| 39 | +from .checks.protocols.evpn.EVPNSessionCheck import EVPNSessionCheck |
| 40 | +from .checks.protocols.evpn.VTEPCheck import VTEPCheck |
| 41 | +from .excel_utils import write_final_results_to_excel, write_result_to_excel |
| 42 | +from .utils import reverse_dictionary |
| 43 | + |
| 44 | +VERSION = "0.1.6" |
45 | 45 | CURRENT_LAB: Optional[Lab] = None |
46 | 46 |
|
47 | 47 |
|
@@ -120,7 +120,7 @@ def run_on_single_network_scenario( |
120 | 120 | test_collector.add_check_results(lab_name, check_results) |
121 | 121 |
|
122 | 122 | logger.info("Checking collision domains...") |
123 | | - check_results = CollisionDomainCheck().run(list(lab_template.links.values()), lab) |
| 123 | + check_results = CollisionDomainCheck().run(list(lab_template.machines.values()), lab) |
124 | 124 | test_collector.add_check_results(lab_name, check_results) |
125 | 125 |
|
126 | 126 | if "requiring_startup" in configuration["test"]: |
@@ -263,10 +263,12 @@ def run_on_multiple_network_scenarios( |
263 | 263 |
|
264 | 264 | test_collector = TestCollector() |
265 | 265 | for lab_name in tqdm( |
266 | | - list( |
267 | | - filter( |
268 | | - lambda x: os.path.isdir(os.path.join(labs_path, x)) and x != ".DS_Store", |
269 | | - os.listdir(labs_path), |
| 266 | + sorted( |
| 267 | + list( |
| 268 | + filter( |
| 269 | + lambda x: os.path.isdir(os.path.join(labs_path, x)) and x != ".DS_Store", |
| 270 | + os.listdir(labs_path), |
| 271 | + ) |
270 | 272 | ) |
271 | 273 | ) |
272 | 274 | ): |
|
0 commit comments