Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

Creates a tool to identify which CML labs lack containerlab equivalents and suggests where to place them.

Implementation

  • compare_cml_containerlab.py: Python script that scans both topology directories, performs normalized name matching (case-insensitive, handles .yaml, .virl.yaml, .clab.yml), and outputs a mapping of missing labs
  • cml_without_containerlab.txt: Generated output showing 432 of 438 CML labs (98.6%) need containerlab versions
  • README-comparison-script.md: Usage documentation and path mapping conventions

Key Features

  • Handles duplicate topology names across CML folders (2 found, both included)
  • Uses relative paths for portability
  • Suggests containerlab paths following repository convention: containerlab/labs/{category}/cisco/{name}/{name}.clab.yml

Example Output

CML Topology                                       Suggested Containerlab Path                       
--------------------------------------------------------------------------------
cml/BGP/bgp-4-byte-asn.yaml                        containerlab/labs/bgp/cisco/bgp-4-byte-asn/bgp-4-byte-asn.clab.yml
cml/OSPF/ospf-single-area.yaml                     containerlab/labs/ospf/cisco/ospf-single-area/ospf-single-area.clab.yml

Run with: python3 compare_cml_containerlab.py

Original prompt

Create a list of labs I have for Cisco CML, but not for containerlab.

I'd like to get a list with the CML topology folder+file and what the containerlab folder+file should be.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits November 24, 2025 09:09
Co-authored-by: renemolenaar82 <6650207+renemolenaar82@users.noreply.github.com>
Co-authored-by: renemolenaar82 <6650207+renemolenaar82@users.noreply.github.com>
Co-authored-by: renemolenaar82 <6650207+renemolenaar82@users.noreply.github.com>
Copilot AI changed the title [WIP] Create list of CML labs without Containerlab equivalent Add script to compare CML and containerlab topologies Nov 24, 2025
Copilot AI requested a review from renemolenaar82 November 24, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants