From 9399c1dc5ab42e70430e1c40fb424fe0f88de8b5 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Thu, 2 Jan 2020 21:40:37 +0000 Subject: T1935: Add udev rule for rename VF in hyper-v --- Makefile.am | 1 + sysconf/63-hyperv-vf-net.rules | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 sysconf/63-hyperv-vf-net.rules diff --git a/Makefile.am b/Makefile.am index 2d9c7cd5..f9f46485 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,6 +98,7 @@ libudev_SCRIPTS = scripts/vyatta_net_name udevrules_DATA = sysconf/65-vyatta-net.rules udevrules_DATA += sysconf/42-qemu-usb.rules udevrules_DATA += sysconf/64-vyos-vmware-net.rules +udevrules_DATA += sysconf/63-hyperv-vf-net.rules cronhourlydir = /etc/cron.hourly cronhourly_SCRIPTS = sysconf/vyatta-logrotate-hourly 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 -- cgit v1.2.3