diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-02 23:04:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-02 23:04:50 +0100 |
commit | bf4d7faa374b162ad7d176f3555182d1892c9350 (patch) | |
tree | aded3eb4971cffb06ab34f8b435fdb699d72de53 | |
parent | bb9885f898dcdc3a9e6d6465fb3e2138da8b1ebf (diff) | |
parent | 9399c1dc5ab42e70430e1c40fb424fe0f88de8b5 (diff) | |
download | vyatta-cfg-system-bf4d7faa374b162ad7d176f3555182d1892c9350.tar.gz vyatta-cfg-system-bf4d7faa374b162ad7d176f3555182d1892c9350.zip |
Merge pull request #116 from DmitriyEshenko/hyperv
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 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 |