armando-migliaccio 517fe11211 Fix KeyError during sync_routers
Method sync_routers is used by the L3 agent to query
routers it knows about. Routers and GW ports lists
are populated in two different times, which means that
they can be interleaved by a delete request which
results in gateway ports being missing in one of the
two data structures.

This patch takes care of the race condition.

Closes-bug: #1355409

Change-Id: Id3a6fe145058f690e107bfe7023980ede61cff90
2014-08-13 07:13:10 -07:00
..
2014-06-21 15:07:31 +08:00
2014-06-30 14:07:59 +03:00