Closed dteslya closed 2 years ago
Hi, I think @networkop who is the author of this can comment on that I remember something like that was fixed for another lab
hey @dteslya can you check if the hosts have CLAB_ENV_INTFS
env variable configured inside their shell?
Containerlab will automatically inject this env var and make it equal to the expected number of interfaces and hosts image should pick it up automatically.
I think cmd
field may need to be removed completely to make it work? can you try that?
Yes, removing the cmd
field also worked. And the CLAB_INTFS
env variable is injected.
$ docker exec clab-citc-server01 bash -c 'echo "$CLAB_INTFS"'
2
ok, thanks. I'll do a PR to remove cmd
shortly.
Thank you! Btw, symm-mh.clab.yml
has the same issue. Removing cmd
also helps there.
The pr has been merged #9
thanks. closing the issue.
🤣 forgot it's not my issue
thank you!
Hi!
I try to deploy
symm-mh.clab.yml
topology and all hosts do not get their interfaces configured. After some digging, I found out that the entrypoint script waits for 3 more interfaces to come up aside from eth0. But according to the topology each server has only 2 uplinks to the leaf switches. Changingcmd: 3
tocmd: 2
under the server definition in the topology file seems to fix this issue.