Lines Matching full:lc

39 	local lc=$1
41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state"
46 local lc=$1
50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc"
55 local lc=$1
59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc"
73 local lc=$1
75 devlink port -j | jq -e -r ".[][] | select(.lc==$lc) | .port" | wc -l
80 local lc=$1
84 busywait "$timeout" until_lc_port_count_is "$port_count" lc_port_count_get "$lc"
89 local lc=$1
91 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].nested_devlink"
100 local lc=$1
103 state=$(lc_state_get $lc)
104 check_err $? "Failed to get state of linecard $lc"
109 log_info "Unprovisioning linecard $lc"
111 devlink lc set $DEVLINK_DEV lc $lc notype
112 check_err $? "Failed to trigger linecard $lc unprovisioning"
114 state=$(lc_wait_until_state_changes $lc "unprovisioning" \
116 check_err $? "Failed to unprovision linecard $lc (timeout)"
119 check_err $? "Failed to unprovision linecard $lc (state=$state)"
124 local lc=$1
128 log_info "Provisioning linecard $lc"
130 devlink lc set $DEVLINK_DEV lc $lc type $type
131 check_err $? "Failed trigger linecard $lc provisioning"
133 state=$(lc_wait_until_state_changes $lc "provisioning" \
135 check_err $? "Failed to provision linecard $lc (timeout)"
138 check_err $? "Failed to provision linecard $lc (state=$state)"
140 provisioned_type=$(devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].type")
142 …check_err $? "Wrong provision type returned for linecard $lc (got \"$provisioned_type\", expected …
146 state=$(lc_wait_until_state_becomes $lc "active" \
153 local lc
155 lc=$LC_SLOT
156 unprovision_one $lc
165 local lc=$1
170 supported_types_count=$(devlink lc show $DEVLINK_DEV lc $lc -j | \
173 check_err $? "No supported types found for linecard $lc"
176 type=$(devlink lc show $DEVLINK_DEV lc $lc -j | \
184 check_err $? "16X100G not found between supported types of linecard $lc"
189 local lc=$1
193 port_count=$(lc_wait_until_port_count_is $lc $expected_port_count \
196 check_err $? "No port associated with linecard $lc"
198 check_err $? "Unexpected port count linecard $lc (got $port_count, expected $expected_port_count)"
203 local lc=$1
210 check_err $? "Failed to get linecard $lc fixed.hw.revision"
211 log_info "Linecard $lc fixed.hw.revision: \"$fixed_hw_revision\""
214 check_err $? "Failed to get linecard $lc running.ini.version"
215 log_info "Linecard $lc running.ini.version: \"$running_ini_version\""
221 local lc
226 lc=$LC_SLOT
227 supported_types_check $lc
228 state=$(lc_state_get $lc)
229 check_err $? "Failed to get state of linecard $lc"
231 unprovision_one $lc
233 provision_one $lc $LC_16X100G_TYPE
234 ports_check $lc $LC_16X100G_PORT_COUNT
236 nested_devlink_dev=$(lc_nested_devlink_dev_get $lc)
237 check_err $? "Failed to get nested devlink handle of linecard $lc"
238 lc_dev_info_provisioned_check $lc $nested_devlink_dev
255 local lc=$1
263 check_err $? "Failed to get linecard $lc fixed fw PSID"
264 log_info "Linecard $lc fixed.fw.psid: \"$fixed_device_fw_psid\""
268 check_err $? "Failed to get linecard $lc running.fw.version"
269 log_info "Linecard $lc running.fw: \"$running_device_fw\""
275 local lc
280 lc=$LC_SLOT
283 unprovision_one $lc
284 provision_one $lc $type
285 state=$(lc_wait_until_state_becomes $lc "active" \
287 check_err $? "Failed to get linecard $lc activated (timeout)"
291 nested_devlink_dev=$(lc_nested_devlink_dev_get $lc)
292 check_err $? "Failed to get nested devlink handle of linecard $lc"
293 lc_dev_info_active_check $lc $nested_devlink_dev
300 local lc_num=$(devlink lc show -j | jq -e -r ".[][\"$DEVLINK_DEV\"] |length")