|
24 | 24 | 'rc' : 0,
|
25 | 25 | 'rc_output': ecn_show_config_output
|
26 | 26 | },
|
| 27 | + 'ecn_show_config_verbose' : {'cmd' : ['q_cmd'], |
| 28 | + 'args' : ['-l', '-vv'], |
| 29 | + 'rc' : 0, |
| 30 | + 'rc_output': ecn_show_config_output + 'Total profiles: 1\n' |
| 31 | + }, |
27 | 32 | 'ecn_cfg_gmin' : {'cmd' : ['config'],
|
28 | 33 | 'args' : ['-profile', 'AZURE_LOSSLESS', '-gmin', '1048600'],
|
29 | 34 | 'rc' : 0,
|
30 | 35 | 'cmp_args' : ['AZURE_LOSSLESS,green_min_threshold,1048600']
|
31 | 36 | },
|
| 37 | + 'ecn_cfg_gmin_verbose' : {'cmd' : ['config'], |
| 38 | + 'args' : ['-profile', 'AZURE_LOSSLESS', '-gmin', '1048600', '-vv'], |
| 39 | + 'rc' : 0, |
| 40 | + 'cmp_args' : ['AZURE_LOSSLESS,green_min_threshold,1048600'], |
| 41 | + 'rc_output' : 'Running command: ecnconfig -p AZURE_LOSSLESS -gmin 1048600 -vv\nSetting green_min_threshold value to 1048600\n' |
| 42 | + }, |
32 | 43 | 'ecn_cfg_gmax' : {'cmd' : ['config'],
|
33 | 44 | 'args' : ['-profile', 'AZURE_LOSSLESS', '-gmax', '2097153'],
|
34 | 45 | 'rc' : 0,
|
|
69 | 80 | 'rc' : 0,
|
70 | 81 | 'cmp_args' : ['AZURE_LOSSLESS,green_drop_probability,12']
|
71 | 82 | },
|
| 83 | + 'ecn_cfg_gdrop_verbose' : {'cmd' : ['config'], |
| 84 | + 'args' : ['-profile', 'AZURE_LOSSLESS', '-gdrop', '12', '-vv'], |
| 85 | + 'rc' : 0, |
| 86 | + 'cmp_args' : ['AZURE_LOSSLESS,green_drop_probability,12'], |
| 87 | + 'rc_output' : 'Running command: ecnconfig -p AZURE_LOSSLESS -gdrop 12 -vv\nSetting green_drop_probability value to 12%\n' |
| 88 | + }, |
72 | 89 | 'ecn_cfg_multi_set' : {'cmd' : ['config'],
|
73 | 90 | 'args' : ['-profile', 'AZURE_LOSSLESS', '-gdrop', '12', '-gmax', '2097153'],
|
74 | 91 | 'rc' : 0,
|
|
100 | 117 | 'args' : ['-profile', 'AZURE_LOSSLESS', '-rdrop', '105'],
|
101 | 118 | 'rc' : 1,
|
102 | 119 | 'rc_msg' : 'Invalid value for "-rdrop": 105 is not in the valid range of 0 to 100'
|
| 120 | + }, |
| 121 | + 'ecn_q_get' : {'cmd' : ['q_cmd'], |
| 122 | + 'args' : ['-q', '3'], |
| 123 | + 'rc' : 0, |
| 124 | + 'rc_msg' : 'ECN status:\nqueue 3: on\n', |
| 125 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 126 | + 'cmp_q_args' : ['3', '4'] |
| 127 | + }, |
| 128 | + 'ecn_q_get_verbose' : {'cmd' : ['q_cmd'], |
| 129 | + 'args' : ['-q', '3', '-vv'], |
| 130 | + 'rc' : 0, |
| 131 | + 'rc_msg' : 'ECN status:\n{0} queue 3: on\n', |
| 132 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 133 | + 'cmp_q_args' : ['3', '4'], |
| 134 | + 'db_table' : 'DEVICE_NEIGHBOR' |
| 135 | + }, |
| 136 | + 'ecn_q_all_get_verbose' : {'cmd' : ['q_cmd'], |
| 137 | + 'args' : ['-q', '3,4', '-vv'], |
| 138 | + 'rc' : 0, |
| 139 | + 'rc_msg' : 'ECN status:\n{0} queue 3: on\n{0} queue 4: on\n', |
| 140 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 141 | + 'cmp_q_args' : ['3', '4'], |
| 142 | + 'db_table' : 'DEVICE_NEIGHBOR' |
| 143 | + }, |
| 144 | + 'ecn_q_all_get' : {'cmd' : ['q_cmd'], |
| 145 | + 'args' : ['-q', '3,4'], |
| 146 | + 'rc' : 0, |
| 147 | + 'rc_msg' : 'ECN status:\nqueue 3: on\nqueue 4: on\n', |
| 148 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 149 | + 'cmp_q_args' : ['3', '4'] |
| 150 | + }, |
| 151 | + 'ecn_cfg_q_all_off' : {'cmd' : ['q_cmd'], |
| 152 | + 'args' : ['-q', '3,4', 'off'], |
| 153 | + 'rc' : 0, |
| 154 | + 'cmp_args' : ['wred_profile,[]'], |
| 155 | + 'cmp_q_args' : ['3', '4'] |
| 156 | + }, |
| 157 | + 'ecn_cfg_q_all_off_verbose' : {'cmd' : ['q_cmd'], |
| 158 | + 'args' : ['-q', '3,4', 'off', '-vv'], |
| 159 | + 'rc' : 0, |
| 160 | + 'cmp_args' : ['wred_profile,[]'], |
| 161 | + 'cmp_q_args' : ['3', '4'], |
| 162 | + 'db_table' : 'DEVICE_NEIGHBOR', |
| 163 | + 'rc_msg' : 'Disable ECN on {0} queue 3\nDisable ECN on {0} queue 4' |
| 164 | + }, |
| 165 | + 'ecn_cfg_q_off' : {'cmd' : ['q_cmd'], |
| 166 | + 'args' : ['-q', '3', 'off'], |
| 167 | + 'rc' : 0, |
| 168 | + 'cmp_args' : ['wred_profile,[]', 'wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 169 | + 'cmp_q_args' : ['3'], |
| 170 | + 'other_q' : ['4'] |
| 171 | + }, |
| 172 | + 'ecn_cfg_q_off_verbose' : {'cmd' : ['q_cmd'], |
| 173 | + 'args' : ['-q', '3', 'off', '-vv'], |
| 174 | + 'rc' : 0, |
| 175 | + 'cmp_args' : ['wred_profile,[]', 'wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 176 | + 'cmp_q_args' : ['3'], |
| 177 | + 'other_q' : ['4'], |
| 178 | + 'db_table' : 'DEVICE_NEIGHBOR', |
| 179 | + 'rc_msg' : 'Disable ECN on {0} queue 3' |
| 180 | + }, |
| 181 | + 'ecn_cfg_q_all_on' : {'cmd' : ['q_cmd'], |
| 182 | + 'args' : ['-q', '3,4', 'on'], |
| 183 | + 'rc' : 0, |
| 184 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 185 | + 'cmp_q_args' : ['3', '4'] |
| 186 | + }, |
| 187 | + 'ecn_cfg_q_all_on_verbose' : {'cmd' : ['q_cmd'], |
| 188 | + 'args' : ['-q', '3,4', 'on', '-vv'], |
| 189 | + 'rc' : 0, |
| 190 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 191 | + 'cmp_q_args' : ['3', '4'], |
| 192 | + 'db_table' : 'DEVICE_NEIGHBOR', |
| 193 | + 'rc_msg' : 'Enable ECN on {0} queue 3\nEnable ECN on {0} queue 4' |
| 194 | + }, |
| 195 | + 'ecn_cfg_q_on' : {'cmd' : ['q_cmd'], |
| 196 | + 'args' : ['-q', '4', 'on'], |
| 197 | + 'rc' : 0, |
| 198 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 199 | + 'cmp_q_args' : ['3', '4'] |
| 200 | + }, |
| 201 | + 'ecn_cfg_q_on_verbose' : {'cmd' : ['q_cmd'], |
| 202 | + 'args' : ['-q', '4', 'on', '-vv'], |
| 203 | + 'rc' : 0, |
| 204 | + 'cmp_args' : ['wred_profile,[WRED_PROFILE|AZURE_LOSSLESS]'], |
| 205 | + 'cmp_q_args' : ['3', '4'], |
| 206 | + 'db_table' : 'DEVICE_NEIGHBOR', |
| 207 | + 'rc_msg' : 'Enable ECN on {0} queue 4' |
103 | 208 | }
|
104 |
| - |
105 | 209 | }
|
0 commit comments