-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Apply static routes on change to master state #1472
Apply static routes on change to master state #1472
Conversation
Can I get some code reviews on this PR? I have added it to my CI queue... |
Does the “CsHelper.execute” logs the commands being executed and their outputs? Additionally, if this is merged, is it going to be merged forward (4.8 and master)? |
tag:needlove |
We'll be pulling this one in. |
def __update(self, route): | ||
if route['revoke']: | ||
command = "ip route del %s via %s" % (route['network'], route['gateway']) | ||
CsHelper.execute(command) |
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.
Should the execute be checked and error thrown and/or logged on failure?
So, Si (@kiwiflyer) and I have been testing this functionality against VPCs in our lab and we verified that static routes are indeed loaded when a VR goes from BACKUP to MASTER. The relevant logs showing that is works are below. We are however still having problems with the static routes not getting added on demand to the current MASTER VR. Has anyone else had this issue while running this commit?
|
CI RESULTS
Summary of the problem(s):
Associated Uploads
Uploads will be available until Comment created by |
LGTM. Tested in a hardware lab. |
@rafaelweingartner yes, it will be forward merged. Sorry I only just got around to answering your question. I need one more code review on this one. Thanks... |
LGTM. We tested this in our Lab on HW and all static routes on each PG came up as expected. |
tag:mergeready |
Thanks gents. I will get this merged... |
…_change Apply static routes on change to master stateRefactored static routes for private gateways so they also get loaded when the router switches to master state. Otherwise they're lost and connections drop after fail over. * pr/1472: apply static routes on change to master state Signed-off-by: Will Stevens <[email protected]>
Refactored static routes for private gateways so they also get loaded when the router switches to master state. Otherwise they're lost and connections drop after fail over.