Debian Codegraph @

docs/advanced_usages/env-vars.md

raw symbols SCIP
1 ---
2 title: Environment Variables
3 hide:
4 - tags
5 tags:
6 - Configuration
7 ---
8
9 <!--
10 ~ Copyright (c) 2023-2026 Arista Networks, Inc.
11 ~ Use of this source code is governed by the Apache License 2.0
12 ~ that can be found in the LICENSE file.
13 -->
14 ---
15
16 ANTA exposes several environment variables that allow you to configure its behavior. These variables are automatically read during the initialization and preparation phases, ensuring the environment is configured correctly before any tests are executed.
17
18 ## Summary
19
20 | Variable | Default | Consumed By | Description |
21 | -------- | ------- | ----------- | ----------- |
22 | `ANTA_HTTPX_TRUST_ENV` | `true` | AsyncEOSDevice | Configures the `trust_env` parameter for the underlying HTTPX client. When false, HTTPX ignores environment variables for proxy and SSL settings. See the [HTTPX documentation](https://www.python-httpx.org/environment_variables/) for details. |
23
24 ---
25
26 ## Example Usage
27
28 The examples below show common scenarios where environment variables can be used to adjust ANTA's behavior.
29
30 ### Disabling proxy environment variable passthrough
31
32 ```bash
33 export ANTA_HTTPX_TRUST_ENV=false
34 anta nrfu table
35 ```
36
37 ---