From 75361042f53c1cbbdad01a2d12e36598cf1e8626 Mon Sep 17 00:00:00 2001 From: lguohan Date: Sat, 4 Aug 2018 21:19:29 -0700 Subject: [PATCH] [device]: add support for celestica E1031 (#1528) --- .../Celestica-E1031-T48S4/port_config.ini | 53 ++ .../Celestica-E1031-T48S4/sai.profile | 1 + .../x86_64-cel_e1031-r0/installer.conf | 3 + .../x86_64-cel_e1031-r0/minigraph.xml | 810 ++++++++++++++++++ platform/broadcom/sai.mk | 8 +- 5 files changed, 871 insertions(+), 4 deletions(-) create mode 100644 device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/port_config.ini create mode 100644 device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/sai.profile create mode 100644 device/celestica/x86_64-cel_e1031-r0/installer.conf create mode 100644 device/celestica/x86_64-cel_e1031-r0/minigraph.xml diff --git a/device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/port_config.ini b/device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/port_config.ini new file mode 100644 index 0000000000..6a7debfa45 --- /dev/null +++ b/device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/port_config.ini @@ -0,0 +1,53 @@ +# name lanes speed alias autoneg +Ethernet0 2 1000 etp1 1 +Ethernet1 1 1000 etp2 1 +Ethernet2 4 1000 etp3 1 +Ethernet3 3 1000 etp4 1 +Ethernet4 6 1000 etp5 1 +Ethernet5 5 1000 etp6 1 +Ethernet6 8 1000 etp7 1 +Ethernet7 7 1000 etp8 1 +Ethernet8 10 1000 etp9 1 +Ethernet9 9 1000 etp10 1 +Ethernet10 12 1000 etp11 1 +Ethernet11 11 1000 etp12 1 +Ethernet12 14 1000 etp13 1 +Ethernet13 13 1000 etp14 1 +Ethernet14 16 1000 etp15 1 +Ethernet15 15 1000 etp16 1 +Ethernet16 18 1000 etp17 1 +Ethernet17 17 1000 etp18 1 +Ethernet18 20 1000 etp19 1 +Ethernet19 19 1000 etp20 1 +Ethernet20 22 1000 etp21 1 +Ethernet21 21 1000 etp22 1 +Ethernet22 24 1000 etp23 1 +Ethernet23 23 1000 etp24 1 +Ethernet24 26 1000 etp25 1 +Ethernet25 25 1000 etp26 1 +Ethernet26 28 1000 etp27 1 +Ethernet27 27 1000 etp28 1 +Ethernet28 30 1000 etp29 1 +Ethernet29 29 1000 etp30 1 +Ethernet30 32 1000 etp31 1 +Ethernet31 31 1000 etp32 1 +Ethernet32 34 1000 etp33 1 +Ethernet33 33 1000 etp34 1 +Ethernet34 36 1000 etp35 1 +Ethernet35 35 1000 etp36 1 +Ethernet36 38 1000 etp37 1 +Ethernet37 37 1000 etp38 1 +Ethernet38 40 1000 etp39 1 +Ethernet39 39 1000 etp40 1 +Ethernet40 42 1000 etp41 1 +Ethernet41 41 1000 etp42 1 +Ethernet42 44 1000 etp43 1 +Ethernet43 43 1000 etp44 1 +Ethernet44 46 1000 etp45 1 +Ethernet45 45 1000 etp46 1 +Ethernet46 48 1000 etp47 1 +Ethernet47 47 1000 etp48 1 +Ethernet48 54 10000 etp49 0 +Ethernet49 53 10000 etp50 0 +Ethernet50 56 10000 etp51 0 +Ethernet51 55 10000 etp52 0 diff --git a/device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/sai.profile b/device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/sai.profile new file mode 100644 index 0000000000..1f36f82fd5 --- /dev/null +++ b/device/celestica/x86_64-cel_e1031-r0/Celestica-E1031-T48S4/sai.profile @@ -0,0 +1 @@ +SAI_INIT_CONFIG_FILE=/etc/bcm/helix4-e1031-48x1G+4x10G.config.bcm diff --git a/device/celestica/x86_64-cel_e1031-r0/installer.conf b/device/celestica/x86_64-cel_e1031-r0/installer.conf new file mode 100644 index 0000000000..9b49af7808 --- /dev/null +++ b/device/celestica/x86_64-cel_e1031-r0/installer.conf @@ -0,0 +1,3 @@ +CONSOLE_PORT=0x2f8 +CONSOLE_DEV=1 +CONSOLE_SPEED=9600 diff --git a/device/celestica/x86_64-cel_e1031-r0/minigraph.xml b/device/celestica/x86_64-cel_e1031-r0/minigraph.xml new file mode 100644 index 0000000000..7b24807718 --- /dev/null +++ b/device/celestica/x86_64-cel_e1031-r0/minigraph.xml @@ -0,0 +1,810 @@ + + + + + + ARISTA01T1 + 10.0.0.1 + sonic + 10.0.0.0 + 1 + 180 + 60 + + + ARISTA02T1 + 10.0.0.5 + sonic + 10.0.0.4 + 1 + 180 + 60 + + + ARISTA03T1 + 10.0.0.9 + sonic + 10.0.0.8 + 1 + 180 + 60 + + + ARISTA04T1 + 10.0.0.13 + sonic + 10.0.0.12 + 1 + 180 + 60 + + + ARISTA01T1 + FC00::2 + sonic + FC00::1 + 1 + 180 + 60 + + + ARISTA02T1 + FC00::A + sonic + FC00::9 + 1 + 180 + 60 + + + ARISTA03T1 + FC00::12 + sonic + FC00::11 + 1 + 180 + 60 + + + ARISTA04T1 + FC00::1A + sonic + FC00::19 + 1 + 180 + 60 + + + + + 64601 + sonic + + + BGPPeer +
10.0.0.1
+ + + +
+ + BGPPeer +
10.0.0.5
+ + + +
+ + BGPPeer +
10.0.0.9
+ + + +
+ + BGPPeer +
10.0.0.13
+ + + +
+ + BGPPeer +
FC00::2
+ + + +
+ + BGPPeer +
FC00::A
+ + + +
+ + BGPPeer +
FC00::12
+ + + +
+ + BGPPeer +
FC00::1A
+ + + +
+
+ +
+ + 64802 + ARISTA01T1 + + + + 64802 + ARISTA02T1 + + + + 64802 + ARISTA03T1 + + + + 64802 + ARISTA04T1 + + +
+
+ + + + + + HostIP + Loopback0 + + 10.1.0.32/32 + + 10.1.0.32/32 + + + HostIP1 + Loopback0 + + FC00:1::32/128 + + FC00:1::32/128 + + + + + HostIP + eth0 + + 10.251.0.243/23 + + 10.251.0.243/23 + + + + + + sonic + + + + VlanInterface + Vlan2 + etp1;etp2;etp3;etp4;etp5;etp6;etp7;etp8;etp9;etp10;etp11;etp12;etp13;etp14;etp15;etp16;etp17;etp18;etp19;etp20;etp21;etp22;etp23;etp24;etp25;etp26;etp27;etp28;etp29;etp30;etp31;etp32;etp33;etp34;etp35;etp36;etp37;etp38;etp39;etp40;etp41;etp42;etp43;etp44;etp45;etp46;etp47;etp48 + False + 0.0.0.0/0 + + 2 + 2 + 172.0.0.0/26 + + + + + IPInterface + + etp49 + 10.0.0.0/31 + + + IPInterface + + etp50 + 10.0.0.4/31 + + + IPInterface + + etp51 + 10.0.0.8/31 + + + IPInterface + + etp52 + 10.0.0.12/31 + + + IPInterface + + etp49 + FC00::1/126 + + + IPInterface + + etp50 + FC00::9/126 + + + IPInterface + + etp51 + FC00::11/126 + + + IPInterface + + etp52 + FC00::19/126 + + + IPInterface + + Vlan2 + 172.0.0.1/26 + + + + + + + + + + + + DeviceInterfaceLink + true + 10000 + ARISTA01T1 + Ethernet1 + true + sonic + etp49 + + + DeviceInterfaceLink + true + 10000 + ARISTA02T1 + Ethernet1 + true + sonic + etp50 + + + DeviceInterfaceLink + true + 10000 + ARISTA03T1 + Ethernet1 + true + sonic + etp51 + + + DeviceInterfaceLink + true + 10000 + ARISTA04T1 + Ethernet1 + true + sonic + etp52 + + + DeviceInterfaceLink + true + 1000 + sonic + etp1 + true + server-01 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp2 + true + server-02 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp3 + true + server-03 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp4 + true + server-04 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp5 + true + server-05 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp6 + true + server-06 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp7 + true + server-07 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp8 + true + server-08 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp9 + true + server-09 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp10 + true + server-10 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp11 + true + server-11 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp12 + true + server-12 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp13 + true + server-13 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp14 + true + server-14 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp15 + true + server-15 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp16 + true + server-16 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp17 + true + server-17 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp18 + true + server-18 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp19 + true + server-19 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp20 + true + server-20 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp21 + true + server-21 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp22 + true + server-22 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp23 + true + server-23 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp24 + true + server-24 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp25 + true + server-25 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp26 + true + server-26 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp27 + true + server-27 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp28 + true + server-28 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp29 + true + server-29 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp30 + true + server-30 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp31 + true + server-31 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp32 + true + server-32 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp33 + true + server-33 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp34 + true + server-34 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp35 + true + server-35 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp36 + true + server-36 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp37 + true + server-37 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp38 + true + server-38 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp39 + true + server-39 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp40 + true + server-40 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp41 + true + server-41 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp42 + true + server-42 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp43 + true + server-43 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp44 + true + server-44 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp45 + true + server-45 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp46 + true + server-46 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp47 + true + server-47 + 0 + + + DeviceInterfaceLink + true + 1000 + sonic + etp48 + true + server-48 + 0 + + + + + sonic + Celestica-E1031-T48S4 + + 10.251.0.243 + + + + + sonic + Celestica-E1031-T48S4 +
diff --git a/platform/broadcom/sai.mk b/platform/broadcom/sai.mk index 611592c981..77171281d8 100644 --- a/platform/broadcom/sai.mk +++ b/platform/broadcom/sai.mk @@ -1,9 +1,9 @@ -BRCM_SAI = libsaibcm_3.1.3.5-3_amd64.deb -$(BRCM_SAI)_URL = "https://sonicstorage.blob.core.windows.net/packages/libsaibcm_3.1.3.5-3_amd64.deb?sv=2015-04-05&sr=b&sig=lzB9IHpJuMEENr9N9W0LBFamJ7mpvRVWgigfQmpIrPc%3D&se=2155-06-05T09%3A13%3A41Z&sp=r" +BRCM_SAI = libsaibcm_3.1.3.5-5_amd64.deb +$(BRCM_SAI)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/libsaibcm_3.1.3.5-5_amd64.deb?sv=2015-04-05&sr=b&sig=QPeazVTcPxPiWnLQRX4BqAAoyo0kTXJlfNAAtp2nilk%3D&se=2155-06-28T00%3A35%3A53Z&sp=r" -BRCM_SAI_DEV = libsaibcm-dev_3.1.3.5-3_amd64.deb +BRCM_SAI_DEV = libsaibcm-dev_3.1.3.5-5_amd64.deb $(eval $(call add_derived_package,$(BRCM_SAI),$(BRCM_SAI_DEV))) -$(BRCM_SAI_DEV)_URL = "https://sonicstorage.blob.core.windows.net/packages/libsaibcm-dev_3.1.3.5-3_amd64.deb?sv=2015-04-05&sr=b&sig=WoRAz6j8G3Xk%2BT3MOmhp5f%2BvWggw%2BgGgk2JtDJHkKjs%3D&se=2155-06-05T09%3A14%3A46Z&sp=r" +$(BRCM_SAI_DEV)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/libsaibcm-dev_3.1.3.5-5_amd64.deb?sv=2015-04-05&sr=b&sig=6yrT5BVHkTr5955Rf9sADlVVN8o8TzxSjoj3JZg6nHw%3D&se=2155-06-28T00%3A37%3A34Z&sp=r" SONIC_ONLINE_DEBS += $(BRCM_SAI) $(BRCM_SAI_DEV) $(BRCM_SAI_DEV)_DEPENDS += $(BRCM_SAI)