summaryrefslogtreecommitdiff
path: root/sysconf
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-01-02 21:40:37 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-01-02 21:40:37 +0000
commit9399c1dc5ab42e70430e1c40fb424fe0f88de8b5 (patch)
treeaded3eb4971cffb06ab34f8b435fdb699d72de53 /sysconf
parentbb9885f898dcdc3a9e6d6465fb3e2138da8b1ebf (diff)
downloadvyatta-cfg-system-9399c1dc5ab42e70430e1c40fb424fe0f88de8b5.tar.gz
vyatta-cfg-system-9399c1dc5ab42e70430e1c40fb424fe0f88de8b5.zip
T1935: Add udev rule for rename VF in hyper-v
Diffstat (limited to 'sysconf')
-rw-r--r--sysconf/63-hyperv-vf-net.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconf/63-hyperv-vf-net.rules b/sysconf/63-hyperv-vf-net.rules
new file mode 100644
index 00000000..4ee10fc1
--- /dev/null
+++ b/sysconf/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" \ No newline at end of file