You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ycabled] Fix the init values for active-active ports (#266)
* [ycabled] Fix the init values for active-active ports
Signed-off-by: vaibhav-dahiya [email protected]
Since linkmgr/orchagent relies on ycabled to populate the mux_cable entries in the HW_MUX_CABLE_TABLE, for the cable active-active type this is accomplished by putting an unknown value if gRPC is unavailable, otherwise a normal RPC is used to query this and the response active or standby is written is HW_MUX_CABLE_TABLE table with a timeout.
This Fix accomplishes putting an unknown/active/standby to state key when ycabled starts
Description
Motivation and Context
How Has This Been Tested?
Unit-Tests and deploying the changes on testbed
Signed-off-by: vaibhav-dahiya <[email protected]>
"calling RPC for hw mux_cable set state state peer = {} portid Ethernet port {}".format(peer, port))
3169
+
"calling RPC for hw mux_cable set state ispeer = {} port {} portid {} read_side {} state requested {}".format(peer, port, curr_read_side, read_side, new_state))
"Set admin state RPC received response port ids = {}".format(hw_response_port_ids))
3189
+
"Set admin state RPC received response port {} port ids = {} curr_read_side {} read_side {}".format(port, hw_response_port_ids, curr_read_side, read_side))
3156
3190
helper_logger.log_notice(
3157
-
"Set admin state RPC received response state values = {}".format(hw_response_port_ids_state))
3191
+
"Set admin state RPC received response port {} state values = {} curr_read_side {} read_side {}".format(port, hw_response_port_ids_state, curr_read_side, read_side))
3158
3192
else:
3159
3193
helper_logger.log_notice("response was none hw_mux_cable_table_grpc_notification {} ".format(port))
0 commit comments