Skip to content

Commit 4324d09

Browse files
Nadiyalguohan
authored andcommitted
Fixes for AS7512 deployment (#102)
* Change platform modules to correct package name Signed-off-by: Nadiya.Stetskovych <[email protected]> * Add check copying ssw folder for AS7512 platform as it use ssw files from ssw_extra Signed-off-by: Nadiya.Stetskovych <[email protected]> * Sync with (#82) (rename orchagent) Signed-off-by: Nadiya.Stetskovych <[email protected]>
1 parent c01fcbd commit 4324d09

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

ansible/roles/sonic-common/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
group=root
191191
mode=0644
192192
tags: ssw
193+
when: sonic_hwsku != "AS7512"
193194

194195
# Setup Platform
195196
- include: platform.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Ensure Platform Modules for as7512 are installed
22
- name: Confirm Platform Modules are installed
33
become: true
4-
apt: pkg=cavm_platform_modules
4+
apt: pkg=cavm-platform-modules
55
state=present
66
force=yes
77

ansible/roles/sonicv2/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
group=root
3131
mode=0644
3232
tags: ssw
33+
when: sonic_hwsku != "AS7512"
3334

3435
# SONiC
3536
- include: sonic-brcm.yml

ansible/roles/sonicv2/tasks/sonic-cavm.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,22 @@
3030
when: host_saithrift is not defined
3131
tags: syncd
3232

33-
- name: Start orchagent docker container
34-
include: ../../sonic-common/tasks/sonicdocker.yml
33+
# Remove deprecated orchagent container
34+
- name: Remove orchagent docker container
35+
include: sonicdocker.yml
3536
vars:
3637
docker_container: orchagent
3738
docker_image: "{{ image_id_orchagent_cavm }}"
3839
docker_privileged: yes
40+
docker_state: absent
41+
tags: orchagent
42+
43+
- name: Start swss docker container
44+
include: sonicdocker.yml
45+
vars:
46+
docker_container: swss
47+
docker_image: "{{ image_id_orchagent_cavm }}"
48+
docker_privileged: yes
3949
docker_state: reloaded
4050
docker_volumes: "{{ orchagent_docker_volumes }}"
4151
docker_volumes_from:

0 commit comments

Comments
 (0)