Created
February 13, 2024 01:07
-
-
Save higebu/42d92a58a7a59ca818b57cb5c49e3616 to your computer and use it in GitHub Desktop.
VRF on GitHub Actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: use vrf | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install linux-modules-extra | |
run: | | |
sudo apt-get install linux-modules-extra-$(uname -r) | |
- name: Create vrf | |
run: | | |
sudo ip link add vrf1 type vrf table 1000 | |
sudo ip link set dev vrf1 up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment