forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[devices]: Fix eth0 hardware numbering using udev for AS4630-54PE pla…
…tform. (sonic-net#16464) Management port currently broken for Edgecore AS4630-54PE platform due to NIC hardware numbering. Created new PR with typo from Edgecore in original PR fixed. Here is a link to the old PR that has broken logic: sonic-net#9560
- Loading branch information
Showing
4 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
platform/broadcom/sonic-platform-modules-accton/as4630-54pe/udev/70-persistent-net.rules
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,3 @@ | ||
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="ixgbe", KERNELS=="0000:08:00.0", NAME:="eth0" | ||
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="ixgbe", KERNELS=="0000:06:00.1", NAME:="eth1" | ||
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="ixgbe", KERNELS=="0000:06:00.0", NAME:="eth3" |
9 changes: 9 additions & 0 deletions
9
platform/broadcom/sonic-platform-modules-accton/as4630-54pe/utils/restart_ixgbe.sh
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 @@ | ||
#!/bin/bash | ||
|
||
/etc/init.d/netfilter-persistent stop | ||
modprobe -r ixgbe | ||
udevadm control --reload-rules | ||
udevadm trigger | ||
modprobe ixgbe | ||
/etc/init.d/netfilter-persistent start | ||
|
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
2 changes: 2 additions & 0 deletions
2
.../broadcom/sonic-platform-modules-accton/debian/sonic-platform-accton-as4630-54pe.postinst
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Special arrangement to make PDDF mode default | ||
# Disable monitor, monitor-fan, monitor-psu (not enabling them would imply they will be disabled by default) | ||
# Enable pddf-platform-monitor | ||
# Retrigger eth0-eth2 renumbering | ||
depmod -a | ||
systemctl enable pddf-platform-init.service | ||
systemctl start pddf-platform-init.service | ||
systemctl enable as4630-54pe-pddf-platform-monitor.service | ||
systemctl start as4630-54pe-pddf-platform-monitor.service | ||
/usr/local/bin/restart_ixgbe.sh |