Lines Matching refs:context

275     def create_subnet(self, context, subnet):
292 with context.session.begin(subtransactions=True):
294 db_subnet = super(EVSNeutronPluginV2, self).create_subnet(context,
314 def update_subnet(self, context, id, subnet):
328 with context.session.begin(subtransactions=True):
331 update_subnet(context, id, subnet)
338 def get_subnet(self, context, id, fields=None):
340 subnet = super(EVSNeutronPluginV2, self).get_subnet(context, id, None)
343 def get_subnets(self, context, filters=None, fields=None,
346 get_subnets(context, filters, None, sorts, limit, marker,
379 def delete_subnet(self, context, id):
380 subnet = self.get_subnet(context, id)
384 with context.session.begin(subtransactions=True):
386 auto_created_ports = context.session.query(models_v2.Port).\
390 super(EVSNeutronPluginV2, self).delete_subnet(context, id)
414 def create_network(self, context, network):
437 tenantname = self._get_tenant_id_for_create(context,
465 with context.session.begin(subtransactions=True):
467 net = super(EVSNeutronPluginV2, self).create_network(context,
469 self._process_l3_create(context, net, network['network'])
487 def update_network(self, context, id, network):
505 def get_network(self, context, id, fields=None):
506 with context.session.begin(subtransactions=True):
507 net = super(EVSNeutronPluginV2, self).get_network(context,
515 def get_networks(self, context, filters=None, fields=None,
518 with context.session.begin(subtransactions=True):
520 get_networks(context, filters, None, sorts, limit, marker,
545 def delete_network(self, context, id):
546 with context.session.begin(subtransactions=True):
547 network = self._get_network(context, id)
549 qry_network_ports = context.session.query(models_v2.Port).\
557 port_in_use = context.session.query(models_v2.Port).filter_by(
564 subnets = self._get_subnets_by_network(context, id)
566 super(EVSNeutronPluginV2, self).delete_subnet(context,
573 context.session.delete(network)
595 def create_port(self, context, port):
610 with context.session.begin(subtransactions=True):
613 tenant_id = self._get_tenant_id_for_create(context, port['port'])
615 network = self._get_network(context,
619 db_port = super(EVSNeutronPluginV2, self).create_port(context,
643 def update_port(self, context, id, port):
652 original_port = super(EVSNeutronPluginV2, self).get_port(context, id)
662 db_port = super(EVSNeutronPluginV2, self).update_port(context,
666 def get_port(self, context, id, fields=None):
668 port = super(EVSNeutronPluginV2, self).get_port(context, id, None)
671 def get_ports(self, context, filters=None, fields=None,
674 get_ports(context, filters, None, sorts, limit, marker,
696 def delete_port(self, context, id, l3_port_check=True):
698 self.prevent_l3_port_deletion(context, id)
699 self.disassociate_floatingips(context, id)
700 port = self.get_port(context, id)
703 with context.session.begin(subtransactions=True):
704 super(EVSNeutronPluginV2, self).delete_port(context, id)