Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make groups work as they were designed to #2504

Open
hellt opened this issue Mar 5, 2025 · 0 comments
Open

Make groups work as they were designed to #2504

hellt opened this issue Mar 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@hellt
Copy link
Member

hellt commented Mar 5, 2025

Containerlab topology definition file had a notion of a group forever. But we never implemented them in the way they were envisioned to be used.

A group should allow a user to define a common set of node-level parameters that a certain node can then inherit via the group reference.

For example, the below topology defines a group leafs and adds some node-specific parameters to it. Then a node in the topology references this group to adopt the specified parameters:

name: group-demo
topology:
  groups:
    leafs:
      labels:
        someLabel: someValue
      type: ixrd3l

  nodes:
    node1:
      group: leafs

    node2:

node1 will inherit labels and type as defined in a group, whereas node2 will not.

@hellt hellt added the enhancement New feature or request label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant