Ah ok, that makes sense.  And looking at the code, gw_updated already takes care of the case where l3_db.EXTERNAL_GW_INFO did not exist in the dictionary (when gw info was not updated).  This makes me wonder how this worked before.