Skip to content

Instantly share code, notes, and snippets.

@higebu
Created February 13, 2024 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higebu/42d92a58a7a59ca818b57cb5c49e3616 to your computer and use it in GitHub Desktop.
Save higebu/42d92a58a7a59ca818b57cb5c49e3616 to your computer and use it in GitHub Desktop.
VRF on GitHub Actions
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