<!--
  ~ Copyright (c) 2026 Arista Networks, Inc.
  ~ Use of this source code is governed by the Apache License 2.0
  ~ that can be found in the LICENSE file.
  -->
=== "Table"

    | Variable | Type | Required | Default | Value Restrictions | Description |
    | -------- | ---- | -------- | ------- | ------------------ | ----------- |
    | [<samp>as_path</samp>](## "as_path") | Dictionary |  |  |  |  |
    | [<samp>&nbsp;&nbsp;regex_mode</samp>](## "as_path.regex_mode") | String |  |  | Valid Values:<br>- <code>asn</code><br>- <code>string</code> |  |
    | [<samp>&nbsp;&nbsp;access_lists</samp>](## "as_path.access_lists") | List, items: Dictionary |  |  |  |  |
    | [<samp>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;name</samp>](## "as_path.access_lists.[].name") | String | Required, Unique |  |  | Access List Name. |
    | [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;entries</samp>](## "as_path.access_lists.[].entries") | List, items: Dictionary |  |  |  |  |
    | [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;type</samp>](## "as_path.access_lists.[].entries.[].type") | String | Required |  | Valid Values:<br>- <code>permit</code><br>- <code>deny</code> |  |
    | [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;match</samp>](## "as_path.access_lists.[].entries.[].match") | String | Required |  |  | Regex To Match. |
    | [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;origin</samp>](## "as_path.access_lists.[].entries.[].origin") | String |  | `any` | Valid Values:<br>- <code>any</code><br>- <code>egp</code><br>- <code>igp</code><br>- <code>incomplete</code> |  |

=== "YAML"

    ```yaml
    as_path:
      regex_mode: <str; "asn" | "string">
      access_lists:

          # Access List Name.
        - name: <str; required; unique>
          entries:
            - type: <str; "permit" | "deny"; required>

              # Regex To Match.
              match: <str; required>
              origin: <str; "any" | "egp" | "igp" | "incomplete"; default="any">
    ```
