241
241
if not snat_bindings and router_gw_exists:
242
242
# If GW exists for DVR routers and no SNAT binding
243
243
# call the schedule_snat_router
245
246
if not router_gw_exists and snat_bindings:
246
247
# If DVR router and no Gateway but SNAT Binding exists then
247
248
# call the unbind_snat_servicenode to unbind the snat service
249
250
plugin.unbind_snat_servicenode(context, router_id)
250
252
candidates = candidates or self.get_candidates(
251
253
plugin, context, sync_router)