You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adding no_proxy env variable by default to each clab node (srl-labs#2351)
* adding no_proxy env variable by default to each clab node
* formatting
* Add mgmt subnet range to no_proxy var
* Add mgmt subnet to no_proxy if not empty
* make format
* move to a func and add a test
* fix contain condition
* doc entry
---------
Co-authored-by: toweber <>
Co-authored-by: Roman Dodin <[email protected]>
Copy file name to clipboardExpand all lines: docs/manual/nodes.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -345,6 +345,18 @@ topology:
345
345
346
346
You can also specify a magic ENV VAR - `__IMPORT_ENVS: true` - which will import all environment variables defined in your shell to the relevant topology level.
347
347
348
+
/// admonition | `NO_PROXY` variable
349
+
type: subtle-note
350
+
If you use an http(s) proxy on your host, you typically set the `NO_PROXY` environment variable in your containers to ensure that when containers talk to one another, they don't send traffic through the proxy, as that would lead to broken communication. And setting those env vars is tedious.
351
+
352
+
Containerlab automates this process by automatically setting `NO_PROXY`/`no_proxy` environment variables in the containerlab nodes with the values of:
353
+
354
+
1. localhost,127.0.0.1,::1,*.local
355
+
2. management network range for v4 and v6 (e.g. `172.20.20.0/24`)
356
+
3. IPv4/IPv6 management addresses of the nodes of the lab
357
+
4. node names as stated in your topology file
358
+
///
359
+
348
360
### env-files
349
361
350
362
To add environment variables defined in a file use the `env-files` property that can be defined at `defaults`, `kind` and `node` levels.
0 commit comments