Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mgmt vrf buster #52

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
91e5fb5
[Service] Enable/disable container auto-restart based on configuratio…
yozhao101 Feb 7, 2020
974e6e9
[daemon_base]fix error: syslog is not a member of DaemonBase (#4039)
stephenxs Feb 7, 2020
3bb61ab
[init_cfg.json] Maintain a separate init_cfg.json.j2 template file (#…
yozhao101 Feb 7, 2020
5bf66af
Update submodule: swss, swss-common (#4130)
qiluo-msft Feb 9, 2020
ae491a9
[docker-lldp] Fix lldpcli issue when description has special characte…
zhenggen-xu Feb 10, 2020
ab1a945
[procdockerstatsd] Fix incorrect case issue in service file (#4134)
pra-moh Feb 10, 2020
1f4325e
[Inventec][D6356] Update Inventec 6356 (#3839)
david-xk Feb 10, 2020
51fa5e4
[sonic-buildimage] Fix build issue for docker-dhcp-relay-dbg.gz. Issu…
abdosi Feb 11, 2020
e069e44
Add Innovium 201911 build support (#4113)
tonytitus Feb 11, 2020
af44856
[process-reboot-cause]Clean up the process-reboot-cause as reqired in…
stephenxs Feb 11, 2020
fb59e9d
[mellanox] enable ISSU on SPC2 systems (#4087)
stepanblyschak Feb 11, 2020
41958aa
[init_cfg.json] Add new FEATURE and CONTAINER_FEATURE tables (#4137)
yozhao101 Feb 11, 2020
ae52223
[arista]: Add fancontrol for arista 7050cx3 (#4121)
byu343 Feb 11, 2020
729f343
[Services] Restart database service upon unexpected critical process …
yozhao101 Feb 11, 2020
169cfe7
[devices]: DellEMC:S5232 fix transceiver change event (#3924)
aravindmani-1 Feb 11, 2020
fb32533
[arista]: Fix convertfs condition for booting from EOS (#4139)
byu343 Feb 12, 2020
a9f3619
Start RestAPI container when sonic boots (#4140)
sumukhatv Feb 13, 2020
6a0dcb1
[kernel]: security kernel update to 4.9.189 (#3913)
olivier-singla Feb 13, 2020
427ed1f
[platform]:Fix as7726 read thermal sensor issue (#4135)
jostar-yang Feb 13, 2020
031e69d
[sfputil]fix an syntax error (#4141)
stephenxs Feb 13, 2020
1a0ce98
Update arp_update to refresh neighbor entries from APP_DB (#4125)
prsunny Feb 13, 2020
2cfdb28
[mgmt-framework]: Removing explicit libyang plugin path settings (#4144)
dutta-partha Feb 13, 2020
1e40c59
[arista] Update drivers submodules (#4147)
Staphylo Feb 14, 2020
4b42a48
Update frr to latest 7.2.1 (#4145)
pavel-shirshov Feb 14, 2020
31fb631
Fix service and container name to be same (#4151)
prsunny Feb 14, 2020
8126916
[interfaces-config.sh] Do not bring 'lo' interface down and up (#4150)
jleveque Feb 14, 2020
15eaf36
DellEMC: Z9264-Platform2.0 Implementation [PSU] (#4104)
ArunSaravananBalachandran Feb 14, 2020
4afb56d
Update SDK to 4.3.3052 (#4153)
keboliu Feb 16, 2020
936749c
[Device]: Add new CIG device CS6436-54P and CS5435-54P, also update c…
michealylj1 Feb 17, 2020
2626565
[DellEMC] S6100 Last Reboot Reason Thermal Support (#3767)
santhosh-kt Feb 18, 2020
2360131
[frr] Update FRR build to include version tags (#4172)
daall Feb 20, 2020
7ffa2cc
Sleep done before mismatch handler (#4165)
prsunny Feb 20, 2020
6005f4c
Revert "Update frr to latest 7.2.1 (#4145)" (#4170)
daall Feb 20, 2020
ab78ee0
[mgmt-framework] start after syncd (#4174)
stepanblyschak Feb 20, 2020
30ef111
DellEMC: Z9264-Platform2.0 Implementation [Thermal] (#4175)
ArunSaravananBalachandran Feb 20, 2020
fbc24b4
[orchagent] Use mac address from config_db instead of from eth0 (#4166)
prsunny Feb 21, 2020
f5ab24d
Made Change to have Configurable option to enable/disable docker imag…
abdosi Feb 21, 2020
52e3947
Updated the file permission mode to include +x (#4183)
abdosi Feb 22, 2020
b856154
[Mellanox]Fix issue that syncd rpc docker unable to start (#4181)
stephenxs Feb 23, 2020
df623b7
[sonic-py-swsssdk] update submodule for sonic-py-swsssdk (#4179)
dzhangalibaba Feb 24, 2020
70657cb
[Mellanox] update hw-mgmt patch for SimX (#4180)
mykolaf Feb 25, 2020
7aae61a
[broadcom]: Updated BRCM SAI Debian package revision number to 3.7.3.…
abdosi Feb 25, 2020
7518170
[arista] Update drivers submodule (#4164)
Staphylo Feb 25, 2020
71592fc
[Platform] Marvell Makefile updates/cleanup (#4168)
antony-rheneus Feb 25, 2020
1ef7403
[docker_image_ctl.j2] Share UTS namespace with host OS (#4169)
stepanblyschak Feb 26, 2020
7912b1d
[image]: Add SSD maintenance utility - hdparm. (#4177)
nazariig Feb 26, 2020
7b1f0a6
[gitignore] Ignore all auto-generated Dockerfiles (#4195)
daall Feb 27, 2020
d5c69bc
[Mellanox] Update MFT version to 4.13.5 (#4199)
noaOrMlnx Feb 28, 2020
d19bba0
[sonic-cfggen] Load JSON files before minigraph file (#4202)
jleveque Feb 28, 2020
41ae7a2
[snmp] remove hostname change as it share uts namespace with host (#4…
stepanblyschak Feb 28, 2020
1593103
for mgmt vrf, in interfaces.j2, remove cgcreate, cgset, cgdelete whic…
Mar 13, 2020
83ec21f
for mgmt vrf in Buster, change from 'cgexec -g l3mdev:mgmt' to 'ip vr…
Mar 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 3 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,30 +109,9 @@ src/thrift/*
!src/thrift/Makefile

# Autogenerated Dockerfiles
sonic-slave/Dockerfile
sonic-slave-stretch/Dockerfile
sonic-slave-jessie/Dockerfile
dockers/docker-base/Dockerfile
dockers/docker-base-stretch/Dockerfile
dockers/docker-config-engine/Dockerfile
dockers/docker-config-engine-stretch/Dockerfile
dockers/docker-database/Dockerfile
dockers/docker-dhcp-relay/Dockerfile
dockers/docker-fpm-frr/Dockerfile
dockers/docker-fpm-gobgp/Dockerfile
dockers/docker-fpm-quagga/Dockerfile
dockers/docker-lldp-sv2/Dockerfile
dockers/docker-orchagent/Dockerfile
dockers/docker-platform-monitor/Dockerfile
dockers/docker-router-advertiser/Dockerfile
dockers/docker-snmp-sv2/Dockerfile
dockers/docker-teamd/Dockerfile
dockers/docker-sonic-mgmt/Dockerfile
dockers/docker-sonic-telemetry/Dockerfile
platform/*/docker-saiserver-*/Dockerfile
platform/*/docker-syncd-*/Dockerfile
platform/*/docker-syncd-*-rpc/Dockerfile
platform/vs/docker-sonic-vs/Dockerfile
sonic-slave*/Dockerfile
dockers/*/Dockerfile
platform/*/docker-*/Dockerfile

# Installer-related files and directories
installer/x86_64/platforms/
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ P4: [![P4](https://sonic-jenkins.westus2.cloudapp.azure.com/job/p4/job/buildimag
VS: [![VS](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all)

*201911*:
Innovium: [![Innovium](https://sonic-jenkins.westus2.cloudapp.azure.com/job/innovium/job/buildimage-invm-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/innovium/job/buildimage-invm-201911/)
Broadcom: [![Broadcom](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201911/)
Mellanox: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201911/)
VS: [![VS](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-201911)
Expand Down
6 changes: 4 additions & 2 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
else
DOCKER_VERSION=5:18.09.8~3-0~debian-stretch
fi
LINUX_KERNEL_VERSION=4.9.0-9-2
LINUX_KERNEL_VERSION=4.9.0-11-2

## Working directory to prepare the file system
FILESYSTEM_ROOT=./fsroot
Expand Down Expand Up @@ -139,7 +139,9 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/initramfs-tools_*.deb || \
sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/linux-image-${LINUX_KERNEL_VERSION}-*_${CONFIGURED_ARCH}.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install acl
[[ $CONFIGURED_ARCH == amd64 ]] && sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install dmidecode
if [[ $CONFIGURED_ARCH == amd64 ]]; then
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install dmidecode hdparm
fi

## Update initramfs for booting with squashfs+overlay
cat files/initramfs-tools/modules | sudo tee -a $FILESYSTEM_ROOT/etc/initramfs-tools/modules > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion build_debug_docker_j2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ debs/{{ deb }}{{' '}}
{% if $3 is defined %}
{% if $3|length %}

RUN apt-get install -f -y \
RUN apt-get update && apt-get install -f -y \
{% for dbg in $3.split(' ') -%}
{{ dbg }}{{' '}}
{%- endfor %}
Expand Down
10 changes: 10 additions & 0 deletions device/arista/x86_64-arista_7050cx3_32s/fancontrol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
INTERVAL=5
DEVPATH=hwmon4=devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-11/11-004c hwmon3=devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-2/2-0060
DEVNAME=hwmon4=max6658 hwmon3=crow_cpld
FCTEMPS=hwmon3/pwm4=hwmon4/temp1_input hwmon3/pwm3=hwmon4/temp1_input hwmon3/pwm2=hwmon4/temp1_input hwmon3/pwm1=hwmon4/temp1_input
FCFANS=hwmon3/pwm4=hwmon3/fan4_input hwmon3/pwm3=hwmon3/fan3_input hwmon3/pwm2=hwmon3/fan2_input hwmon3/pwm1=hwmon3/fan1_input
MINTEMP=hwmon3/pwm4=40 hwmon3/pwm3=40 hwmon3/pwm2=40 hwmon3/pwm1=40
MINPWM=hwmon3/pwm4=179 hwmon3/pwm3=179 hwmon3/pwm2=179 hwmon3/pwm1=179
MAXTEMP=hwmon3/pwm4=50 hwmon3/pwm3=50 hwmon3/pwm2=50 hwmon3/pwm1=50
MINSTART=hwmon3/pwm4=179 hwmon3/pwm3=179 hwmon3/pwm2=179 hwmon3/pwm1=179
MINSTOP=hwmon3/pwm4=179 hwmon3/pwm3=179 hwmon3/pwm2=179 hwmon3/pwm1=179
4 changes: 2 additions & 2 deletions device/arista/x86_64-arista_7050cx3_32s/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ chip "max6658-i2c-2-4c"

chip "max6658-i2c-11-4c"
label temp1 "Board temp sensor"
set temp1_max 55
set temp1_crit 70
set temp1_max 75
set temp1_crit 85

label temp2 "Front panel temp sensor"
set temp2_max 60
Expand Down
111 changes: 111 additions & 0 deletions device/cig/x86_64-cig_cs5435_54p-r0/Cig-CS5435-54P/buffers.json.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{# Default values which will be used if no actual configura available #}
{% set default_cable = '40m' %}
{% set default_speed = '10G' %}
{% set default_ports_num = 54 -%}

{# Port configuration to cable length look-up table #}
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
{# Roles described in the minigraph #}
{% set ports2cable = {
'torrouter_server' : '5m',
'leafrouter_torrouter' : '40m',
'spinerouter_leafrouter' : '300m'
}
%}

{%- macro cable_length(port_name) -%}
{%- set cable_len = [] -%}
{%- for local_port in DEVICE_NEIGHBOR -%}
{%- if local_port == port_name -%}
{%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
{%- set neighbor_role = neighbor.type -%}
{%- set roles1 = switch_role + '_' + neighbor_role %}
{%- set roles2 = neighbor_role + '_' + switch_role -%}
{%- set roles1 = roles1 | lower -%}
{%- set roles2 = roles2 | lower -%}
{%- if roles1 in ports2cable -%}
{%- if cable_len.append(ports2cable[roles1]) -%}{%- endif -%}
{%- elif roles2 in ports2cable -%}
{%- if cable_len.append(ports2cable[roles2]) -%}{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- if cable_len -%}
{{ cable_len.0 }}
{%- else -%}
{{ default_cable }}
{%- endif -%}
{% endmacro %}

{%- if DEVICE_METADATA is defined %}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] %}
{%- endif -%}

{# Generate list of ports if not defined #}
{% if PORT is not defined %}
{% set PORT = [] %}
{% for port_idx in range(0,default_ports_num) %}
{% if PORT.append("Ethernet%d" % (port_idx)) %}{% endif %}
{% endfor %}
{% endif -%}

{% set port_names_list = [] %}
{% for port in PORT %}
{%- if port_names_list.append(port) %}{% endif %}
{% endfor %}
{% set port_names = port_names_list | join(',') -%}

{
"CABLE_LENGTH": {
"AZURE": {
{% for port in PORT %}
{% set cable = cable_length(port) -%}
"{{ port }}": "{{ cable }}"{%- if not loop.last -%},{% endif %}

{% endfor %}
}
},
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "20971328",
"type": "ingress",
"mode": "static"
},
"ingress_lossy_pool": {
"size": "20971328",
"type": "ingress",
"mode": "static"
},
"egress_lossy_pool": {
"size": "20971328",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"xon":"78400",
"xoff":"132160",
"size":"3584",
"static_th":"82880"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
"size":"3584",
"dynamic_th":"-1"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"3584",
"dynamic_th":"-4"
}
},
"BUFFER_PG": {
},
"BUFFER_QUEUE": {
}
}

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 3584 32256 59136 36736
25000 5m 3584 41216 68096 45696
40000 5m 3584 47488 74368 51968
50000 5m 3584 52864 79744 57344
100000 5m 3584 78400 132160 82880
10000 40m 3584 32256 59136 36736
25000 40m 3584 41216 68096 45696
40000 40m 3584 47488 74368 51968
50000 40m 3584 52864 79744 57344
100000 40m 3584 78400 132160 82880
10000 300m 3584 32256 65856 36736
25000 300m 3584 41216 84672 45696
40000 300m 3584 47488 101024 51968
50000 300m 3584 52864 113120 57344
100000 300m 3584 78400 198688 82880
55 changes: 55 additions & 0 deletions device/cig/x86_64-cig_cs5435_54p-r0/Cig-CS5435-54P/port_config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# name lanes alias index speed
Ethernet0 8 Ethernet1/1 1 10000
Ethernet1 9 Ethernet2/1 2 10000
Ethernet2 10 Ethernet3/1 3 10000
Ethernet3 11 Ethernet4/1 4 10000
Ethernet4 12 Ethernet5/1 5 10000
Ethernet5 13 Ethernet6/1 6 10000
Ethernet6 14 Ethernet7/1 7 10000
Ethernet7 15 Ethernet8/1 8 10000
Ethernet8 16 Ethernet9/1 9 10000
Ethernet9 17 Ethernet10/1 10 10000
Ethernet10 18 Ethernet11/1 11 10000
Ethernet11 19 Ethernet12/1 12 10000
Ethernet12 20 Ethernet13/1 13 10000
Ethernet13 21 Ethernet14/1 14 10000
Ethernet14 22 Ethernet15/1 15 10000
Ethernet15 23 Ethernet16/1 16 10000
Ethernet16 32 Ethernet17/1 17 10000
Ethernet17 33 Ethernet18/1 18 10000
Ethernet18 34 Ethernet19/1 19 10000
Ethernet19 35 Ethernet20/1 20 10000
Ethernet20 40 Ethernet21/1 21 10000
Ethernet21 41 Ethernet22/1 22 10000
Ethernet22 42 Ethernet23/1 23 10000
Ethernet23 43 Ethernet24/1 24 10000
Ethernet24 48 Ethernet25/1 25 10000
Ethernet25 49 Ethernet26/1 26 10000
Ethernet26 50 Ethernet27/1 27 10000
Ethernet27 51 Ethernet28/1 28 10000
Ethernet28 56 Ethernet29/1 29 10000
Ethernet29 57 Ethernet30/1 30 10000
Ethernet30 58 Ethernet31/1 31 10000
Ethernet31 59 Ethernet32/1 32 10000
Ethernet32 64 Ethernet33/1 33 10000
Ethernet33 65 Ethernet34/1 34 10000
Ethernet34 66 Ethernet35/1 35 10000
Ethernet35 67 Ethernet36/1 36 10000
Ethernet36 68 Ethernet37/1 37 10000
Ethernet37 69 Ethernet38/1 38 10000
Ethernet38 70 Ethernet39/1 39 10000
Ethernet39 71 Ethernet40/1 40 10000
Ethernet40 72 Ethernet41/1 41 10000
Ethernet41 73 Ethernet42/1 42 10000
Ethernet42 74 Ethernet43/1 43 10000
Ethernet43 75 Ethernet44/1 44 10000
Ethernet44 76 Ethernet45/1 45 10000
Ethernet45 77 Ethernet46/1 46 10000
Ethernet46 78 Ethernet47/1 47 10000
Ethernet47 79 Ethernet48/1 48 10000
Ethernet48 84,85,86,87 Ethernet49/1 49 100000
Ethernet49 80,81,82,83 Ethernet50/1 50 100000
Ethernet50 108,109,110,111 Ethernet51/1 51 100000
Ethernet51 104,105,106,107 Ethernet52/1 52 100000
Ethernet52 116,117,118,119 Ethernet53/1 53 100000
Ethernet53 112,113,114,115 Ethernet54/1 54 100000
Loading