Skip to content

[asym_pfc]: Fix config parse according to latest changes #1190

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

Merged
merged 1 commit into from
Nov 6, 2019
Merged
Changes from all commits
Commits
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
15 changes: 5 additions & 10 deletions ansible/roles/test/tasks/pfc_asym.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@

# Get lossless and lossy priorities

- name: Get port QOS map key
command: docker exec -i database redis-cli --raw -n 4 KEYS *PORT_QOS_MAP*
register: out
- set_fact: port_qos_key={{out.stdout}}

- name: Get lossless priorities
command: docker exec -i database redis-cli -n 4 HGET "{{port_qos_key}}" "pfc_enable"
register: out
- set_fact: lossless_priorities={{out.stdout.split(",")}}

- name: Get buffer PG keys
command: docker exec -i database redis-cli --raw -n 4 KEYS *BUFFER_PG*
register: out
Expand All @@ -87,6 +77,11 @@
with_items: "{{buf_pg_keys}}"
register: out

- name: Get lossless priorities
set_fact: lossless_priorities={{item.item.split("|")[-1].split("-")}}
with_items: "{{out.results}}"
when: item.stdout|search("lossless")

- name: Get lossy priorities
set_fact: lossy_priorities={{item.item.split("|")[-1].split("-")}}
with_items: "{{out.results}}"
Expand Down