diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-01-02 21:40:37 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2020-01-08 17:06:32 +0100 |
commit | 5f80aebf7e0b0c006a28d2084ebd49f734d61548 (patch) | |
tree | 1601a4e3f253771f6f184ca04d0951dccb9f992d | |
parent | b801815c1403434df52d9835cbfebd497b604e56 (diff) | |
download | vyatta-cfg-system-5f80aebf7e0b0c006a28d2084ebd49f734d61548.tar.gz vyatta-cfg-system-5f80aebf7e0b0c006a28d2084ebd49f734d61548.zip |
T1935: Add udev rule for rename VF in hyper-v
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | sysconf/63-hyperv-vf-net.rules | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index f95356b8..cecc9208 100644 --- a/Makefile.am +++ b/Makefile.am @@ -101,6 +101,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 |