orig_net = super(NeutronRestProxyV2,
self).get_network(context, net_id)
# update network on network controller
- self._send_update_network(orig_net)
+ self._send_update_network(orig_net, context)
return new_subnet
def update_subnet(self, context, id, subnet):
orig_net = super(NeutronRestProxyV2,
self).get_network(context, net_id)
# update network on network controller
- self._send_update_network(orig_net)
+ self._send_update_network(orig_net, context)
return new_subnet
def delete_subnet(self, context, id):
orig_net = super(NeutronRestProxyV2, self).get_network(context,
net_id)
# update network on network controller - exception will rollback
- self._send_update_network(orig_net)
+ self._send_update_network(orig_net, context)
def _get_tenant_default_router_rules(self, tenant):
rules = cfg.CONF.ROUTER.tenant_default_router_rule
net_id)
# create floatingip on the network controller
try:
- self._send_update_network(orig_net)
+ self._send_update_network(orig_net, context)
except RemoteRestError as e:
with excutils.save_and_reraise_exception():
LOG.error(
orig_net = super(NeutronRestProxyV2, self).get_network(context,
net_id)
# update network on network controller
- self._send_update_network(orig_net)
+ self._send_update_network(orig_net, context)
return new_fl_ip
def delete_floatingip(self, context, id):
orig_net = super(NeutronRestProxyV2, self).get_network(context,
net_id)
# update network on network controller
- self._send_update_network(orig_net)
+ self._send_update_network(orig_net, context)
def _send_all_data(self):
"""Pushes all data to network ctrl (networks/ports, ports/attachments).
return network
- def _send_update_network(self, network, context=None):
+ def _send_update_network(self, network, context):
net_id = network['id']
tenant_id = network['tenant_id']
# update network on network controller