Merge "Fix Xjob of router setup not triggered"

changes/57/423657/1
Jenkins 6 years ago committed by Gerrit Code Review
commit 95674d2764
  1. 4
      tricircle/network/central_plugin.py

@ -1418,8 +1418,6 @@ class TricirclePlugin(db_base_plugin_v2.NeutronDbPluginV2,
project_id = router['tenant_id']
add_by_port, _ = self._validate_interface_info(interface_info)
net_id, b_pods = self._get_net_pods_by_interface_info(
t_ctx, context, add_by_port, interface_info)
t_pod = db_api.get_top_pod(t_ctx)
assert t_pod
@ -1431,6 +1429,8 @@ class TricirclePlugin(db_base_plugin_v2.NeutronDbPluginV2,
return_info = super(TricirclePlugin, self).add_router_interface(
context, router_id, interface_info)
net_id, b_pods = self._get_net_pods_by_interface_info(
t_ctx, context, add_by_port, interface_info)
if not b_pods:
LOG.debug('Add router interface: no interfaces found, xjob not'
'triggered')

Loading…
Cancel
Save