containerlab icon indicating copy to clipboard operation
containerlab copied to clipboard

generate command

Open FloSch62 opened this issue 10 months ago • 1 comments

The generate command docs are currently having non working examples

containerlab gen -n 3tier --nodes 4,2,1
Error: unknown shorthand flag: 'n' in -n

Also it add non schema vars, like settings: null and debug: false

containerlab gen --name 2tier --nodes 2,1  
name: 2tier
prefix: null
mgmt: {}
settings: null
topology:
  nodes:
    node1-1:
      kind: srl
      group: tier-1
    node1-2:
      kind: srl
      group: tier-1
    node2-1:
      kind: srl
      group: tier-2
  links:
  - endpoints:
    - node1-1:e1-1
    - node2-1:e1-1
  - endpoints:
    - node1-2:e1-1
    - node2-1:e1-2
debug: false

Not sure how much the command is used, maybe it even makes sense to remove it?

FloSch62 avatar Apr 25 '25 15:04 FloSch62

still useful to have it, worth fixing

hellt avatar Apr 25 '25 20:04 hellt

The -n shorthand is not available for the --name flag. I am not sure if that was used earlier in the docs, right now I don't seem to find any occurrences of -n

hellt avatar Jul 23 '25 15:07 hellt