summaryrefslogtreecommitdiff
path: root/src/etc/udev/rules.d/63-hyperv-vf-net.rules
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-20 20:48:58 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-20 20:48:58 +0100
commit511c127832667f5db218cf803ad88355f873d399 (patch)
tree8a322e8bd9b9260c7ffdc4f80320058017f43c32 /src/etc/udev/rules.d/63-hyperv-vf-net.rules
parent44b7157addd4427e1bee20e9918ccc6a22814eec (diff)
downloadvyos-1x-511c127832667f5db218cf803ad88355f873d399.tar.gz
vyos-1x-511c127832667f5db218cf803ad88355f873d399.zip
udev: import rule file from vyatta-cfg-system
Diffstat (limited to 'src/etc/udev/rules.d/63-hyperv-vf-net.rules')
-rw-r--r--src/etc/udev/rules.d/63-hyperv-vf-net.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/udev/rules.d/63-hyperv-vf-net.rules b/src/etc/udev/rules.d/63-hyperv-vf-net.rules
new file mode 100644
index 000000000..b4dcb5a39
--- /dev/null
+++ b/src/etc/udev/rules.d/63-hyperv-vf-net.rules
@@ -0,0 +1,5 @@
+ATTR{[dmi/id]sys_vendor}!="Microsoft Corporation", GOTO="end_hyperv_nic"
+
+ACTION=="add", SUBSYSTEM=="net", DRIVERS=="hv_pci", NAME="vf_%k"
+
+LABEL="end_hyperv_nic"