Skip to content

Commit

Permalink
T1935: Add udev rule for rename VF in hyper-v
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyEshenko committed Jan 2, 2020
1 parent bb9885f commit 9399c1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions sysconf/63-hyperv-vf-net.rules
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9399c1d

Please sign in to comment.