From b5f9fcae99d2c756ce8b1d5cae0a1eb4c6eb32c9 Mon Sep 17 00:00:00 2001 From: kaiyu22 Date: Wed, 22 Feb 2017 18:15:39 +0800 Subject: [PATCH] [platform]: ingrasys-s9100: Add ingrasys switch s9100 (#318) Signed-off-by: Sam Yang --- dockers/docker-orchagent/start.sh | 2 + .../minigraph/minigraph_ingrasys-s9100.xml | 115 ++++++++++++++++++ .../x86_64/platforms/x86_64-ingrasys_s9100-r0 | 3 + .../platform/ingrasys-s9100/port_config.ini | 33 +++++ .../platform/ingrasys-s9100/sensors.conf | 35 ++++++ 5 files changed, 188 insertions(+) create mode 100644 files/image_config/minigraph/minigraph_ingrasys-s9100.xml create mode 100644 installer/x86_64/platforms/x86_64-ingrasys_s9100-r0 create mode 100644 src/sonic-config-engine/platform/ingrasys-s9100/port_config.ini create mode 100644 src/sonic-config-engine/platform/ingrasys-s9100/sensors.conf diff --git a/dockers/docker-orchagent/start.sh b/dockers/docker-orchagent/start.sh index 1a42f5146a8e..9e51111927c6 100755 --- a/dockers/docker-orchagent/start.sh +++ b/dockers/docker-orchagent/start.sh @@ -49,6 +49,8 @@ elif [ "$HWSKU" == "Arista-7060-CX32S" ]; then ORCHAGENT_ARGS+="-m $MAC_ADDRESS" elif [ "$HWSKU" == "AS7512" ]; then ORCHAGENT_ARGS+="-m $MAC_ADDRESS" +elif [ "$HWSKU" == "ingrasys-s9100" ]; then + ORCHAGENT_ARGS+="-m $MAC_ADDRESS" fi service rsyslog start diff --git a/files/image_config/minigraph/minigraph_ingrasys-s9100.xml b/files/image_config/minigraph/minigraph_ingrasys-s9100.xml new file mode 100644 index 000000000000..c67990fc7305 --- /dev/null +++ b/files/image_config/minigraph/minigraph_ingrasys-s9100.xml @@ -0,0 +1,115 @@ + + + + + + OCPSCH0104001MS + 10.10.1.26 + OCPSCH01040GGLF + 10.10.1.25 + 1 + 10 + 3 + + + OCPSCH0104002MS + 10.10.2.26 + OCPSCH01040GGLF + 10.10.2.25 + 1 + 10 + 3 + + + + + 64536 + OCPSCH01040GGLF + + +
10.10.1.26
+ + +
+ +
10.10.2.26
+ + +
+
+ +
+ + 64542 + OCPSCH0104001MS + + + + 64543 + OCPSCH0104002MS + + +
+
+ + + + + + HostIP + Loopback0 + + 100.0.0.9/32 + + 100.0.0.9/32 + + + + + + + + OCPSCH01040GGLF + + + + + + Ethernet0 + 10.10.1.25/30 + + + + Ethernet4 + 10.10.2.25/30 + + + + + + + + + + + + 40000 + DeviceInterfaceLink + OCPSCH0104001MS + Ethernet24 + OCPSCH01040GGLF + Ethernet0 + + + 40000 + DeviceInterfaceLink + OCPSCH0104002MS + Ethernet24 + OCPSCH01040GGLF + Ethernet4 + + + + OCPSCH01040GGLF + ingrasys-s9100 +
diff --git a/installer/x86_64/platforms/x86_64-ingrasys_s9100-r0 b/installer/x86_64/platforms/x86_64-ingrasys_s9100-r0 new file mode 100644 index 000000000000..14404194ef53 --- /dev/null +++ b/installer/x86_64/platforms/x86_64-ingrasys_s9100-r0 @@ -0,0 +1,3 @@ +CONSOLE_PORT=0x2f8 +CONSOLE_DEV=1 +CONSOLE_SPEED=115200 diff --git a/src/sonic-config-engine/platform/ingrasys-s9100/port_config.ini b/src/sonic-config-engine/platform/ingrasys-s9100/port_config.ini new file mode 100644 index 000000000000..d2b36ebf5e2a --- /dev/null +++ b/src/sonic-config-engine/platform/ingrasys-s9100/port_config.ini @@ -0,0 +1,33 @@ +# name lanes alias +Ethernet0 5,6,7,8 Ethernet0 +Ethernet4 1,2,3,4 Ethernet4 +Ethernet8 13,14,15,16 Ethernet8 +Ethernet12 9,10,11,12 Ethernet12 +Ethernet16 21,22,23,24 Ethernet16 +Ethernet20 17,18,19,20 Ethernet20 +Ethernet24 29,30,31,32 Ethernet24 +Ethernet28 25,26,27,28 Ethernet28 +Ethernet32 37,38,39,40 Ethernet32 +Ethernet36 33,34,35,36 Ethernet36 +Ethernet40 45,46,47,48 Ethernet40 +Ethernet44 41,42,43,44 Ethernet44 +Ethernet48 53,54,55,56 Ethernet48 +Ethernet52 49,50,51,52 Ethernet52 +Ethernet56 61,62,63,64 Ethernet56 +Ethernet60 57,58,59,60 Ethernet60 +Ethernet64 69,70,71,72 Ethernet64 +Ethernet68 65,66,67,68 Ethernet68 +Ethernet72 77,78,79,80 Ethernet72 +Ethernet76 73,74,75,76 Ethernet76 +Ethernet80 85,86,87,88 Ethernet80 +Ethernet84 81,82,83,84 Ethernet84 +Ethernet88 93,94,95,96 Ethernet88 +Ethernet92 89,90,91,92 Ethernet92 +Ethernet96 101,102,103,104 Ethernet96 +Ethernet100 97,98,99,100 Ethernet100 +Ethernet104 109,110,111,112 Ethernet104 +Ethernet108 105,106,107,108 Ethernet108 +Ethernet112 117,118,119,120 Ethernet112 +Ethernet116 113,114,115,116 Ethernet116 +Ethernet120 125,126,127,128 Ethernet120 +Ethernet124 121,122,123,124 Ethernet124 diff --git a/src/sonic-config-engine/platform/ingrasys-s9100/sensors.conf b/src/sonic-config-engine/platform/ingrasys-s9100/sensors.conf new file mode 100644 index 000000000000..44eedb4b11b0 --- /dev/null +++ b/src/sonic-config-engine/platform/ingrasys-s9100/sensors.conf @@ -0,0 +1,35 @@ +# libsensors configuration file +chip "i350bb-*" + ignore loc1 + +chip "jc42-*" + label temp1 "DIMM Temp" + set temp1_max 50 + set temp1_crit 85 + +chip "w83795adg-*" + label in0 "1.0V" + label in1 "1.0V_ROV" + label in2 "1.25V" + label in3 "1.8V" + ignore in4 + ignore in5 + ignore in6 + ignore in7 + label in12 "+3.3V" + ignore in14 + ignore in15 + ignore in16 + label fan1 "FANTRAY 1-A" + label fan2 "FANTRAY 1-B" + label fan3 "FANTRAY 2-A" + label fan4 "FANTRAY 2-B" + label fan5 "FANTRAY 3-A" + label fan6 "FANTRAY 3-B" + label fan7 "FANTRAY 4-A" + label fan8 "FANTRAY 4-B" + label temp1 "Front MAC Temp" + label temp2 "Rear MAC Temp" + ignore temp3 + ignore temp4 + ignore intrusion0