Skip to content

Commit

Permalink
Merge branch 'devel' into rsvp
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhu-gslab committed Nov 13, 2024
2 parents 5d94392 + 241b400 commit 861efe4
Show file tree
Hide file tree
Showing 21 changed files with 142 additions and 133 deletions.
6 changes: 1 addition & 5 deletions .github/requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Installing PyAVD from source.
# The package path below is relative to the repo root and will only work if the pip install is executed from there.
./python-avd
# The -r path is relative to this file.
-r ../ansible_collections/arista/avd/requirements.txt
# Needed for molecule
jsonschema-rs>=0.24
./python-avd[ansible-collection]
7 changes: 7 additions & 0 deletions .github/workflows/new-cvp-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on: workflow_dispatch

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}

env:
# Set -vvv is ACTIONS_STEP_DEBUG is set
# Apparently it is set in secrets when running with debug
ANSIBLE_VERBOSITY: ${{ secrets.ACTIONS_STEP_DEBUG && 3 || 0 }}
AVD_NEVER_RUN_FROM_SOURCE: 1

jobs:
# ----------------------------------------------- #
# CV INTEGRATION MOLECULE TEST FOR CV_WORKFLOW #
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pull-request-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
# Set -vvv is ACTIONS_STEP_DEBUG is set
# Apparently it is set in secrets when running with debug
ANSIBLE_VERBOSITY: ${{ secrets.ACTIONS_STEP_DEBUG && 3 || 0 }}
AVD_NEVER_RUN_FROM_SOURCE: 1

jobs:
file-changes:
Expand Down Expand Up @@ -111,7 +112,7 @@ jobs:
python-version: ${{ matrix.python_version }}
- name: 'Install Python requirements'
run: |
pip install -r ansible_collections/arista/avd/requirements-dev.txt -r ansible_collections/arista/avd/requirements.txt --upgrade
pip install -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
# ----------------------------------- #
# EOS CLI CONFIG GEN MOLECULE
Expand Down Expand Up @@ -432,7 +433,7 @@ jobs:
3.13
- name: 'Install Python & Ansible requirements'
run: |
pip install -r ansible_collections/arista/avd/requirements-dev.txt -r ansible_collections/arista/avd/requirements.txt --upgrade
pip install -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
ansible-galaxy collection install -r ansible_collections/arista/avd/collections.yml
- name: 'Run ansible-test integration test cases'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.2
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Developing with your local Python environment requires you to configure and inst
Recommended steps with Python virtual environment:

1. Create and activate a Python virtual environment.
2. Install Python requirements located in the AVD repository: [requirements-dev.txt](https://github.com/aristanetworks/avd/blob/devel/ansible_collections/arista/avd/requirements-dev.txt) and [requirements.txt](https://github.com/aristanetworks/avd/blob/devel/ansible_collections/arista/avd/requirements.txt).
2. Install Python requirements located in the AVD repository: [requirements-dev.txt](https://github.com/aristanetworks/avd/blob/devel/ansible_collections/arista/avd/requirements-dev.txt).

!!! note
Ensure the virtual environment is located outside of the AVD project directory.
Expand All @@ -72,7 +72,7 @@ source avd-venv/bin/activate
# The installation _must_ be performed from the root of the cloned avd repository.
cd avd
# Requirements files are located in `ansible_collections/arista/avd` of the avd repository.
pip3 install -r ansible_collections/arista/avd/requirements-dev.txt -r ansible_collections/arista/avd/requirements.txt --upgrade
pip3 install -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
```

!!! note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [IP Domain-list](#ip-domain-list)
- [Clock Settings](#clock-settings)
- [NTP](#ntp)
- [System Control-Plane](#system-control-plane)
- [Management SSH](#management-ssh)
- [Management Tech-Support](#management-tech-support)
- [CVX](#cvx)
Expand Down Expand Up @@ -149,6 +150,9 @@
- [VRF Instances](#vrf-instances)
- [VRF Instances Summary](#vrf-instances-summary)
- [VRF Instances Device Configuration](#vrf-instances-device-configuration)
- [System L1](#system-l1)
- [Unsupported Interface Configurations](#unsupported-interface-configurations)
- [System L1 Device Configuration](#system-l1-device-configuration)
- [Application Traffic Recognition](#application-traffic-recognition)
- [Applications](#applications)
- [Application Profiles](#application-profiles)
Expand Down Expand Up @@ -327,6 +331,48 @@ ntp server 20.20.20.1 key <removed>
ntp server ie.pool.ntp.org iburst key <removed>
```

### System Control-Plane

#### TCP MSS Ceiling

| Protocol | Segment Size |
| -------- | -------------|
| IPv4 | 1344 |
| IPv6 | 1366 |

#### Control-Plane Access-Groups

| Protocol | VRF | Access-list |
| -------- | --- | ------------|
| IPv4 Ingress default | All | ingress_ipv4_acl |
| IPv4 | default | acl4_1 |
| IPv4 | red | acl4_2 |
| IPv4 | red_1 | acl4_2 |
| IPv4 | default | acl4_3 |
| IPv6 Ingress default | All | ingress_ipv6_acl |
| IPv6 | default | acl6_1 |
| IPv6 | blue | acl6_2 |
| IPv6 | blue_1 | acl6_2 |
| IPv6 | default | acl6_3 |

#### System Control-Plane Device Configuration

```eos
!
system control-plane
tcp mss ceiling ipv4 1344 ipv6 1366
ip access-group ingress default ingress_ipv4_acl
ip access-group acl4_1 in
ip access-group acl4_3 vrf default in
ip access-group acl4_2 vrf red in
ip access-group acl4_2 vrf red_1 in
ipv6 access-group ingress default ingress_ipv6_acl
ipv6 access-group acl6_1 in
ipv6 access-group acl6_3 vrf default in
ipv6 access-group acl6_2 vrf blue in
ipv6 access-group acl6_2 vrf blue_1 in
```

### Management SSH

#### Authentication Settings
Expand Down Expand Up @@ -4948,6 +4994,24 @@ vrf instance TENANT_A_PROJECT01
vrf instance TENANT_A_PROJECT02
```

## System L1

### Unsupported Interface Configurations

| Unsupported Configuration | action |
| ---------------- | -------|
| Speed | warn |
| Error correction | error |

### System L1 Device Configuration

```eos
!
system l1
unsupported speed action warn
unsupported error-correction action error
```

## Application Traffic Recognition

### Applications
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,10 @@ no sflow hardware acceleration module Linecard3
!
service unsupported-transceiver test dsafDSFfvadskjh3424
!
system l1
unsupported speed action warn
unsupported error-correction action error
!
tap aggregation
mode exclusive profile tap-aggregation-extended
encapsulation dot1br strip
Expand Down Expand Up @@ -2164,6 +2168,19 @@ mac access-list TEST4
permit any 02:00:00:12:34:56 00:00:00:00:00:00
deny any 02:00:00:ab:cd:ef 00:00:00:00:00:00
!
system control-plane
tcp mss ceiling ipv4 1344 ipv6 1366
ip access-group ingress default ingress_ipv4_acl
ip access-group acl4_1 in
ip access-group acl4_3 vrf default in
ip access-group acl4_2 vrf red in
ip access-group acl4_2 vrf red_1 in
ipv6 access-group ingress default ingress_ipv6_acl
ipv6 access-group acl6_1 in
ipv6 access-group acl6_3 vrf default in
ipv6 access-group acl6_2 vrf blue in
ipv6 access-group acl6_2 vrf blue_1 in
!
mac address-table notification host-flap logging
mac address-table notification host-flap detection window 10
mac address-table notification host-flap detection moves 2
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ system:
tcp_mss:
ipv4: 1344
ipv6: 1366
ipv4_access_group_ingress_default: ingress_ipv4_acl
ipv4_access_groups:
- acl_name: "acl4_1"
- acl_name: "acl4_2"
Expand All @@ -11,6 +12,7 @@ system:
vrf: red_1
- acl_name: "acl4_3"
vrf: default
ipv6_access_group_ingress_default: ingress_ipv6_acl
ipv6_access_groups:
- acl_name: "acl6_1"
- acl_name: "acl6_2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ test_hosts:
spanning-tree-rapid-pvst:
sync-e:
tcam-profile:
system:
terminattr-cloud:
terminattr-extra-flags:
terminattr-multi-cluster-certs:
Expand Down
3 changes: 2 additions & 1 deletion ansible_collections/arista/avd/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
from __future__ import annotations

from contextlib import suppress
from os import environ
from pathlib import Path

PYTHON_AVD_PATH = Path(__file__).parents[4] / "python-avd"
RUNNING_FROM_SOURCE_PATH = PYTHON_AVD_PATH / "pyavd/running_from_src.txt"
RUNNING_FROM_SOURCE = RUNNING_FROM_SOURCE_PATH.exists()
RUNNING_FROM_SOURCE = RUNNING_FROM_SOURCE_PATH.exists() and not environ.get("AVD_NEVER_RUN_FROM_SOURCE")

if RUNNING_FROM_SOURCE:
import sys
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pylint>=3.2.6
pre-commit>=3.2.0
pre-commit-hooks>=3.3.0
referencing>=0.35.0
ruff==0.5.6
ruff==0.7.3
tox
treelib>=1.5.5
twine
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ansible_collections.arista.avd.plugins.plugin_utils.eos_validate_state_utils.avdtestbase import AvdTestBase
from ansible_collections.arista.avd.plugins.plugin_utils.utils import default, get

from ..bgp_constants import BGP_ADDRESS_FAMILIES # noqa: TID252 Will be fixed when moving to pyavd
from ..bgp_constants import BGP_ADDRESS_FAMILIES # noqa: TID252 will be fixed when moving to pyavd

LOGGER = logging.getLogger(__name__)

Expand Down
Loading

0 comments on commit 861efe4

Please sign in to comment.