Replies: 1 comment 1 reply
-
|
Most of what you're looking for already exists -- node.clab.env is copied into node.env in clab.yml in https://github.com/ipspace/netlab/blob/dev/netsim/templates/provider/clab/clab.j2#L26. I tested it with this topology: And this is the result: Are you looking for something else? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to propose allowing environment variables to be mapped from the netlab topology.
https://containerlab.dev/manual/nodes/#env
The ENV can be set in quite some ways for containerlab. My simplistic view of this would be allowing env type
env is already defined as a node property here:
netlab/netsim/providers/clab.yml
Line 31 in a9688dc
But not mapped in clab.j2: https://github.com/ipspace/netlab/blob/dev/netsim/templates/provider/clab/clab.j2
Related: we now start containerlab with sudo -E to preserve PATH env. Maybe this is not needed if we allow some other form of env mapping.
Related2: Clab docs:
Beta Was this translation helpful? Give feedback.
All reactions