Skip to content
26,118 changes: 26,118 additions & 0 deletions device/dell/x86_64-dellemc_z9332f_d1508-r0/media_settings.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dockers/docker-orchagent/base_image_files/monit_swss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ check program swss|intfmgrd with path "/usr/bin/process_checker swss /usr/bin/in
check program swss|portmgrd with path "/usr/bin/process_checker swss /usr/bin/portmgrd"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

check program swss|buffermgrd with path "/usr/bin/process_checker swss /usr/bin/buffermgrd -l"
check program swss|buffermgrd with path "/usr/bin/process_checker swss /usr/bin/buffermgrd"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

check program swss|nbrmgrd with path "/usr/bin/process_checker swss /usr/bin/nbrmgrd"
Expand Down
2 changes: 1 addition & 1 deletion platform/barefoot/sonic-platform-modules-arista
Submodule sonic-platform-modules-arista updated 68 files
+1 −0 .gitignore
+12 −1 Makefile
+0 −77 arista/accessors/gpio.py
+0 −27 arista/accessors/led.py
+0 −19 arista/accessors/reset.py
+0 −48 arista/accessors/xcvr.py
+3 −0 arista/cli/__init__.py
+7 −0 arista/cli/actions/setup.py
+2 −2 arista/cli/actions/syseeprom.py
+6 −1 arista/cli/actions/watchdog.py
+4 −2 arista/cli/show/environment.py
+19 −14 arista/components/denali/card.py
+6 −0 arista/components/denali/desc.py
+56 −11 arista/components/denali/linecard.py
+3 −2 arista/components/denali/supervisor.py
+8 −12 arista/components/pca9555.py
+22 −2 arista/components/plx.py
+3 −0 arista/components/psu/artesyn.py
+20 −0 arista/components/psu/delta.py
+6 −1 arista/components/psu/emerson.py
+1 −0 arista/components/psu/liteon.py
+81 −141 arista/components/scd.py
+4 −4 arista/core/card.py
+12 −0 arista/core/component/component.py
+2 −2 arista/core/fixed.py
+20 −34 arista/core/inventory.py
+28 −14 arista/core/platform.py
+6 −0 arista/core/psu.py
+47 −0 arista/core/register.py
+31 −13 arista/core/tests/inventory.py
+211 −13 arista/core/tests/mockinv.py
+94 −44 arista/core/tests/platforms.py
+17 −0 arista/core/tests/registers.py
+0 −2 arista/core/types.py
+16 −0 arista/core/version.py
+57 −13 arista/core/xcvr.py
+2 −2 arista/daemon/mac.py
+1 −1 arista/descs/fan.py
+2 −2 arista/drivers/i2c.py
+8 −0 arista/drivers/kernel.py
+36 −2 arista/drivers/pca9555.py
+16 −0 arista/drivers/plx.py
+13 −6 arista/drivers/scd/driver.py
+79 −49 arista/drivers/sysfs.py
+52 −0 arista/drivers/user.py
+4 −0 arista/inventory/fan.py
+3 −0 arista/inventory/gpio.py
+4 −0 arista/inventory/psu.py
+8 −22 arista/inventory/xcvr.py
+23 −36 arista/platforms/alhambra.py
+24 −34 arista/platforms/blackhawk.py
+34 −41 arista/platforms/clearlake.py
+30 −30 arista/platforms/cloverdale.py
+9 −1 arista/platforms/cpu/sprucefish.py
+23 −36 arista/platforms/gardena.py
+22 −18 arista/platforms/linecard/clearwater.py
+4 −34 arista/platforms/linecard/clearwater2.py
+25 −37 arista/platforms/lodoga.py
+25 −37 arista/platforms/marysville.py
+31 −37 arista/platforms/smartsville.py
+17 −35 arista/platforms/upperlake.py
+2 −2 arista/utils/sonic_leds.py
+19 −15 arista/utils/sonic_platform/chassis.py
+28 −3 arista/utils/sonic_platform/eeprom.py
+3 −0 arista/utils/sonic_platform/psu.py
+34 −37 arista/utils/sonic_platform/sfp.py
+4 −1 arista/utils/sonic_platform/watchdog.py
+16 −13 arista/utils/sonic_sfputil.py
2 changes: 1 addition & 1 deletion platform/broadcom/sonic-platform-modules-arista
Submodule sonic-platform-modules-arista updated 68 files
+1 −0 .gitignore
+12 −1 Makefile
+0 −77 arista/accessors/gpio.py
+0 −27 arista/accessors/led.py
+0 −19 arista/accessors/reset.py
+0 −48 arista/accessors/xcvr.py
+3 −0 arista/cli/__init__.py
+7 −0 arista/cli/actions/setup.py
+2 −2 arista/cli/actions/syseeprom.py
+6 −1 arista/cli/actions/watchdog.py
+4 −2 arista/cli/show/environment.py
+19 −14 arista/components/denali/card.py
+6 −0 arista/components/denali/desc.py
+56 −11 arista/components/denali/linecard.py
+3 −2 arista/components/denali/supervisor.py
+8 −12 arista/components/pca9555.py
+22 −2 arista/components/plx.py
+3 −0 arista/components/psu/artesyn.py
+20 −0 arista/components/psu/delta.py
+6 −1 arista/components/psu/emerson.py
+1 −0 arista/components/psu/liteon.py
+81 −141 arista/components/scd.py
+4 −4 arista/core/card.py
+12 −0 arista/core/component/component.py
+2 −2 arista/core/fixed.py
+20 −34 arista/core/inventory.py
+28 −14 arista/core/platform.py
+6 −0 arista/core/psu.py
+47 −0 arista/core/register.py
+31 −13 arista/core/tests/inventory.py
+211 −13 arista/core/tests/mockinv.py
+94 −44 arista/core/tests/platforms.py
+17 −0 arista/core/tests/registers.py
+0 −2 arista/core/types.py
+16 −0 arista/core/version.py
+57 −13 arista/core/xcvr.py
+2 −2 arista/daemon/mac.py
+1 −1 arista/descs/fan.py
+2 −2 arista/drivers/i2c.py
+8 −0 arista/drivers/kernel.py
+36 −2 arista/drivers/pca9555.py
+16 −0 arista/drivers/plx.py
+13 −6 arista/drivers/scd/driver.py
+79 −49 arista/drivers/sysfs.py
+52 −0 arista/drivers/user.py
+4 −0 arista/inventory/fan.py
+3 −0 arista/inventory/gpio.py
+4 −0 arista/inventory/psu.py
+8 −22 arista/inventory/xcvr.py
+23 −36 arista/platforms/alhambra.py
+24 −34 arista/platforms/blackhawk.py
+34 −41 arista/platforms/clearlake.py
+30 −30 arista/platforms/cloverdale.py
+9 −1 arista/platforms/cpu/sprucefish.py
+23 −36 arista/platforms/gardena.py
+22 −18 arista/platforms/linecard/clearwater.py
+4 −34 arista/platforms/linecard/clearwater2.py
+25 −37 arista/platforms/lodoga.py
+25 −37 arista/platforms/marysville.py
+31 −37 arista/platforms/smartsville.py
+17 −35 arista/platforms/upperlake.py
+2 −2 arista/utils/sonic_leds.py
+19 −15 arista/utils/sonic_platform/chassis.py
+28 −3 arista/utils/sonic_platform/eeprom.py
+3 −0 arista/utils/sonic_platform/psu.py
+34 −37 arista/utils/sonic_platform/sfp.py
+4 −1 arista/utils/sonic_platform/watchdog.py
+16 −13 arista/utils/sonic_sfputil.py
48 changes: 47 additions & 1 deletion src/sonic-config-engine/config_samples.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import sys

from ipaddress import ip_interface
from natsort import natsorted

#TODO: Remove once Python 2 support is removed
if sys.version_info.major == 3:
UNICODE_TYPE = str
else:
UNICODE_TYPE = unicode

def generate_t1_sample_config(data):
data['DEVICE_METADATA']['localhost']['hostname'] = 'sonic'
data['DEVICE_METADATA']['localhost']['type'] = 'LeafRouter'
Expand Down Expand Up @@ -39,11 +48,48 @@ def generate_empty_config(data):
return new_data

def generate_l2_config(data):
if 'is_dualtor' in data and data['is_dualtor']:
is_dualtor = True
data.pop('is_dualtor')
else:
is_dualtor = False
data['VLAN'] = {'Vlan1000': {'vlanid': '1000'}}
data['VLAN_MEMBER'] = {}
for port in natsorted(data['PORT']):
if is_dualtor:
data['DEVICE_METADATA']['localhost']['subtype'] = 'DualToR'
data['LOOPBACK_INTERFACE'] = {
'Loopback2': {},
'Loopback2|3.3.3.3': {}
}
data['MUX_CABLE'] = {}
data['PEER_SWITCH'] = {
"peer_switch_hostname": {
"address_ipv4": "1.1.1.1"
}
}
data['TUNNEL'] = {
"MuxTunnel0": {
"dscp_mode": "uniform",
"dst_ip": "2.2.2.2",
"ecn_mode": "copy_from_outer",
"encap_ecn_mode": "standard",
"ttl_mode": "pipe",
"tunnel_type": "IPINIP"
}
}

server_ipv4_base = ip_interface(UNICODE_TYPE('192.168.0.1/32'))
server_ipv6_base = ip_interface(UNICODE_TYPE('fc02:1000::1/128'))
for i, port in enumerate(natsorted(data['PORT'])):
data['PORT'][port].setdefault('admin_status', 'up')
data['VLAN_MEMBER']['Vlan1000|{}'.format(port)] = {'tagging_mode': 'untagged'}
if is_dualtor:
mux_cable_entry = {
'server_ipv4': str(server_ipv4_base + i),
'server_ipv6': str(server_ipv6_base + i),
'state': 'auto'
}
data['MUX_CABLE'][port] = mux_cable_entry
return data

_sample_generators = {
Expand Down
Loading