Skip to content

Feat(eos_designs): Support dual stack underlay with ISIS-SR #2047

Feat(eos_designs): Support dual stack underlay with ISIS-SR

Feat(eos_designs): Support dual stack underlay with ISIS-SR #2047

---
name: "Pull Request Comment"
"on":
pull_request_target:
types:
- opened
jobs:
###################################################
# Add comment with useful links for the reviewers
###################################################
comment:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/github-script@v9
env:
BODY: |
Review docs on [Read the Docs](https://ansible-avd--${{ github.event.pull_request.number }}.org.readthedocs.build/en/${{ github.event.pull_request.number }}/)
To test this pull request:
\`\`\`sh
# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-${{ github.event.pull_request.number }}
# Activate the virtual environment
source test-avd-pr-${{ github.event.pull_request.number }}/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+${{ github.event.pull_request.head.repo.clone_url }}@${{ github.event.pull_request.head.ref }}#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
python -m ansible.cli.galaxy collection install git+${{ github.event.pull_request.head.repo.clone_url }}#/ansible_collections/arista/avd/,${{ github.event.pull_request.head.ref }} --force
cd test-avd-pr-${{ github.event.pull_request.number }}
# Run your playbook using \`python -m ansible.cli.playbook path/to/playbook.yml ...\`
\`\`\`
You can also test this PR using AVD playground:
- Rebase your branch to makes sure it is up-to-date and has latest lab topologies for example inventories
- Authenticate on [labs.arista.com](https://labs.arista.com/). Use your email! Not login.
- [Start the playground](https://labs.arista.com/launch?lab_type=avd-playground&origin=tech-lib)
- In the lab selector UI pick "I want to use a specific AVD fork"
- Enter following parameters:
\`\`\`text
GitHub org: ${{ github.event.pull_request.head.repo.owner.login }}
Repository name: ${{ github.event.pull_request.head.repo.name }}
Branch: ${{ github.event.pull_request.head.ref }}
\`\`\`
- Select an example inventory to test the PR
- Once the AVD Playground setup will be finished, type \`make start\` and test anything once the lab is up
with:
script: |-
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${{ env.BODY }}`
})