Skip to content

[BUG] Config elements can be paths to template files #2973

@sdargoeuves

Description

@sdargoeuves

While testing the branch post-2968 in the issue #2966 I had the following error:

 [INFO] Creating configuration snippets
Errors encountered while processing topology.yml
UserWarning in configs: Cannot find config-snippets/asav-routes.j2 configuration template for vpn1xfw01/device asav
... Use the '--debug template' option if you're troubleshooting custom configuration templates
UserWarning in configs: Cannot find config-snippets/asav-routes.j2 configuration template for vpn6xfw01/device asav
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s1xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s1xh02/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s2xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s3xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s3xh02/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s3xh03/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s3xh04/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s4xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s4xh02/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s5xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux-iperf.j2 configuration template for s5xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s6xh01/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s6xh02/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s6xh03/device linux
UserWarning in configs: Cannot find config-snippets/linux.j2 configuration template for s6xh04/device linux
Fatal error in netlab: Cannot proceed beyond this point due to errors, exiting

My tree looks like this:

╰─❯ tree -L 2
.
├── config-snippets
│   ├── asav-routes.j2
│   ├── linux-iperf.j2
│   └── linux.j2
├── topology.yml

And in the topology file I have the following for the specific nodes:

  # AWS VPN firewalls
  awsfw:
    device: asav
    module: [ bgp ]
    bgp.as: 65100
    members: [ vpn1xfw01, vpn6xfw01 ]
    config: [ config-snippets/asav-routes.j2 ]

  # All Linux hosts, excluding the F5 loadbalancer
  allhosts:
    device: linux
    provider: clab
    role: host
    members: [ s1hosts, s2hosts, s3hosts, s4hosts, s5hosts, s6hosts ]
    config: [ config-snippets/linux.j2 ]

It was working fine on 25.12.02.
I'm not sure if I've missed something that I need to update in my topology file, or if there is a bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions