[linkmgrd] Enhance Init And Switch State When Config Is Active
During warm reboot, linkmgrd would go away and so heartbeats will be lost. This would result in standby link son peer ToR to pull the link active. This is undesirable since we would not create tunnel from the ToR that is being rebooted to the peer ToR. This PR implicitly lock the state of the mux if config is not set to auto. Also, orchagent does not initialize MUX to it hardware state, rather it initilizes MUX to Unknown state. linkmgrd will detect this situation and probe MUX state to correct orchagent state. There a fix for the case when state os switched MUX is delayed. The PR will poll the MUX for the new state. This is required to update the state ds and hence create/tear tunnel. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
This commit is contained in:
parent
b8f70f8986
commit
a8fdeb3907
@ -7,12 +7,14 @@ export SONIC_LINKMGRD_VERSION SONIC_LINKMGRD_PKG_NAME
|
||||
|
||||
SONIC_LINKMGRD = sonic-$(SONIC_LINKMGRD_PKG_NAME)_$(SONIC_LINKMGRD_VERSION)_$(CONFIGURED_ARCH).deb
|
||||
$(SONIC_LINKMGRD)_SRC_PATH = $(SRC_PATH)/$(SONIC_LINKMGRD_PKG_NAME)
|
||||
$(SONIC_LINKMGRD)_DEPENDS = $(LIBSWSSCOMMON_DEV) $(LIBSWSSCOMMON) $(LIBHIREDIS_DEV) $(LIBHIREDIS)
|
||||
$(SONIC_LINKMGRD)_DEPENDS = $(LIBSWSSCOMMON_DEV) $(LIBHIREDIS_DEV)
|
||||
$(SONIC_LINKMGRD)_RDEPENDS = $(LIBSWSSCOMMON) $(LIBHIREDIS)
|
||||
|
||||
SONIC_DPKG_DEBS += $(SONIC_LINKMGRD)
|
||||
|
||||
SONIC_LINKMGRD_DBG = sonic-$(SONIC_LINKMGRD_PKG_NAME)-dbgsym_$(SONIC_LINKMGRD_VERSION)_$(CONFIGURED_ARCH).deb
|
||||
$(SONIC_LINKMGRD)_DBG_DEPENDS = $(LIBSWSSCOMMON_DEV) $(LIBSWSSCOMMON_DBG) $(LIBHIREDIS_DEV) $(LIBHIREDIS_DBG)
|
||||
$(SONIC_LINKMGRD)_DBG_DEPENDS = $(LIBSWSSCOMMON_DEV) $(LIBHIREDIS_DEV)
|
||||
$(SONIC_LINKMGRD)_DBG_RDEPENDS = $(LIBSWSSCOMMON_DBG) $(LIBHIREDIS_DBG)
|
||||
$(eval $(call add_derived_package,$(SONIC_LINKMGRD),$(SONIC_LINKMGRD_DBG)))
|
||||
|
||||
export SONIC_LINKMGRD SONIC_LINKMGRD_DBG
|
||||
|
Loading…
Reference in New Issue
Block a user