Skip to content

Commit

Permalink
[devices]: Add led plugin for Arista 7060CX-32S and 7260CX3-64 (#945)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Staphylo authored and lguohan committed Sep 11, 2017
1 parent d3997f4 commit bc73082
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions device/arista/x86_64-arista_7060_cx32s/plugins/led_control.py
Original file line number Diff line number Diff line change
@@ -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()
6 changes: 6 additions & 0 deletions device/arista/x86_64-arista_7260cx3_64/plugins/led_control.py
Original file line number Diff line number Diff line change
@@ -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()
3 changes: 3 additions & 0 deletions rules/docker-platform-monitor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc73082

Please sign in to comment.