-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tunnelmgrd]: Warm boot support #2166
Conversation
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
cfgmgr/tunnelmgr.h
Outdated
|
||
std::map<std::string, TunnelInfo > m_tunnelCache; | ||
std::map<std::string, IpPrefix> m_intfCache; | ||
std::string m_peerIp; | ||
|
||
std::set<std::string> m_tunnelReplay; | ||
bool replayDone; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like initialization is missing. Assign default to 'false' here.
cfgmgr/tunnelmgr.cpp
Outdated
@@ -191,6 +210,13 @@ void TunnelMgr::doTask(Consumer &consumer) | |||
++it; | |||
} | |||
} | |||
|
|||
if (!replayDone && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to keep in one line for this. This will help controlling the number of lines in the file growing quickly.
- Initialize variable - Reduce line count Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
* [tunnelmgrd]: Warm boot support Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
* [tunnelmgrd]: Warm boot support Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
* [tunnelmgrd]: Warm boot support Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee lawlee@microsoft.com
What I did
Add warmboot support to tunnelmgrd
Why I did it
During warmboot, tunnelmgrd initiates a write to APP_DB for an IPinIP tunnel which already exists in hardware prior to the warmboot. This causes an orchagent crash.
How I verified it
Run the new tunnelmgrd warmboot test
Details if related