-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from zshi-redhat/rename-vf-representor
Rename vf representor with udev rules
- Loading branch information
Showing
4 changed files
with
126 additions
and
10 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
bindata/manifests/machine-config/files/switchdev-vf-link-name.sh.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mode: 0755 | ||
overwrite: true | ||
path: "/etc/udev/switchdev-vf-link-name.sh" | ||
contents: | ||
inline: | | ||
#!/bin/bash | ||
set -x | ||
PORT="$1" | ||
echo "NUMBER=${PORT##pf*vf}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
echo "Reload udev rules: /usr/sbin/udevadm control --reload-rules" | ||
chroot /host/ /usr/sbin/udevadm control --reload-rules | ||
|
||
echo "Trigger udev event: /usr/sbin/udevadm trigger --action add --attr-match subsystem=net" | ||
chroot /host/ /usr/sbin/udevadm trigger --action add --attr-match subsystem=net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters