forked from facebook/fboss
-
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.
Merge pull request facebook#12 from eerpini/yangra-platform-rpms
Support for building Yangra platform rpm.
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"Resources": [], | ||
"Actions": [], | ||
"Information": { | ||
"CRC8": "0x0", | ||
"Product Part Number": "", | ||
"PCB Manufacturer": "", | ||
"Product Sub-Version": "3", | ||
"Facebook PCB Part Number": "", | ||
"Product Name": "Yangra", | ||
"Local MAC": "80:A2:35:F4:FE:5B", | ||
"Facebook PCBA Part Number": "", | ||
"Extended MAC Address Size": "138", | ||
"Location on Fabric": "", | ||
"ODM PCBA Part Number": "", | ||
"Assembled At": "", | ||
"System Assembly Part Number": "", | ||
"Version": "3", | ||
"Product Version": "6", | ||
"System Manufacturing Date": "06-21-19", | ||
"Product Serial Number": "", | ||
"ODM PCBA Serial Number": "", | ||
"Extended MAC Base": "80:A2:35:F4:FE:5C", | ||
"System Manufacturer": "", | ||
"Product Production State": "4", | ||
"Product Asset Tag": "" | ||
} | ||
} |
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,8 @@ | ||
{ | ||
"defaultCommandLineArgs": { | ||
|
||
}, | ||
"transceiverConfigOverrides": [ | ||
|
||
] | ||
} |
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,39 @@ | ||
Name: arista-fboss-platform-yangra | ||
Version: 1 | ||
Release: 1%{?dist} | ||
Summary: Arista FBOSS OSS Yangra Platform Utilities | ||
Requires: arista-fboss-core | ||
|
||
License: GPLv2 | ||
URL: https://github.com/aristanetworks/arista-fboss | ||
Source: %{expand:%%(pwd)} | ||
|
||
%define _fboss_yangra_dir fboss.git/arista/platform/yangra | ||
%define _fboss_build_repo_dir tmp_build_dir/repos/garden.eu.org-facebook-fboss.git | ||
%define _fboss_bcm_sai_config_dir %{_fboss_build_repo_dir}/fboss/bcm_sai_configs | ||
|
||
%define _fboss_target_share %{buildroot}/opt/fboss/share | ||
%define _fboss_target_var %{buildroot}/var/facebook/fboss/ | ||
|
||
%description | ||
This package provides platform-specific utilities to run Meta FBOSS OSS on Arista | ||
Yangra (QuartzDD) switches. | ||
|
||
%prep | ||
set -x | ||
find . -mindepth 1 -delete | ||
cp -af %{SOURCEURL0}/%{_fboss_yangra_dir}/* . | ||
cp -af %{SOURCEURL0}/%{_fboss_bcm_sai_config_dir}/yangra.agent.materialized_JSON . | ||
|
||
%install | ||
mkdir -p %{_fboss_target_share}/wedge_agent/ | ||
install yangra.agent.materialized_JSON %{_fboss_target_share}/wedge_agent/platform_wedge_agent.conf | ||
mkdir -p %{_fboss_target_share}/qsfp_service/ | ||
install config/qsfp_service/yangra_qsfp.conf %{_fboss_target_share}/qsfp_service/platform_qsfp.conf | ||
mkdir -p %{_fboss_target_var} | ||
install config/fruid/fruid.json %{_fboss_target_var} | ||
|
||
%files | ||
/var/facebook/fboss/fruid.json | ||
/opt/fboss/share/wedge_agent/platform_wedge_agent.conf | ||
/opt/fboss/share/qsfp_service/platform_qsfp.conf |