Skip to content

%IPADDR% not expanded when config fully uses networks-autonumber #74

@choppsv1

Description

@choppsv1

At least with Qemu node, if full autonumbering is used:

topology:
  networks-autonumber: true
  networks:
    - name: mgmt0
  nodes:
    - name: r1
      connections: ["mgmt0"]
 ...

cli:
  commands:
    - name: ssh
      exec: "ssh -i root-key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null %IPADDR%"

The ssh command will fail b/c it is passed %IPADDR% rather than the address. Simply adding an IP interface address to the network will make things work.

i.e.,

  networks:
    - name: mgmt0
      ip: 192.168.0.254/24

No need to number the host r1 just the network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions