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.