-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mellanox] Use MAC from EEPROM for PortChannels and VLAN Interfaces (#…
…1793) * Use MAC from EEPROM for PortChannels Signed-off-by: Andriy Moroz <[email protected]> * Use MAC from EEPROM in DEVICE_METADATA Will affect MAC for VLAN interfaces Signed-off-by: Andriy Moroz <[email protected]> * Get MAC via decode-syseeprom Signed-off-by: Andriy Moroz <[email protected]> * hw-management is now a service Signed-off-by: Andriy Moroz <[email protected]> * Add error handling for MAC fetch process Signed-off-by: Andriy Moroz <[email protected]>
- Loading branch information
1 parent
927c41f
commit dadc17d
Showing
8 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
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
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
58 changes: 58 additions & 0 deletions
58
platform/mellanox/hw-management/Add-systemd-service-config.patch
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,58 @@ | ||
From 22fef644b1150677353ab0559828ea45a982d901 Mon Sep 17 00:00:00 2001 | ||
From: Andriy Moroz <[email protected]> | ||
Date: Wed, 11 Jul 2018 16:51:07 +0300 | ||
Subject: [PATCH] Add systemd service config | ||
|
||
Signed-off-by: Andriy Moroz <[email protected]> | ||
--- | ||
debian/control | 2 +- | ||
debian/hw-management.service | 10 ++++++++++ | ||
debian/rules | 2 +- | ||
3 files changed, 12 insertions(+), 2 deletions(-) | ||
create mode 100644 debian/hw-management.service | ||
|
||
diff --git a/debian/control b/debian/control | ||
index 048cd61..7e3a545 100644 | ||
--- a/debian/control | ||
+++ b/debian/control | ||
@@ -1,7 +1,7 @@ | ||
Source: hw-management | ||
Priority: extra | ||
Maintainer: Adir Atias <adira@dev-r-vrt-128-008> | ||
-Build-Depends: | ||
+Build-Depends: dh-systemd | ||
Standards-Version: | ||
Section: libs | ||
Homepage: http://www.mellanox.com | ||
diff --git a/debian/hw-management.service b/debian/hw-management.service | ||
new file mode 100644 | ||
index 0000000..d18916d | ||
--- /dev/null | ||
+++ b/debian/hw-management.service | ||
@@ -0,0 +1,10 @@ | ||
+[Unit] | ||
+Description=Mellanox Hardware Management | ||
+ | ||
+[Service] | ||
+Type=oneshot | ||
+EnvironmentFile=/host/machine.conf | ||
+ExecStart=/bin/bash -c "/usr/share/sonic/device/$onie_platform/hw-management start" | ||
+ | ||
+[Install] | ||
+WantedBy=multi-user.target | ||
diff --git a/debian/rules b/debian/rules | ||
index fc38817..fba4150 100755 | ||
--- a/debian/rules | ||
+++ b/debian/rules | ||
@@ -8,7 +8,7 @@ K_SRC ?= "/lib/modules/$(KVERSION)/build" | ||
pwd=$(shell pwd) | ||
|
||
%: | ||
- dh $@ | ||
+ dh $@ --with systemd | ||
|
||
override_dh_auto_configure: | ||
|
||
-- | ||
1.9.1 | ||
|
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
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