diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index a8a3d658..97adfb8a 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -1,70 +1,71 @@ --- name: Code Coverage # cloned from ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main # in order to deal with token issue in codecov on: # yamllint disable-line rule:truthy push: pull_request: branches: [main] jobs: codecoverage: env: PY_COLORS: "1" source_directory: "./source" python_version: "3.10" ansible_version: "latest" os: "ubuntu-latest" collection_pre_install: >- git+https://github.com/ansible-collections/ansible.utils.git git+https://github.com/ansible-collections/ansible.netcommon.git runs-on: ubuntu-latest name: "Code Coverage | Python 3.10" steps: - name: Checkout the collection repository uses: ansible-network/github_actions/.github/actions/checkout_dependency@main with: path: ${{ env.source_directory }} ref: ${{ github.event.pull_request.head.sha }} fetch-depth: "0" - name: Set up Python ${{ env.python_version }} uses: actions/setup-python@v4 with: python-version: ${{ env.python_version }} - name: Install ansible-core (${{ env.ansible-version }}) run: python3 -m pip install ansible-core pytest pytest-cov pytest-ansible-units pytest-forked pytest-xdist - name: Read collection metadata from galaxy.yml id: identify uses: ansible-network/github_actions/.github/actions/identify_collection@main with: source_path: ${{ env.source_directory }} - name: Build and install the collection uses: ansible-network/github_actions/.github/actions/build_install_collection@main with: install_python_dependencies: true source_path: ${{ env.source_directory }} collection_path: ${{ steps.identify.outputs.collection_path }} tar_file: ${{ steps.identify.outputs.tar_file }} - name: Print the ansible version run: ansible --version - name: Print the python dependencies run: python3 -m pip list - name: Run Coverage tests run: | pytest tests/unit -v --cov-report xml --cov=./ working-directory: ${{ steps.identify.outputs.collection_path }} - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: directory: ${{ steps.identify.outputs.collection_path }} fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/changelogs/fragments/T7006-interface-integration-tests.yml b/changelogs/fragments/T7006-interface-integration-tests.yml new file mode 100644 index 00000000..122dde76 --- /dev/null +++ b/changelogs/fragments/T7006-interface-integration-tests.yml @@ -0,0 +1,8 @@ +--- +minor_changes: + - adjust for loopback being removed in `vyos_l3_interfaces` + - fixed `vyos_interfaces` for 1.5+ + - update codecov updloader to version 5 + +known_issues: + - integration tests for `interfaces` are still failing occasionally in 1.4 and below diff --git a/changelogs/fragments/T7008-l3-interface-integration-tests.yml b/changelogs/fragments/T7008-l3-interface-integration-tests.yml index cfe7d2f0..bbdcbde1 100644 --- a/changelogs/fragments/T7008-l3-interface-integration-tests.yml +++ b/changelogs/fragments/T7008-l3-interface-integration-tests.yml @@ -1,7 +1,12 @@ --- minor_changes: - fix integration tests for `l3_interfaces` - - fix integration tests for `interfaces` (still failing occasionally in 1.3 and below) + - fix integration tests for `interfaces` + - fix replace in interfaces to remove vif completely if not present in new config + - fix override in interfaces to remove vif completely if not present in new config + - fix delete in interfaces to remove vif completely if in affected interface + - added unit test for unknown interface type known_issues: - - integration tests for `interfaces` are still failing occasionally in 1.3 and below + - integration tests for `interfaces` fail for 1.3 and below due to + mtu setting issue when a `vif` is defined. diff --git a/docs/vyos.vyos.vyos_interfaces_module.rst b/docs/vyos.vyos.vyos_interfaces_module.rst index 24156270..14f7a473 100644 --- a/docs/vyos.vyos.vyos_interfaces_module.rst +++ b/docs/vyos.vyos.vyos_interfaces_module.rst @@ -1,1132 +1,1123 @@ .. _vyos.vyos.vyos_interfaces_module: ************************* vyos.vyos.vyos_interfaces ************************* **Manages interface attributes of VyOS network devices.** Version added: 2.9.0 .. contents:: :local: :depth: 1 Synopsis -------- - This module manages the interface attributes on VyOS network devices. - This module supports managing base attributes of Ethernet, Bonding, VXLAN, Loopback and Virtual Tunnel Interfaces. Parameters ---------- .. raw:: html