[devices]: Add led plugin for Arista 7060CX-32S and 7260CX3-64 (#945)
* Bump sonic-platform-modules-arista submodule * Allow image specific mount option for containers * Add led plugin for DCS-7060CX-32S * Add led plugin for DCS-7260CX3-64
This commit is contained in:
parent
d3997f4a35
commit
bc73082922
@ -0,0 +1,6 @@
|
||||
try:
|
||||
import arista.utils.sonic_leds as arista_leds
|
||||
except ImportError, e:
|
||||
raise ImportError (str(e) + "- required module not found")
|
||||
|
||||
LedControl = arista_leds.getLedControl()
|
@ -0,0 +1,6 @@
|
||||
try:
|
||||
import arista.utils.sonic_leds as arista_leds
|
||||
except ImportError, e:
|
||||
raise ImportError (str(e) + "- required module not found")
|
||||
|
||||
LedControl = arista_leds.getLedControl()
|
@ -1 +1 @@
|
||||
Subproject commit 4ad9358d16b8cd0b57d5922353f38055f83042e4
|
||||
Subproject commit d1417bff17780255d4cc371b315f620087673eb8
|
@ -12,4 +12,7 @@ $(DOCKER_PLATFORM_MONITOR)_CONTAINER_NAME = pmon
|
||||
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += --net=host --privileged -t
|
||||
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
|
||||
# Mount Arista python library on Aboot images to be used by plugins
|
||||
$(DOCKER_PLATFORM_MONITOR)_aboot_RUN_OPT += -v /usr/lib/python2.7/dist-packages/arista:/usr/lib/python2.7/dist-packages/arista:ro
|
||||
|
||||
$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += sensors:/usr/bin/sensors
|
||||
|
1
slave.mk
1
slave.mk
@ -400,6 +400,7 @@ $(addprefix $(TARGET_PATH)/, $(SONIC_INSTALLERS)) : $(TARGET_PATH)/% : .platform
|
||||
export docker_image="$(docker)"
|
||||
export docker_image_name="$(basename $(docker))"
|
||||
export docker_container_name="$($(docker)_CONTAINER_NAME)"
|
||||
$(eval $(docker)_RUN_OPT += $($(docker)_$($*_IMAGE_TYPE)_RUN_OPT))
|
||||
export docker_image_run_opt="$($(docker)_RUN_OPT)"
|
||||
j2 files/build_templates/docker_image_ctl.j2 > $($(docker)_CONTAINER_NAME).sh
|
||||
if [ -f files/build_templates/$($(docker)_CONTAINER_NAME).service.j2 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user