adding no_proxy env variable by default to each clab node #2351
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #2350
If
no_proxy
orNO_PROXY
variable is already set, existing values are kept, missing default values (127.0.0.1, localhost,...) are added and clab mgmt nets, all clab nodenames and IPs (if available) are added.For the clab node, both
no_proxy
andNO_PROXY
are set to the same valueExample for https://github.com/srl-labs/srl-telemetry-lab/
no_proxy=localhost,127.0.0.1,::1,*.local,172.80.80.0/24,172.80.80.11,172.80.80.12,172.80.80.13,172.80.80.21,172.80.80.22,172.80.80.31,172.80.80.32,172.80.80.33,172.80.80.41,172.80.80.42,172.80.80.43,172.80.80.45,172.80.80.46,client1,client2,client3,gnmic,grafana,leaf1,leaf2,leaf3,loki,prometheus,promtail,spine1,spine2