Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
24 changes: 24 additions & 0 deletions ansible/roles/test/tasks/ecn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"WRED_PROFILE": {
"AZURE_LOSSLESS": {
"red_max_threshold": "32760",
"yellow_max_threshold": "32760",
"green_min_threshold": "4095",
"red_min_threshold": "4095",
"yellow_min_threshold": "4095",
"green_max_threshold": "32760",
"wred_yellow_enable": "true",
"wred_green_enable": "true"
},
"AZURE_LOSSY": {
"red_max_threshold": "32760",
"yellow_max_threshold": "32760",
"green_min_threshold": "4095",
"red_min_threshold": "4095",
"yellow_min_threshold": "4095",
"green_max_threshold": "32760",
"wred_yellow_enable": "true",
"wred_green_enable": "true"
}
}
}
10 changes: 10 additions & 0 deletions ansible/roles/test/tasks/ecn_wred.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
test_wred_values="[ '491520', '516096', '430080' ]"
tags: always

- name: Copy JSON config to switch.
copy: src=roles/test/tasks/ecn.json dest=/tmp

- name: Add config
shell: config load /tmp/ecn.json -y
become: yes

- name: Make sure config updated
pause: seconds=2

# Read and store original rmin value for AZURE_LOSSY
- name: Get red_min_threshold
shell: ecnconfig -l | grep -A20 AZURE_LOSSY | grep red_min_threshold | awk '{print $2}'
Expand Down