-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete routes before unsubscribing from an instance
Production code agent does this and control-node expects this as well, from any subscribed agent (mock or otherwise). Otherwise routes can remain undeleted in the control-node's table (until the session flaps), or routes are explicitly deleted. But some tests still need routes not to be deleted during unsubscribe. Add an argument to support this functionality to Unsubscribe() API of the mock agent and use it in tests as necessary. Also add security-group id to advertised routes. One can set --nsgids to a desired number. route-id % nsgids is used as the actual sgid advertised. By increasing nsgids, one can get different sgids across a given set of routes. Mock-agent code also does not run eor timers (but uses BgpXmppChannel object) Add necessary protection while cancelling the timer Change-Id: Ic4f7ed2f0645151a7521130c09bb378418bc605a Partial-Bug: #1464016
- Loading branch information
1 parent
fc259df
commit 6b17e4f
Showing
6 changed files
with
190 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.